aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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