diff options
author | leeym <leeym@FreeBSD.org> | 2005-02-07 00:30:45 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2005-02-07 00:30:45 +0800 |
commit | 9670a9a3b0f36d58e8efce09bbd36822169870ca (patch) | |
tree | a6cd2394531099d62175925438cf29a3d40abdf5 /chinese | |
parent | 6e1b6c75d181438d7a1079318100576cec684932 (diff) | |
download | freebsd-ports-gnome-9670a9a3b0f36d58e8efce09bbd36822169870ca.tar.gz freebsd-ports-gnome-9670a9a3b0f36d58e8efce09bbd36822169870ca.tar.zst freebsd-ports-gnome-9670a9a3b0f36d58e8efce09bbd36822169870ca.zip |
- add conditional support for NLS and fix PLIST problem
Noticed by: kris, sem
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/wenju/Makefile | 11 | ||||
-rw-r--r-- | chinese/wenju/pkg-plist | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/chinese/wenju/Makefile b/chinese/wenju/Makefile index 78b862be153e..d034f613ac8a 100644 --- a/chinese/wenju/Makefile +++ b/chinese/wenju/Makefile @@ -22,6 +22,17 @@ INSTALLS_SHLIB= yes USE_GETOPT_LONG= yes USE_LIBTOOL_VER= 13 +.if !defined(WITHOUT_NLS) +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" +.else +CONFIGURE_ARGS+=--disable-nls +PLIST_SUB+= NLS="@comment " +.endif + post-install: gtk-query-immodules-2.0 > ${PREFIX}/etc/gtk-2.0/gtk.immodules diff --git a/chinese/wenju/pkg-plist b/chinese/wenju/pkg-plist index 7975a121c0dc..239e448504b7 100644 --- a/chinese/wenju/pkg-plist +++ b/chinese/wenju/pkg-plist @@ -2,6 +2,7 @@ bin/tim-config bin/wrap lib/gtk-2.0/2.4.0/immodules/im-tim.la lib/gtk-2.0/2.4.0/immodules/im-tim.so +%%NLS%%share/locale/zh_CN/LC_MESSAGES/wenju.mo %%DATADIR%%/bxm.tim %%DATADIR%%/cj.tim %%DATADIR%%/erbi.tim |