aboutsummaryrefslogtreecommitdiff
path: root/chinese/wenju
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2005-02-06 16:30:45 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2005-02-06 16:30:45 +0000
commiteb779d774e4a0e8ff44047e14977c0ad731102a5 (patch)
tree3df72103be8ec90246541cae49f2763dab12705d /chinese/wenju
parent03d58dcbca410e02e257dfc541a3517707e650ce (diff)
downloadports-eb779d774e4a0e8ff44047e14977c0ad731102a5.tar.gz
ports-eb779d774e4a0e8ff44047e14977c0ad731102a5.zip
Notes
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