summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2009-03-19 22:36:53 +0000
committerPav Lucistnik <pav@FreeBSD.org>2009-03-19 22:36:53 +0000
commit715e6ae9fd7931799298ed03f8d926311c03dc4e (patch)
tree4755f2c22a98cc579f0e917d445000306a2efa05 /x11
parentThe lsof port has a patch that turns HASSECURITY on. However, thanks to the (diff)
- Support WITHOUT_NLS
PR: ports/121230 Submitted by: Helge Oldach <ports-x11-xkeyboard-config-may07@oldach.net>
Notes
Notes: svn path=/head/; revision=230451
Diffstat (limited to 'x11')
-rw-r--r--x11/xkeyboard-config/Makefile14
-rw-r--r--x11/xkeyboard-config/pkg-plist60
2 files changed, 42 insertions, 32 deletions
diff --git a/x11/xkeyboard-config/Makefile b/x11/xkeyboard-config/Makefile
index 56decab70dc3..85f058549453 100644
--- a/x11/xkeyboard-config/Makefile
+++ b/x11/xkeyboard-config/Makefile
@@ -17,10 +17,8 @@ COMMENT= X Keyboard Configuration Database
BUILD_DEPENDS= xkbcomp:${PORTSDIR}/x11/xkbcomp
USE_BZIP2= yes
-USE_ICONV= yes
USE_GMAKE= yes
USE_GNOME= intlhack
-USE_GETTEXT= yes
USE_PERL5_BUILD=yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-xkb-base=${PREFIX}/share/X11/xkb \
@@ -28,6 +26,18 @@ CONFIGURE_ARGS= --with-xkb-base=${PREFIX}/share/X11/xkb \
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+= --disable-nls --with-included-gettext
+CONFIGURE_ENV+= MSGFMT="/bin/echo '(GNU '" \
+ XGETTEXT="/bin/echo '(GNU '" \
+ MSGMERGE="/bin/echo '(GNU '"
+PLIST_SUB+= NLS="@comment "
+.else
+USE_ICONV= yes
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.endif
+
post-install:
${MKDIR} /var/lib/xkb
${LN} -sf /var/lib/xkb ${PREFIX}/share/X11/xkb/compiled
diff --git a/x11/xkeyboard-config/pkg-plist b/x11/xkeyboard-config/pkg-plist
index baec34b5b91c..77f8242d698a 100644
--- a/x11/xkeyboard-config/pkg-plist
+++ b/x11/xkeyboard-config/pkg-plist
@@ -296,34 +296,34 @@ share/X11/xkb/types/numpad
share/X11/xkb/types/pc
share/X11/xkb/types/README
share/X11/xkb/xkbcomp
-share/locale/af/LC_MESSAGES/xkeyboard-config.mo
-share/locale/az/LC_MESSAGES/xkeyboard-config.mo
-share/locale/bg/LC_MESSAGES/xkeyboard-config.mo
-share/locale/cs/LC_MESSAGES/xkeyboard-config.mo
-share/locale/da/LC_MESSAGES/xkeyboard-config.mo
-share/locale/el/LC_MESSAGES/xkeyboard-config.mo
-share/locale/en_GB/LC_MESSAGES/xkeyboard-config.mo
-share/locale/es/LC_MESSAGES/xkeyboard-config.mo
-share/locale/fi/LC_MESSAGES/xkeyboard-config.mo
-share/locale/fr/LC_MESSAGES/xkeyboard-config.mo
-share/locale/hu/LC_MESSAGES/xkeyboard-config.mo
-share/locale/it/LC_MESSAGES/xkeyboard-config.mo
-share/locale/ka/LC_MESSAGES/xkeyboard-config.mo
-share/locale/ko/LC_MESSAGES/xkeyboard-config.mo
-share/locale/nl/LC_MESSAGES/xkeyboard-config.mo
-share/locale/ru/LC_MESSAGES/xkeyboard-config.mo
-share/locale/rw/LC_MESSAGES/xkeyboard-config.mo
-share/locale/sk/LC_MESSAGES/xkeyboard-config.mo
-share/locale/sl/LC_MESSAGES/xkeyboard-config.mo
-share/locale/sq/LC_MESSAGES/xkeyboard-config.mo
-share/locale/sr/LC_MESSAGES/xkeyboard-config.mo
-share/locale/sr@Latn/LC_MESSAGES/xkeyboard-config.mo
-share/locale/sv/LC_MESSAGES/xkeyboard-config.mo
-share/locale/tr/LC_MESSAGES/xkeyboard-config.mo
-share/locale/uk/LC_MESSAGES/xkeyboard-config.mo
-share/locale/vi/LC_MESSAGES/xkeyboard-config.mo
-share/locale/zh_CN/LC_MESSAGES/xkeyboard-config.mo
-share/locale/zh_TW/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/af/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/az/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/bg/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/da/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/el/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/en_GB/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/es/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/it/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/ka/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/ko/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/rw/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/sl/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/sq/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/sr/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/sr@Latn/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/vi/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/xkeyboard-config.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/xkeyboard-config.mo
@exec mkdir -p /var/lib/xkb
@dirrm share/X11/xkb/compat
@dirrm share/X11/xkb/geometry/digital_vndr
@@ -352,5 +352,5 @@ share/locale/zh_TW/LC_MESSAGES/xkeyboard-config.mo
@dirrm share/X11/xkb
@dirrmtry share/X11
@dirrmtry /var/lib/xkb
-@dirrmtry share/locale/rw/LC_MESSAGES
-@dirrmtry share/locale/rw
+%%NLS%%@dirrmtry share/locale/rw/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/rw