Changeset View
Changeset View
Standalone View
Standalone View
textproc/ibus/Makefile
# Created by: Henry Hu <henry.hu.sh@gmail.com> | # Created by: Henry Hu <henry.hu.sh@gmail.com> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= ibus | PORTNAME= ibus | ||||
PORTVERSION= 1.5.14 | DISTVERSION= 1.5.17 | ||||
PORTREVISION= 3 | |||||
CATEGORIES= textproc | CATEGORIES= textproc | ||||
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${PORTVERSION}/:DEFAULT \ | MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${PORTVERSION}/:DEFAULT | ||||
https://raw.githubusercontent.com/Ranks/emojione/${EMOJIONE_TAG}/:emojione | |||||
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:DEFAULT | DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:DEFAULT | ||||
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} | EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} | ||||
MAINTAINER= henry.hu.sh@gmail.com | MAINTAINER= henry.hu.sh@gmail.com | ||||
COMMENT= Intelligent Input Bus for Linux / Unix OS | COMMENT= Intelligent Input Bus for Linux / Unix OS | ||||
LICENSE= LGPL21 | LICENSE= LGPL21 | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>=0.83.0:devel/py-dbus@${PY_FLAVOR} \ | BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>=0.83.0:devel/py-dbus@${PY_FLAVOR} \ | ||||
${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:misc/iso-codes | ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:misc/iso-codes | ||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>=0.83.0:devel/py-dbus@${PY_FLAVOR} \ | RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>=0.83.0:devel/py-dbus@${PY_FLAVOR} \ | ||||
${PYTHON_SITELIBDIR}/gtk-2.0/pynotify/__init__.py:devel/py-notify@${PY_FLAVOR} \ | ${PYTHON_SITELIBDIR}/gtk-2.0/pynotify/__init__.py:devel/py-notify@${PY_FLAVOR} \ | ||||
${LOCALBASE}/share/xml/iso-codes/iso_639.xml:misc/iso-codes \ | ${LOCALBASE}/share/xml/iso-codes/iso_639.xml:misc/iso-codes \ | ||||
setxkbmap:x11/setxkbmap | setxkbmap:x11/setxkbmap | ||||
LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib | |||||
USES= compiler cpe gmake libtool localbase pathfix pkgconfig python:2 | USES= compiler cpe gmake libtool localbase pathfix pkgconfig python:2 | ||||
USE_GNOME= glib20 intltool librsvg2 pygobject3 | USE_GNOME= glib20 intltool librsvg2 pygobject3 | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
INSTALLS_ICONS= yes | INSTALLS_ICONS= yes | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
INSTALL_TARGET= install-strip | INSTALL_TARGET= install-strip | ||||
Show All 15 Lines | |||||
ENGINE_DESC= Install ibus simple engine | ENGINE_DESC= Install ibus simple engine | ||||
EMOJI_DESC= Install emoji dictionary | EMOJI_DESC= Install emoji dictionary | ||||
CPE_VENDOR= ibus_project | CPE_VENDOR= ibus_project | ||||
NLS_USES= gettext | NLS_USES= gettext | ||||
NLS_USES_OFF= gettext-tools | NLS_USES_OFF= gettext-tools | ||||
NLS_CONFIGURE_ENABLE= nls | NLS_CONFIGURE_ENABLE= nls | ||||
GTK2_USE= GNOME=gtk20 | GTK2_USE= GNOME=cairo,gtk20 | ||||
GTK2_CONFIGURE_ENABLE= gtk2 | GTK2_CONFIGURE_ENABLE= gtk2 | ||||
GTK2_LIB_DEPENDS= libdbus-1.so:devel/dbus \ | |||||
libfontconfig.so:x11-fonts/fontconfig \ | |||||
libfreetype.so:print/freetype2 | |||||
GTK3_USE= GNOME=gtk30 XORG=x11 | GTK3_USE= GNOME=cairo,gtk30 XORG=x11,xi | ||||
GTK3_CONFIGURE_ENABLE= gtk3 libnotify | GTK3_CONFIGURE_ENABLE= gtk3 libnotify | ||||
GTK3_LIB_DEPENDS= libnotify.so:devel/libnotify | GTK3_LIB_DEPENDS= libdbus-1.so:devel/dbus \ | ||||
libnotify.so:devel/libnotify | |||||
GTK3_LIBS= -lX11 | GTK3_LIBS= -lX11 | ||||
VALA_BUILD_DEPENDS= vala>=0.20:lang/vala | VALA_BUILD_DEPENDS= vala>=0.20:lang/vala | ||||
VALA_CONFIGURE_ENABLE= vala | VALA_CONFIGURE_ENABLE= vala | ||||
VALA_IMPLIES= GINTRO | VALA_IMPLIES= GINTRO | ||||
GINTRO_BUILD_DEPENDS= gobject-introspection>=0.6.8:devel/gobject-introspection | GINTRO_BUILD_DEPENDS= gobject-introspection>=0.6.8:devel/gobject-introspection | ||||
GINTRO_RUN_DEPENDS= gobject-introspection>=0.6.8:devel/gobject-introspection | GINTRO_RUN_DEPENDS= gobject-introspection>=0.6.8:devel/gobject-introspection | ||||
GINTRO_CONFIGURE_ON= --enable-introspection=yes | GINTRO_CONFIGURE_ENABLE= introspection | ||||
GINTRO_CONFIGURE_OFF= --enable-introspection=no | |||||
PYTHON_LIB_USE= GNOME=pygtk2 | PYTHON_LIB_USE= GNOME=pygtk2 | ||||
PYTHON_LIB_CONFIGURE_ENABLE= python-library | PYTHON_LIB_CONFIGURE_ENABLE= python-library | ||||
GCONF_USE= GNOME=gconf2 | GCONF_USE= GNOME=gconf2 | ||||
GCONF_CONFIGURE_ENABLE= gconf | GCONF_CONFIGURE_ENABLE= gconf | ||||
GCONF_VARS= GCONF_SCHEMAS=ibus.schemas | GCONF_VARS= GCONF_SCHEMAS=ibus.schemas | ||||
DCONF_USE= GNOME=dconf,gconf2 | DCONF_USE= GNOME=dconf,gconf2 | ||||
DCONF_CONFIGURE_ENABLE= dconf | DCONF_CONFIGURE_ENABLE= dconf | ||||
DCONF_VARS= GLIB_SCHEMAS=org.freedesktop.ibus.gschema.xml | DCONF_VARS= GLIB_SCHEMAS=org.freedesktop.ibus.gschema.xml | ||||
DOCS_CONFIGURE_ENABLE= gtk-doc-html | DOCS_CONFIGURE_ENABLE= gtk-doc-html | ||||
XIM_CONFIGURE_ENABLE= xim | XIM_CONFIGURE_ENABLE= xim | ||||
ENGINE_CONFIGURE_ENABLE= engine | ENGINE_CONFIGURE_ENABLE= engine | ||||
EMOJIONE_TAG= ba845a7e24aac26cf3cf22abc19bea215d94fbf3 # 2.2.7 | EMOJIONE_TAG= ba845a7e24aac26cf3cf22abc19bea215d94fbf3 # 2.2.7 | ||||
EMOJI_CONFIGURE_ON= --enable-emoji-dict \ | EMOJI_CONFIGURE_ON= --with-unicode-emoji-dir=${LOCALBASE}/share/unicode/emoji \ | ||||
tcberner: CONFIGURE_OFF and CONFIGURE_ON can be combined into CONFIGURE_ENABLE:
https://www.freebsd. | |||||
--with-emoji-json-file=${WRKSRC}/emoji.json | --with-emoji-annotation-dir=${LOCALBASE}/share/unicode/cldr/common/annotations | ||||
Done Inline Actionsmaybe depend on the package rather than the horribly long path :D, like in the json-glib above tcberner: maybe depend on the package rather than the horribly long path :D, like in the json-glib above | |||||
EMOJI_CONFIGURE_OFF= --disable-emoji-dict | EMOJI_CONFIGURE_ENABLE= emoji-dict | ||||
EMOJI_BUILD_DEPENDS= json-glib>=0:devel/json-glib | EMOJI_BUILD_DEPENDS= json-glib>=0:devel/json-glib \ | ||||
EMOJI_DISTFILES= emoji.json:emojione | unicode-emoji>0:misc/unicode-emoji \ | ||||
cldr-emoji-annotation>0:misc/cldr-emoji-annotation | |||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
.if ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} < 46 | .if ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} < 46 | ||||
USE_GCC= yes | USE_GCC= yes | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MENGINE} || ${PORT_OPTIONS:MGTK3} || ${PORT_OPTIONS:MGCONF} || ${PORT_OPTIONS:MDCONF} | .if ${PORT_OPTIONS:MENGINE} || ${PORT_OPTIONS:MGTK3} || ${PORT_OPTIONS:MGCONF} || ${PORT_OPTIONS:MDCONF} | ||||
PLIST_SUB+= COMPDIR="" | PLIST_SUB+= COMPDIR="" | ||||
.else | .else | ||||
PLIST_SUB+= COMPDIR="@comment " | PLIST_SUB+= COMPDIR="@comment " | ||||
.endif | .endif | ||||
post-extract-EMOJI-on: | |||||
${CP} ${DISTDIR}/emoji.json ${WRKSRC}/ | |||||
post-install: | post-install: | ||||
${MKDIR} ${STAGEDIR}${PREFIX}/etc/xdg/autostart | ${MKDIR} ${STAGEDIR}${PREFIX}/etc/xdg/autostart | ||||
${INSTALL_DATA} ${PATCHDIR}/ibus.desktop ${STAGEDIR}${PREFIX}/etc/xdg/autostart | ${INSTALL_DATA} ${PATCHDIR}/ibus.desktop ${STAGEDIR}${PREFIX}/etc/xdg/autostart | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |
CONFIGURE_OFF and CONFIGURE_ON can be combined into CONFIGURE_ENABLE:
https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-options.html#options-configure_enable