freebsd-ports/textproc/ibus/Makefile
Koop Mast af3811313c The FreeBSD GNOME team proudly presents GNOME 3.14 and Cinnamon 2.2.
Gnome 3.14.1 and Cinnamon 2.2.16 are supported on FreeBSD 9.3-RELEASE and up.

This commit removes the old GNOME 2 desktop, bindings and some ports that
can't be compiled. A few ports where updated to more recent versions to
allow them to compile with this update.

Apart from updating ports to newer versions

GDM is more integrated with gnome-shell now, and handles several things for
the GNOME desktop such as screen locking. If you want to use GNOME 3 via
startx, you will have to add your own lock screen/screensaver. For example xscreensaver
can be used for sessions started without GDM.

Shell Extensions can be installed via https://extensions.gnome.org/ , we have
ported a few that can't be installed via this way.
The old gnome-utils and gnome-games ports where split up into single ports
and where converted to meta-ports.
gnome-terminal requires a UTF-8 locale to run, gdm handles this already, but
if you use startx you need to do this yourself.

Upgrade instructions:

Delete the old and conflicting packages:
# pkg delete clutter gnome-utils gnome-panel gnome-keyring vala-vapigen \
    guile gcalctool gnome-media libgnomekbd
# pkg delete gnome-screensaver gnome-applets bug-buddy evolution-exchange \
    evolution-webcal gnome-system-tools seahorse-plugins gnome-control-center

For package users the following lines will be enough:
# pkg upgrade
# pkg install gnome3

For ports users should do the following:
# portmaster -a
# portmaster x11/gnome3

We are currently aware of two issues. The first issue is a bug in the
file monitoring code in the glib20 port. This bug causes glib programs
to crash when files in a monitored directory are added or removed.
Upstream is aware of the problem, but since the problem is quite complex
there is no solution yet. This problem isn't restricted to BSD.

The second issue is that on certain video cards totem will display a
purple/pink overlay on the video. It not clear yet where the issues
comes from.

Major thanks goes to Gustau Perez for being a driving force behind getting
GNOME 3 up to speed again. Also thanks to Antoine Brodin for running the exp-runs.

This update was also made possible by:
	Joe Maloney
	Kris Moore
	Beeblebrox
	Ryan Lortie
	Antoine Jacoutot
	and everyone I missed
2014-11-19 11:49:04 +00:00

124 lines
3.6 KiB
Makefile

# Created by: Henry Hu <henry.hu.sh@gmail.com>
# $FreeBSD$
PORTNAME= ibus
PORTVERSION= 1.5.5
PORTREVISION= 3
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
MAINTAINER= henry.hu.sh@gmail.com
COMMENT= Intelligent Input Bus for Linux / Unix OS
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>=0.83.0:${PORTSDIR}/devel/py-dbus \
librsvg2>=2.0:${PORTSDIR}/graphics/librsvg2
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>=0.83.0:${PORTSDIR}/devel/py-dbus \
${PYTHON_SITELIBDIR}/gtk-2.0/pynotify/__init__.py:${PORTSDIR}/devel/py-notify \
${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py-xdg \
librsvg2>=2.0:${PORTSDIR}/graphics/librsvg2 \
setxkbmap:${PORTSDIR}/x11/setxkbmap
LIB_DEPENDS= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib
USES= compiler gmake libtool pathfix pkgconfig
USE_GNOME= pygobject3
USE_PYTHON= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
INSTALLS_ICONS= yes
OPTIONS_SUB= yes
INSTALL_TARGET= install-strip
CONFIGURE_ARGS= --disable-tests
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= ISOCODES NLS GTK2 GTK3 VALA GINTRO PYTHON_LIB DOCS XIM ENGINE
OPTIONS_RADIO= CONFIG
OPTIONS_RADIO_CONFIG= GCONF DCONF
OPTIONS_DEFAULT= ISOCODES NLS GTK2 GTK3 VALA GINTRO PYTHON_LIB DCONF XIM ENGINE
ISOCODES_DESC= Use isocodecs
GTK2_DESC= Install GTK2 client
GTK3_DESC= Install GTK3 client and panel
VALA_DESC= Install vala binding
GINTRO_DESC= Install GObject Introspection data
PYTHON_LIB_DESC= Install ibus Python libraries
GCONF_DESC= Use GConf for configuration
DCONF_DESC= Use dconf for configuration
XIM_DESC= Install XIM server
ENGINE_DESC= Install ibus simple engine
ISOCODES_BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes
ISOCODES_RUN_DEPENDS= ${LOCALBASE}/share/xml/iso-codes/iso_639.xml:${PORTSDIR}/misc/iso-codes
ISOCODES_CONFIGURE_OFF= --disable-iso-codes-check
NLS_USES= gettext
NLS_CONFIGURE_WITH= nls
GTK2_USE= GNOME=gtk20
GTK2_CONFIGURE_ENABLE= gtk2
GTK3_USE= GNOME=gtk30
GTK3_CONFIGURE_ENABLE= gtk3 libnotify
GTK3_LIB_DEPENDS= libnotify.so:${PORTSDIR}/devel/libnotify
VALA_BUILD_DEPENDS= vala>=0.16:${PORTSDIR}/lang/vala
VALA_CONFIGURE_ENABLE= vala
GINTRO_BUILD_DEPENDS= gobject-introspection>=0.6.8:${PORTSDIR}/devel/gobject-introspection
GINTRO_RUN_DEPENDS= gobject-introspection>=0.6.8:${PORTSDIR}/devel/gobject-introspection
GINTRO_CONFIGURE_ON= --enable-introspection=yes
GINTRO_CONFIGURE_OFF= --enable-introspection=no
PYTHON_LIB_USE= GNOME=pygtk2
PYTHON_LIB_CONFIGURE_ENABLE= python-library
GCONF_USE= GNOME=gconf2
GCONF_CONFIGURE_ENABLE= gconf
DCONF_USE= GNOME=dconf,gconf2
DCONF_CONFIGURE_ENABLE= dconf
DOCS_CONFIGURE_ENABLE= gtk-doc-html
DOCS_CONFIGURE_ON= --with-html-dir=${PREFIX}/share/doc
XIM_CONFIGURE_ENABLE= xim
ENGINE_CONFIGURE_ENABLE= engine
.include <bsd.port.pre.mk>
.if ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} < 46
USE_GCC= yes
.endif
.if ${PORT_OPTIONS:MGCONF}
GCONF_SCHEMAS= ibus.schemas
.endif
.if ${PORT_OPTIONS:MDCONF}
GLIB_SCHEMAS= org.freedesktop.ibus.gschema.xml
.endif
.if ${PORT_OPTIONS:MENGINE} || ${PORT_OPTIONS:MGTK3} || ${PORT_OPTIONS:MGCONF} || ${PORT_OPTIONS:MDCONF}
PLIST_SUB+= COMPDIR=""
.else
PLIST_SUB+= COMPDIR="@comment "
.endif
# Workaround XIGrabKeycode/XIUngrabKeycode bug: XIAllMasterDevice does not work
.if !defined(WITH_NEW_XORG)
EXTRA_PATCHES+= ${FILESDIR}/extra-xigrabkeycode
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/var/lib/dbus|/var/db/dbus|g' ${WRKSRC}/src/ibusshare.c
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/xdg/autostart
@${INSTALL_DATA} ${PATCHDIR}/ibus.desktop ${STAGEDIR}${PREFIX}/etc/xdg/autostart
.include <bsd.port.post.mk>