Try flavors
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
PORTNAME= rpm
|
PORTNAME= rpm
|
||||||
PORTVERSION= 4.18.2
|
PORTVERSION= 4.18.2
|
||||||
PORTREVISION= 1
|
PORTREVISION= 3
|
||||||
CATEGORIES= archivers
|
CATEGORIES= archivers
|
||||||
MASTER_SITES= http://ftp.rpm.org/releases/rpm-${PORTVERSION:R}.x/
|
MASTER_SITES= http://ftp.rpm.org/releases/rpm-${PORTVERSION:R}.x/
|
||||||
PKGNAMESUFFIX= 4
|
PKGNAMESUFFIX= 4
|
||||||
@ -24,6 +24,10 @@ RUN_DEPENDS= ${LOCALBASE}/lib/libelf.so:devel/elfutils \
|
|||||||
bash:shells/bash \
|
bash:shells/bash \
|
||||||
gxargs:misc/findutils
|
gxargs:misc/findutils
|
||||||
|
|
||||||
|
FLAVORS= default noopenmp
|
||||||
|
FLAVOR?= ${FLAVORS:[1]}
|
||||||
|
noopenmp_PKGNAMESUFFIX= -noopenmp
|
||||||
|
|
||||||
USES= alias bdb cpe gmake iconv libarchive libtool lua pathfix \
|
USES= alias bdb cpe gmake iconv libarchive libtool lua pathfix \
|
||||||
pkgconfig readline shebangfix sqlite tar:bzip2
|
pkgconfig readline shebangfix sqlite tar:bzip2
|
||||||
USE_LDCONFIG= yes
|
USE_LDCONFIG= yes
|
||||||
@ -41,6 +45,9 @@ CONFIGURE_ARGS= --enable-sqlite=yes \
|
|||||||
--with-popt-prefix="${LOCALBASE}" \
|
--with-popt-prefix="${LOCALBASE}" \
|
||||||
--without-javaglue \
|
--without-javaglue \
|
||||||
am_cv_python_version=${PYTHON_VER}${PYTHON_ABIVER}
|
am_cv_python_version=${PYTHON_VER}${PYTHON_ABIVER}
|
||||||
|
.if ${FLAVOR} == noopenmp
|
||||||
|
CONFIGURE_ARGS+= --disable-openmp
|
||||||
|
.endif
|
||||||
CONFIGURE_ENV= LUA_CFLAGS=-I${LUA_INCDIR} \
|
CONFIGURE_ENV= LUA_CFLAGS=-I${LUA_INCDIR} \
|
||||||
LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER} -lm"
|
LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER} -lm"
|
||||||
INSTALL_TARGET= install-strip
|
INSTALL_TARGET= install-strip
|
||||||
@ -58,14 +65,10 @@ BINARY_ALIAS= sed=${LOCALBASE}/bin/gsed
|
|||||||
PLIST_SUB= OPSYS=${OPSYS:tl} \
|
PLIST_SUB= OPSYS=${OPSYS:tl} \
|
||||||
VERSION=${PORTVERSION}
|
VERSION=${PORTVERSION}
|
||||||
|
|
||||||
OPTIONS_DEFINE= NLS PLUGINS PYTHON NOOPENMP
|
OPTIONS_DEFINE= NLS PLUGINS PYTHON
|
||||||
OPTIONS_DEFAULT= PYTHON
|
OPTIONS_DEFAULT= PYTHON
|
||||||
OPTIONS_SUB= yes
|
OPTIONS_SUB= yes
|
||||||
|
|
||||||
NOOPENMP_DESC= Don't compile with OpenMP support
|
|
||||||
|
|
||||||
NOOPENMP_CONFIGURE_ON= --disable-openmp
|
|
||||||
|
|
||||||
NLS_USES= gettext
|
NLS_USES= gettext
|
||||||
NLS_CONFIGURE_ENABLE= nls
|
NLS_CONFIGURE_ENABLE= nls
|
||||||
NLS_LIBS= -lintl
|
NLS_LIBS= -lintl
|
||||||
|
|||||||
Reference in New Issue
Block a user