diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2006-03-29 15:32:26 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2006-03-29 15:32:26 +0000 |
commit | a0c4cbd9ae7e23fb7155f44f1dd2cdbf8ce1d60e (patch) | |
tree | e02fe26ff9803a13d247cfdcb4d8ddecc637219b /chinese/oxim/Makefile | |
parent | 60808af285d8e9fcb6857ff9ea93b68f8dee23e8 (diff) | |
download | ports-a0c4cbd9ae7e23fb7155f44f1dd2cdbf8ce1d60e.tar.gz ports-a0c4cbd9ae7e23fb7155f44f1dd2cdbf8ce1d60e.zip |
Notes
Diffstat (limited to 'chinese/oxim/Makefile')
-rw-r--r-- | chinese/oxim/Makefile | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/chinese/oxim/Makefile b/chinese/oxim/Makefile new file mode 100644 index 000000000000..c4bd4a9a7326 --- /dev/null +++ b/chinese/oxim/Makefile @@ -0,0 +1,72 @@ +# New ports collection makefile for: oxim +# Date created: Mar 19 2006 +# Whom: Rong-En Fan <rafan@infor.org> +# +# $FreeBSD$ +# + +PORTNAME= oxim +PORTVERSION= 1.0.1 +CATEGORIES= chinese textproc +MASTER_SITES= ftp://140.111.128.66/odp/OXIM/Source/ + +MAINTAINER= rafan@infor.org +COMMENT= Open X Input Method server + +# make sure we have the required libchewing +LIB_DEPENDS= Xft.2:${PORTSDIR}/x11-fonts/libXft +BUILD_DEPENDS= zh-libchewing>=0.2.7:${PORTSDIR}/chinese/libchewing +RUN_DEPENDS= zh-libchewing>=0.2.7:${PORTSDIR}/chinese/libchewing \ + zh-fireflyttf>=0:${PORTSDIR}/chinese/fireflyttf + +OPTIONS= GTK2 "Enable GTK2 input method module" On + +USE_ICONV= yes +USE_X_PREFIX= yes +USE_GNOME= + +GNU_CONFIGURE= yes +INSTALLS_SHLIB= yes +CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -liconv +CONFIGURE_ENV+= CONFIG_SHELL=${SH} \ + CHEWING_CFLAGS=-I${LOCALBASE}/include \ + CPPFLAGS="${CPPFLAGS}" \ + LDFLAGS="${LDFLAGS}" +CONFIGURE_ARGS+=--disable-bimsphone-module \ + --disable-static \ + --with-conf-dir=${PREFIX}/etc/${PORTNAME} + +.include <bsd.port.pre.mk> + +.if defined(WITHOUT_GTK2) +CONFIGURE_ARGS+= --disable-gtk-immodule +PLIST_SUB+= GTK2="@comment " +.else +USE_GNOME+= gtk20 +CONFIGURE_ARGS+= --enable-gtk-immodule +PLIST_SUB+= GTK2="" +.endif + +# TODO WITHOUT_NLS knob +#.if !defined(WITHOUT_NLS) +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +LDFLAGS+= -lintl +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" +#.else +#CONFIGURE_ARGS+=--disable-nls +#PLIST_SUB+= NLS="@comment " +#.endif + +post-patch: + ${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|' \ + ${WRKSRC}/src/gtk-immodule/gtkintl.h +post-install: +.if !defined(WITHOUT_GTK2) + @gtk-query-immodules-2.0 > ${PREFIX}/etc/gtk-2.0/gtk.immodules +.endif + @${CAT} ${PKGMESSAGE} + @${ECHO} To display this message again, type ${PKG_INFO} -D ${PKGNAME} + +.include <bsd.port.post.mk> |