summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-07-10 16:58:28 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-07-10 16:58:28 +0000
commitbf26c28e8ccd9f460bb2c8678988355ffa95c56b (patch)
treeb2e5e2e14de8f87e7cc1d6a212269d9077a92790 /archivers
parentSupport WITHOUT_NLS (diff)
Support WITHOUT_NLS
Notes
Notes: svn path=/head/; revision=113338
Diffstat (limited to 'archivers')
-rw-r--r--archivers/dpkg/Makefile8
-rw-r--r--archivers/dpkg/pkg-plist30
2 files changed, 23 insertions, 15 deletions
diff --git a/archivers/dpkg/Makefile b/archivers/dpkg/Makefile
index cf73b3d1e560..12c4bd15753b 100644
--- a/archivers/dpkg/Makefile
+++ b/archivers/dpkg/Makefile
@@ -36,4 +36,12 @@ MAN8= cleanup-info.8 dpkg-divert.8 dpkg-scanpackages.8 \
dpkg.8 dselect.8 install-info.8 start-stop-daemon.8 \
update-alternatives.8 update-rc.d.8
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
.include <bsd.port.mk>
diff --git a/archivers/dpkg/pkg-plist b/archivers/dpkg/pkg-plist
index c8636bad3854..e78d5f2479c5 100644
--- a/archivers/dpkg/pkg-plist
+++ b/archivers/dpkg/pkg-plist
@@ -42,21 +42,21 @@ sbin/install-info
sbin/start-stop-daemon
sbin/update-alternatives
sbin/update-rc.d
-share/locale/ca/LC_MESSAGES/dpkg.mo
-share/locale/cs/LC_MESSAGES/dpkg.mo
-share/locale/da/LC_MESSAGES/dpkg.mo
-share/locale/de/LC_MESSAGES/dpkg.mo
-share/locale/en/LC_MESSAGES/dpkg.mo
-share/locale/es/LC_MESSAGES/dpkg.mo
-share/locale/fr/LC_MESSAGES/dpkg.mo
-share/locale/gl/LC_MESSAGES/dpkg.mo
-share/locale/it/LC_MESSAGES/dpkg.mo
-share/locale/ja/LC_MESSAGES/dpkg.mo
-share/locale/nl/LC_MESSAGES/dpkg.mo
-share/locale/pl/LC_MESSAGES/dpkg.mo
-share/locale/pt_BR/LC_MESSAGES/dpkg.mo
-share/locale/ru/LC_MESSAGES/dpkg.mo
-share/locale/sv/LC_MESSAGES/dpkg.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/dpkg.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/dpkg.mo
+%%NLS%%share/locale/da/LC_MESSAGES/dpkg.mo
+%%NLS%%share/locale/de/LC_MESSAGES/dpkg.mo
+%%NLS%%share/locale/en/LC_MESSAGES/dpkg.mo
+%%NLS%%share/locale/es/LC_MESSAGES/dpkg.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/dpkg.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/dpkg.mo
+%%NLS%%share/locale/it/LC_MESSAGES/dpkg.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/dpkg.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/dpkg.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/dpkg.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/dpkg.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/dpkg.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/dpkg.mo
@dirrm var/dpkg/updates
@dirrm var/dpkg/methods/mnt
@dirrm var/dpkg/methods/floppy