2007-05-14 09:20:12 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2007/05/14 13:20:12 msf Exp $
|
2006-11-20 19:47:28 -05:00
|
|
|
COMMENT-main= 'multilingual input method library'
|
2006-10-19 05:35:16 -04:00
|
|
|
COMMENT-gtk= 'uim for gtk'
|
|
|
|
COMMENT-qt= 'uim for qt'
|
2007-04-08 10:58:04 -04:00
|
|
|
COMMENT-kde= 'uim for kde'
|
|
|
|
COMMENT-gnome= 'uim for gnome'
|
2006-10-18 19:57:22 -04:00
|
|
|
|
2006-10-19 05:35:16 -04:00
|
|
|
SHARED_ONLY= Yes
|
2006-10-18 19:57:22 -04:00
|
|
|
CATEGORIES= inputmethods japanese chinese
|
|
|
|
|
2007-04-08 10:58:04 -04:00
|
|
|
V= 1.4.1
|
2006-10-19 05:35:16 -04:00
|
|
|
DISTNAME= uim-$V
|
2007-04-08 10:58:04 -04:00
|
|
|
MASTER_SITES= http://uim.freedesktop.org/releases/uim/stable/
|
2006-10-18 19:57:22 -04:00
|
|
|
HOMEPAGE= http://uim.freedesktop.org/wiki/
|
2007-04-08 10:58:04 -04:00
|
|
|
PKGNAME-main= uim-$V
|
2007-05-14 09:20:12 -04:00
|
|
|
PKGNAME-gtk= uim-gtk-$Vp0
|
2006-10-19 05:35:16 -04:00
|
|
|
PKGNAME-qt= uim-qt-$V
|
2007-04-08 10:58:04 -04:00
|
|
|
PKGNAME-kde= uim-kde-$V
|
|
|
|
PKGNAME-gnome= uim-gnome-$V
|
2006-10-18 19:57:22 -04:00
|
|
|
|
|
|
|
# BSD
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2007-04-08 10:58:04 -04:00
|
|
|
SHARED_LIBS += gcroots 0.0 # .0.0
|
|
|
|
SHARED_LIBS += uim 1.0 # .5.0
|
|
|
|
SHARED_LIBS += uim-custom 0.0 # .2.0
|
2006-10-18 19:57:22 -04:00
|
|
|
|
2007-04-08 10:58:04 -04:00
|
|
|
MULTI_PACKAGES= -main -gtk -qt -kde -gnome
|
2006-10-19 05:35:16 -04:00
|
|
|
|
2006-10-18 19:57:22 -04:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2006-11-20 19:47:28 -05:00
|
|
|
|
|
|
|
MODULES=converters/libiconv devel/gettext x11/qt3
|
2006-10-18 19:57:22 -04:00
|
|
|
|
|
|
|
USE_GMAKE=Yes
|
|
|
|
USE_LIBTOOL=Yes
|
|
|
|
USE_X11=Yes
|
2007-04-08 10:58:04 -04:00
|
|
|
AUTOCONF_VERSION= 2.61
|
|
|
|
AUTOCONF_DIR= ${WRKDIST} ${WRKDIST}/sigscheme
|
2006-10-19 05:35:16 -04:00
|
|
|
SUBST_VARS= MODQT_PLUGINS
|
|
|
|
|
2006-10-18 19:57:22 -04:00
|
|
|
|
2007-04-08 10:58:04 -04:00
|
|
|
WANTLIB= Xrender X11 fontconfig freetype Xext c stdc++ m Xau Xdmcp
|
2006-11-20 19:47:28 -05:00
|
|
|
|
|
|
|
LIB_DEPENDS-main=anthy,anthydic::inputmethods/anthy \
|
|
|
|
${MODLIBICONV_LIB_DEPENDS} \
|
|
|
|
${MODGETTEXT_LIB_DEPENDS}
|
2007-04-08 10:58:04 -04:00
|
|
|
WANTLIB-main= ${WANTLIB} curses util Xft expat z
|
|
|
|
|
|
|
|
uim_LIB_DEPENDS=uim,uim-custom,gcroots::inputmethods/uim
|
2006-11-20 19:47:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
LIB_DEPENDS-qt= ${LIB_DEPENDS-main} ${MODQT_LIB_DEPENDS} ${uim_LIB_DEPENDS}
|
|
|
|
WANTLIB-qt= ${WANTLIB} pthread
|
2006-10-18 19:57:22 -04:00
|
|
|
|
2006-11-20 19:47:28 -05:00
|
|
|
|
2007-04-08 10:58:04 -04:00
|
|
|
LIB_DEPENDS-kde=${LIB_DEPENDS-qt} \
|
|
|
|
kdecore.>=7,DCOP,kdefx,kdeui::x11/kde/libs3
|
|
|
|
WANTLIB-kde= ${WANTLIB-qt} ICE SM idn jpeg png util z art_lgpl_2
|
|
|
|
|
|
|
|
|
|
|
|
LIB_DEPENDS-gtk=${LIB_DEPENDS-main} ${uim_LIB_DEPENDS} \
|
|
|
|
gtk-x11-2.0,gdk-x11-2.0,gdk_pixbuf-2.0::x11/gtk+2
|
2006-11-20 19:47:28 -05:00
|
|
|
WANTLIB-gtk= ${WANTLIB} glib-2.0 gmodule-2.0 pangoft2-1.0 \
|
2006-10-19 05:35:16 -04:00
|
|
|
gobject-2.0 pango-1.0 atk-1.0 \
|
2007-04-08 10:58:04 -04:00
|
|
|
pangocairo-1.0 cairo glitz png z expat
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LIB_DEPENDS-gnome=${LIB_DEPENDS-gtk} \
|
|
|
|
panel-applet-2::x11/gnome/panel
|
|
|
|
WANTLIB-gnome= ${WANTLIB-gtk} ICE SM crypto gthread-2.0 jpeg pthread ssl \
|
|
|
|
ORBit-2 ORBitCosNaming-2 art_lgpl_2 audiofile bonobo-2 \
|
|
|
|
bonobo-activation esd gconf-2 glade-2.0 gnome-2 gnomecanvas-2 \
|
|
|
|
popt xml2 bonoboui-2 gnome-keyring gnomeui-2 gnomevfs-2
|
|
|
|
|
2006-10-19 05:35:16 -04:00
|
|
|
|
|
|
|
|
2007-05-14 09:20:12 -04:00
|
|
|
MAKE_FLAGS= moduledir='${LOCALBASE}/lib/gtk-2.0/2.10.0/immodules' \
|
2007-04-08 10:58:04 -04:00
|
|
|
UIM_QT_LDFLAGS='-pthread -L${X11BASE}/lib -L${MODQT_LIBDIR} -lqt-mt -lXext -lX11' \
|
|
|
|
itlocaledir=${TRUEPREFIX}/share/locale
|
|
|
|
|
2006-10-18 19:57:22 -04:00
|
|
|
|
|
|
|
FAKE_FLAGS= ${MAKE_FLAGS} DESTDIR=${WRKINST}
|
|
|
|
CONFIGURE_ENV= CPPFLAGS='-I${LOCALBASE}/include -I${X11BASE}/include'
|
2006-10-19 05:35:16 -04:00
|
|
|
CONFIGURE_ENV+= LDFLAGS='-L${MODQT_LIBDIR} -L${LOCALBASE}/lib -L${X11BASE}/lib'
|
|
|
|
CONFIGURE_ENV+= QTDIR=${MODQT_QTDIR}
|
2006-10-18 19:57:22 -04:00
|
|
|
|
|
|
|
CONFIGURE_ARGS= --without-canna --with-anthy --without-prime \
|
2007-04-08 10:58:04 -04:00
|
|
|
--with-gtk2 --without-gnome2 \
|
2006-10-19 05:35:16 -04:00
|
|
|
--with-qt --with-qt-immodule \
|
2006-10-18 19:57:22 -04:00
|
|
|
--enable-default-toolkit=gtk --without-m17nlib \
|
|
|
|
--enable-pref --enable-dict
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|