aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/wenju
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2005-02-07 00:30:45 +0800
committerleeym <leeym@FreeBSD.org>2005-02-07 00:30:45 +0800
commit9670a9a3b0f36d58e8efce09bbd36822169870ca (patch)
treea6cd2394531099d62175925438cf29a3d40abdf5 /chinese/wenju
parent6e1b6c75d181438d7a1079318100576cec684932 (diff)
downloadfreebsd-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/wenju')
-rw-r--r--chinese/wenju/Makefile11
-rw-r--r--chinese/wenju/pkg-plist1
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