aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/rpm4/Makefile
diff options
context:
space:
mode:
authorjohans <johans@FreeBSD.org>2010-12-14 15:12:27 +0800
committerjohans <johans@FreeBSD.org>2010-12-14 15:12:27 +0800
commitff78984cfcc8530917b60f277d53c92434a50fd2 (patch)
tree9c5c9670eb34c9c0377b2750e58b3efde421610b /archivers/rpm4/Makefile
parent98fc04718165ed096d4506167e6c1383d8f88c5a (diff)
downloadfreebsd-ports-gnome-ff78984cfcc8530917b60f277d53c92434a50fd2.tar.gz
freebsd-ports-gnome-ff78984cfcc8530917b60f277d53c92434a50fd2.tar.zst
freebsd-ports-gnome-ff78984cfcc8530917b60f277d53c92434a50fd2.zip
- Install Python bindings by default [1]
- Make hidden dependency on liblzma explicit [2] PR: ports/153139 [2] Submitted by: Anders F Björklund <afb@rpm5.org [1] fluffy [2]
Diffstat (limited to 'archivers/rpm4/Makefile')
-rw-r--r--archivers/rpm4/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/archivers/rpm4/Makefile b/archivers/rpm4/Makefile
index e69c619f0c52..3f176e67cbf3 100644
--- a/archivers/rpm4/Makefile
+++ b/archivers/rpm4/Makefile
@@ -6,7 +6,7 @@
PORTNAME= rpm
PORTVERSION= 4.8.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= archivers
MASTER_SITES= http://rpm.org/releases/rpm-${PORTVERSION:R}.x/ \
ftp://ftp.mirrorservice.org/sites/ftp.rpm.org/pub/rpm/dist/rpm-${PORTVERSION:E}.x/
@@ -18,7 +18,7 @@ LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt \
nss3:${PORTSDIR}/security/nss
BUILD_DEPENDS= ${LOCALBASE}/bin/gsed:${PORTSDIR}/textproc/gsed
-OPTIONS= PYTHON "Build Python rpm module" Off
+OPTIONS= PYTHON "Build Python rpm module" On
USE_AUTOTOOLS= libtool
USE_BZIP2= yes
@@ -37,7 +37,11 @@ CONFIGURE_ARGS+=--with-external-db
.include <bsd.port.options.mk>
-.ifdef WITH_PYTHON
+.if ${OSVERSION} < 800505 || (${OSVERSION} >= 900000 && ${OSVERSION} < 900012)
+LIB_DEPENDS+= lzma.0:${PORTSDIR}/archivers/xz
+.endif
+
+.ifndef WITHOUT_PYTHON
CONFIGURE_ARGS+=--enable-python
USE_PYTHON= 2.6+
PLIST_SUB+= PYTHON=""