aboutsummaryrefslogtreecommitdiff
path: root/korean
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2011-08-26 19:15:26 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2011-08-26 19:15:26 +0000
commit0a6432e53014b87eb2686156a34ca471fa2ea258 (patch)
treefcc7949639a352d5e33571b5883304b6a55dbf02 /korean
parent08db3496bd6b568f5e182a297cd51442369e1ddf (diff)
downloadports-0a6432e53014b87eb2686156a34ca471fa2ea258.tar.gz
ports-0a6432e53014b87eb2686156a34ca471fa2ea258.zip
Notes
Diffstat (limited to 'korean')
-rw-r--r--korean/ibus-hangul/Makefile11
-rw-r--r--korean/ibus-hangul/files/patch-src-i18n.h21
-rw-r--r--korean/ibus-hangul/pkg-plist4
3 files changed, 33 insertions, 3 deletions
diff --git a/korean/ibus-hangul/Makefile b/korean/ibus-hangul/Makefile
index d60d1c1081b8..ac44880180dd 100644
--- a/korean/ibus-hangul/Makefile
+++ b/korean/ibus-hangul/Makefile
@@ -22,11 +22,20 @@ PROJECTHOST= ibus
GNU_CONFIGURE= yes
USE_AUTOTOOLS= libtool
-USE_GETTEXT= yes
USE_GMAKE= yes
USE_GNOME= gnomehack intltool pkgconfig
USE_PYTHON= yes
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
post-install:
@${CAT} ${PKGMESSAGE}
@${ECHO} To display this message again, type ${PKG_INFO} -D ${PKGNAME}
diff --git a/korean/ibus-hangul/files/patch-src-i18n.h b/korean/ibus-hangul/files/patch-src-i18n.h
new file mode 100644
index 000000000000..f4f66f732f6b
--- /dev/null
+++ b/korean/ibus-hangul/files/patch-src-i18n.h
@@ -0,0 +1,21 @@
+--- src/i18n.h.orig 2009-10-31 02:59:39.000000000 -0400
++++ src/i18n.h 2011-08-25 19:58:34.000000000 -0400
+@@ -3,9 +3,18 @@
+ #ifndef ibus_hangul_i18n_h
+ #define ibus_hangul_i18n_h
+
++#ifdef ENABLE_NLS
++
+ #include <libintl.h>
+
+ #define _(str) gettext(str)
+ #define N_(str) (str)
+
++#else /* ENABLE_NLS */
++
++#define _(str) (str)
++#define N_(str) str
++
++#endif /* ENABLE_NLS */
++
+ #endif /* ibus_hangul_i18n_h */
diff --git a/korean/ibus-hangul/pkg-plist b/korean/ibus-hangul/pkg-plist
index 30861fefecec..7fbe2a67d360 100644
--- a/korean/ibus-hangul/pkg-plist
+++ b/korean/ibus-hangul/pkg-plist
@@ -15,8 +15,8 @@ share/ibus/component/hangul.xml
%%DATADIR%%/setup/main.pyc
%%DATADIR%%/setup/main.pyo
%%DATADIR%%/setup/setup.ui
-share/locale/ko/LC_MESSAGES/ibus-hangul.mo
-share/locale/zh_CN/LC_MESSAGES/ibus-hangul.mo
+%%NLS%%share/locale/ko/LC_MESSAGES/ibus-hangul.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/ibus-hangul.mo
@dirrm %%DATADIR%%/data
@dirrm %%DATADIR%%/icons
@dirrm %%DATADIR%%/setup