diff options
author | pav <pav@FreeBSD.org> | 2007-03-23 06:20:38 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2007-03-23 06:20:38 +0800 |
commit | dbd192f61c2d0494630344619564a40ac0598bd1 (patch) | |
tree | a4c1f196f7c82d8f10d841b7d941c8cb3ebe79f1 | |
parent | 9dcd402b7c8c88e98e4e42c4ab7835610d1f9021 (diff) | |
download | freebsd-ports-gnome-dbd192f61c2d0494630344619564a40ac0598bd1.tar.gz freebsd-ports-gnome-dbd192f61c2d0494630344619564a40ac0598bd1.tar.zst freebsd-ports-gnome-dbd192f61c2d0494630344619564a40ac0598bd1.zip |
- Make gettext optional with WITHOUT_NLS knob
PR: ports/110534
Submitted by: Helge Oldach <ports-rpm-mar07@oldach.net>
-rw-r--r-- | archivers/rpm/Makefile | 13 | ||||
-rw-r--r-- | archivers/rpm/pkg-plist | 26 |
2 files changed, 23 insertions, 16 deletions
diff --git a/archivers/rpm/Makefile b/archivers/rpm/Makefile index 35e82b4815ab..c3583ddf37d5 100644 --- a/archivers/rpm/Makefile +++ b/archivers/rpm/Makefile @@ -19,15 +19,22 @@ LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt CONFLICTS= rpm-4.* -USE_GETTEXT= yes USE_GMAKE= yes USE_AUTOTOOLS= automake:14 autoconf:213 libtool:15 CONFIGURE_ARGS= --with-glob -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ - LIBS="-L${LOCALBASE}/lib -lintl -liconv" USE_LDCONFIG= yes MAKE_ENV= OLD_PO_FILE_INPUT=1 +.if defined(WITHOUT_NLS) +CONFIGURE_ARGS+= --disable-nls +PLIST_SUB+= NLS="@comment " +.else +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LIBS="-L${LOCALBASE}/lib -lintl -liconv" +.endif + MAN1= gendiff.1 MAN8= rpm.8 rpm2cpio.8 diff --git a/archivers/rpm/pkg-plist b/archivers/rpm/pkg-plist index fbaedefa706b..56dc7cf9813a 100644 --- a/archivers/rpm/pkg-plist +++ b/archivers/rpm/pkg-plist @@ -56,19 +56,19 @@ lib/rpm/vpkg-provides.sh lib/rpm/vpkg-provides2.sh lib/rpmpopt lib/rpmrc -share/locale/cs/LC_MESSAGES/rpm.mo -share/locale/de/LC_MESSAGES/rpm.mo -share/locale/fi/LC_MESSAGES/rpm.mo -share/locale/fr/LC_MESSAGES/rpm.mo -share/locale/ja/LC_MESSAGES/rpm.mo -share/locale/pl/LC_MESSAGES/rpm.mo -share/locale/pt_BR/LC_MESSAGES/rpm.mo -share/locale/ru/LC_MESSAGES/rpm.mo -share/locale/sk/LC_MESSAGES/rpm.mo -share/locale/sl/LC_MESSAGES/rpm.mo -share/locale/sr/LC_MESSAGES/rpm.mo -share/locale/sv/LC_MESSAGES/rpm.mo -share/locale/tr/LC_MESSAGES/rpm.mo +%%NLS%%share/locale/cs/LC_MESSAGES/rpm.mo +%%NLS%%share/locale/de/LC_MESSAGES/rpm.mo +%%NLS%%share/locale/fi/LC_MESSAGES/rpm.mo +%%NLS%%share/locale/fr/LC_MESSAGES/rpm.mo +%%NLS%%share/locale/ja/LC_MESSAGES/rpm.mo +%%NLS%%share/locale/pl/LC_MESSAGES/rpm.mo +%%NLS%%share/locale/pt_BR/LC_MESSAGES/rpm.mo +%%NLS%%share/locale/ru/LC_MESSAGES/rpm.mo +%%NLS%%share/locale/sk/LC_MESSAGES/rpm.mo +%%NLS%%share/locale/sl/LC_MESSAGES/rpm.mo +%%NLS%%share/locale/sr/LC_MESSAGES/rpm.mo +%%NLS%%share/locale/sv/LC_MESSAGES/rpm.mo +%%NLS%%share/locale/tr/LC_MESSAGES/rpm.mo @dirrm lib/rpm @dirrm include/rpm @dirrmtry src/redhat/SRPMS |