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 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