From acdcb76e3193dba309794400c0be9111840bf0d0 Mon Sep 17 00:00:00 2001 From: Xavier Beaudouin Date: Mon, 14 Oct 2024 10:17:43 +0200 Subject: [PATCH] Try flavors --- archivers/rpm4/Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/archivers/rpm4/Makefile b/archivers/rpm4/Makefile index 06e3f7c..da94741 100644 --- a/archivers/rpm4/Makefile +++ b/archivers/rpm4/Makefile @@ -1,6 +1,6 @@ PORTNAME= rpm PORTVERSION= 4.18.2 -PORTREVISION= 1 +PORTREVISION= 3 CATEGORIES= archivers MASTER_SITES= http://ftp.rpm.org/releases/rpm-${PORTVERSION:R}.x/ PKGNAMESUFFIX= 4 @@ -24,6 +24,10 @@ RUN_DEPENDS= ${LOCALBASE}/lib/libelf.so:devel/elfutils \ bash:shells/bash \ gxargs:misc/findutils +FLAVORS= default noopenmp +FLAVOR?= ${FLAVORS:[1]} +noopenmp_PKGNAMESUFFIX= -noopenmp + USES= alias bdb cpe gmake iconv libarchive libtool lua pathfix \ pkgconfig readline shebangfix sqlite tar:bzip2 USE_LDCONFIG= yes @@ -41,6 +45,9 @@ CONFIGURE_ARGS= --enable-sqlite=yes \ --with-popt-prefix="${LOCALBASE}" \ --without-javaglue \ am_cv_python_version=${PYTHON_VER}${PYTHON_ABIVER} +.if ${FLAVOR} == noopenmp +CONFIGURE_ARGS+= --disable-openmp +.endif CONFIGURE_ENV= LUA_CFLAGS=-I${LUA_INCDIR} \ LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER} -lm" INSTALL_TARGET= install-strip @@ -58,14 +65,10 @@ BINARY_ALIAS= sed=${LOCALBASE}/bin/gsed PLIST_SUB= OPSYS=${OPSYS:tl} \ VERSION=${PORTVERSION} -OPTIONS_DEFINE= NLS PLUGINS PYTHON NOOPENMP +OPTIONS_DEFINE= NLS PLUGINS PYTHON OPTIONS_DEFAULT= PYTHON OPTIONS_SUB= yes -NOOPENMP_DESC= Don't compile with OpenMP support - -NOOPENMP_CONFIGURE_ON= --disable-openmp - NLS_USES= gettext NLS_CONFIGURE_ENABLE= nls NLS_LIBS= -lintl