summaryrefslogtreecommitdiff
path: root/archivers/rpm/Makefile
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-01-04 18:39:58 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-01-04 18:39:58 +0000
commitb749e00ac41368fcae37027c4c3a70caf2126b40 (patch)
tree9a16a7eee553e57b1afe829e4e0c0f76ea82338e /archivers/rpm/Makefile
parentSupport stage (diff)
Support stage
Fix bad shebangs Do not install anymore the ${PREFIX}/src directories Use options helpers
Notes
Notes: svn path=/head/; revision=338667
Diffstat (limited to 'archivers/rpm/Makefile')
-rw-r--r--archivers/rpm/Makefile52
1 files changed, 13 insertions, 39 deletions
diff --git a/archivers/rpm/Makefile b/archivers/rpm/Makefile
index 94b6b5ef7826..b2bd74326fe2 100644
--- a/archivers/rpm/Makefile
+++ b/archivers/rpm/Makefile
@@ -3,7 +3,7 @@
PORTNAME= rpm
PORTVERSION= 3.0.6
-PORTREVISION= 15
+PORTREVISION= 16
CATEGORIES= archivers
MASTER_SITES= http://rpm5.org/files/rpm/rpm-3.0/ \
http://rpm.org/releases/historical/rpm-3.0.x/ \
@@ -14,48 +14,22 @@ COMMENT= The Red Hat Package Manager
LIB_DEPENDS= libpopt.so:${PORTSDIR}/devel/popt
+OPTIONS_DEFINE= NLS
+
CONFLICTS= rpm-[45].* rpm[45]-*
-NO_STAGE= yes
-USES= gmake
+USES= gmake shebangfix
+SHEBANG_FILES= scripts/*
USE_AUTOTOOLS= automake14 autoconf213 libtool
CONFIGURE_ARGS= --with-glob
USE_LDCONFIG= yes
MAKE_ENV= OLD_PO_FILE_INPUT=1
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-CPPFLAGS+= -I${LOCALBASE}/include
-CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib -lintl ${ICONV_LIB}"
-.else
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
-
-MAN1= gendiff.1
-MAN8= rpm.8 rpm2cpio.8
-
-X86_SUB= "@comment "
-AMD64_SUB= "@comment "
-PPC_SUB= "@comment "
-SPARC_SUB= "@comment "
-IA64_SUB= "@comment "
-.if ${ARCH} == i386
-X86_SUB= ""
-.elif ${ARCH} == amd64
-AMD64_SUB= ""
-.elif ${ARCH} == sparc64
-SPARC_SUB= ""
-.elif ${ARCH} == powerpc || ${ARCH} == powerpc64
-PPC_SUB= ""
-.elif ${ARCH} == ia64
-IA64_SUB= ""
-.endif
-
-PLIST_SUB+= X86=${X86_SUB} PPC=${PPC_SUB} SPARC=${SPARC_SUB} IA64=${IA64_SUB} AMD64=${AMD64_SUB}
+OPTIONS_SUB= yes
+NLS_USES= gettext
+NLS_CPPFLAGS= -I${LOCALBASE}/include
+NLS_CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib -lintl ${ICONV_LIB}"
+NLS_CONFIGURE_ENABLE= nls
post-patch:
.for file in rpm.c doc/rpm.8 lib/macro.c lib/rpmrc.c
@@ -63,8 +37,8 @@ post-patch:
.endfor
post-install:
- ${INSTALL_MAN} ${WRKSRC}/doc/gendiff.1 ${PREFIX}/man/man1
- ${INSTALL_MAN} ${WRKSRC}/doc/rpm.8 ${PREFIX}/man/man8
- ${INSTALL_MAN} ${WRKSRC}/doc/rpm2cpio.8 ${PREFIX}/man/man8
+ ${INSTALL_MAN} ${WRKSRC}/doc/gendiff.1 ${STAGEDIR}${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/doc/rpm.8 ${STAGEDIR}${PREFIX}/man/man8
+ ${INSTALL_MAN} ${WRKSRC}/doc/rpm2cpio.8 ${STAGEDIR}${PREFIX}/man/man8
.include <bsd.port.mk>