summaryrefslogtreecommitdiff
path: root/archivers/rpm/Makefile
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2007-03-22 22:20:38 +0000
committerPav Lucistnik <pav@FreeBSD.org>2007-03-22 22:20:38 +0000
commit3cdb19f952afdf4c3c6cf2da73ffc06abaa64a89 (patch)
treecfe09802f65907f6f10fc139bcffe77edb2147ca /archivers/rpm/Makefile
parentUpdate to 1.5.0.11 (diff)
- Make gettext optional with WITHOUT_NLS knob
PR: ports/110534 Submitted by: Helge Oldach <ports-rpm-mar07@oldach.net>
Notes
Notes: svn path=/head/; revision=188063
Diffstat (limited to 'archivers/rpm/Makefile')
-rw-r--r--archivers/rpm/Makefile13
1 files changed, 10 insertions, 3 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