diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-04-02 22:14:37 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-04-02 22:14:37 +0000 |
commit | 13b6d230cb9506b5b72b3d46034a9e34f6b0cd1e (patch) | |
tree | 0cdc0c986d8ce479c230ada684ae2cf7709c2936 /archivers/rpm/Makefile | |
parent | Document two latest FreeBSD security advisories. (diff) |
Do not try to remove directories not created by during the ports installation,
Only create them from package depending on the architecture
While here trim header, and convert WITHOUT_NLS to PORT_OPTIONS NLS
Tested by: rene
Approved by: portmgr (implicit)
With hat: portmgr
Notes
Notes:
svn path=/head/; revision=315688
Diffstat (limited to 'archivers/rpm/Makefile')
-rw-r--r-- | archivers/rpm/Makefile | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/archivers/rpm/Makefile b/archivers/rpm/Makefile index 930d135f166d..ebab38035cdd 100644 --- a/archivers/rpm/Makefile +++ b/archivers/rpm/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: rpm -# Date created: 30 April 1999 -# Whom: Thomas Gellekum <tg@FreeBSD.org> -# +# Created by: Thomas Gellekum <tg@FreeBSD.org> # $FreeBSD$ -# PORTNAME= rpm PORTVERSION= 3.0.6 @@ -27,19 +23,40 @@ CONFIGURE_ARGS= --with-glob USE_LDCONFIG= yes MAKE_ENV= OLD_PO_FILE_INPUT=1 -.if defined(WITHOUT_NLS) -CONFIGURE_ARGS+= --disable-nls -PLIST_SUB+= NLS="@comment " -.else +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} USE_GETTEXT= yes PLIST_SUB+= NLS="" CPPFLAGS+= -I${LOCALBASE}/include CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib -lintl -liconv" +.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} + post-patch: .for file in rpm.c doc/rpm.8 lib/macro.c lib/rpmrc.c @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${file} |