aboutsummaryrefslogtreecommitdiff
path: root/archivers/rpm4/Makefile
diff options
context:
space:
mode:
authorJohan van Selst <johans@FreeBSD.org>2010-08-23 17:46:45 +0000
committerJohan van Selst <johans@FreeBSD.org>2010-08-23 17:46:45 +0000
commit8869fdeb3ade9a3d241b86e0f972d82625b60abb (patch)
tree78b844f9152ad91a4d70f9b1ab3e5698dce42c8c /archivers/rpm4/Makefile
parentc0588c64af2db1fa817e932bc319b7f7fdd71476 (diff)
downloadports-8869fdeb3ade9a3d241b86e0f972d82625b60abb.tar.gz
ports-8869fdeb3ade9a3d241b86e0f972d82625b60abb.zip
Notes
Diffstat (limited to 'archivers/rpm4/Makefile')
-rw-r--r--archivers/rpm4/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/archivers/rpm4/Makefile b/archivers/rpm4/Makefile
index 51cbb03cfad1..e50d3602702b 100644
--- a/archivers/rpm4/Makefile
+++ b/archivers/rpm4/Makefile
@@ -6,7 +6,7 @@
PORTNAME= rpm
PORTVERSION= 4.8.1
-PORTREVISION= 1
+PORTREVISION= 2
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/
@@ -19,6 +19,8 @@ LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt \
lzma:${PORTSDIR}/archivers/xz
BUILD_DEPENDS= ${LOCALBASE}/bin/gsed:${PORTSDIR}/textproc/gsed
+OPTIONS= PYTHON "Build Python rpm module" Off
+
USE_AUTOTOOLS= libtool:22
USE_BZIP2= yes
USE_GMAKE= yes
@@ -34,14 +36,16 @@ CPPFLAGS+= -I${LOCALBASE}/include/nspr -I${LOCALBASE}/include/nss/nss \
LDFLAGS+= -L${LOCALBASE}/lib/nss -L${BDB_LIB_DIR} -L${LUA_LIBDIR}
CONFIGURE_ARGS+=--with-external-db
+.include <bsd.port.options.mk>
+
.ifdef WITH_PYTHON
-CONFIGURE_ARGS+=--with-python=auto
-USE_PYTHON= yes
+CONFIGURE_ARGS+=--enable-python
+USE_PYTHON= 2.6+
PLIST_SUB+= PYTHON=""
CPPFLAGS+= -I${PYTHON_INCLUDEDIR}
LDFLAGS+= -L${PYTHON_LIBDIR}
.else
-CONFIGURE_ARGS+=--without-python
+CONFIGURE_ARGS+=--disable-python
PLIST_SUB+= PYTHON="@comment "
.endif