2013-04-02 22:14:37 +00:00
|
|
|
# Created by: Thomas Gellekum <tg@FreeBSD.org>
|
1999-08-25 07:23:21 +00:00
|
|
|
# $FreeBSD$
|
1997-01-24 07:50:08 +00:00
|
|
|
|
2000-04-14 08:49:30 +00:00
|
|
|
PORTNAME= rpm
|
2000-10-17 08:42:03 +00:00
|
|
|
PORTVERSION= 3.0.6
|
2010-05-31 02:01:56 +00:00
|
|
|
PORTREVISION= 15
|
2001-03-20 20:28:14 +00:00
|
|
|
CATEGORIES= archivers
|
2009-06-21 11:28:10 +00:00
|
|
|
MASTER_SITES= http://rpm5.org/files/rpm/rpm-3.0/ \
|
2010-06-19 18:56:51 +00:00
|
|
|
http://rpm.org/releases/historical/rpm-3.0.x/ \
|
|
|
|
http://www.mirrorservice.org/sites/ftp.rpm.org/pub/rpm/dist/rpm-3.0.x/
|
1997-01-24 07:50:08 +00:00
|
|
|
|
2009-11-27 22:52:30 +00:00
|
|
|
MAINTAINER= sylvio@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= The Red Hat Package Manager
|
1997-01-24 07:50:08 +00:00
|
|
|
|
2013-12-11 10:04:56 +00:00
|
|
|
LIB_DEPENDS= libpopt.so:${PORTSDIR}/devel/popt
|
2000-10-17 08:42:03 +00:00
|
|
|
|
2014-01-04 00:54:13 +00:00
|
|
|
CONFLICTS= rpm-[45].* rpm[45]-*
|
2005-09-29 13:43:45 +00:00
|
|
|
|
2013-09-20 13:11:20 +00:00
|
|
|
NO_STAGE= yes
|
2013-08-30 01:02:57 +00:00
|
|
|
USES= gmake
|
2010-12-04 07:34:27 +00:00
|
|
|
USE_AUTOTOOLS= automake14 autoconf213 libtool
|
2000-10-17 08:42:03 +00:00
|
|
|
CONFIGURE_ARGS= --with-glob
|
2006-08-14 09:56:58 +00:00
|
|
|
USE_LDCONFIG= yes
|
2002-09-23 16:55:26 +00:00
|
|
|
MAKE_ENV= OLD_PO_FILE_INPUT=1
|
2000-10-17 08:42:03 +00:00
|
|
|
|
2013-04-02 22:14:37 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2013-04-24 18:10:30 +00:00
|
|
|
USES+= gettext
|
2007-03-22 22:20:38 +00:00
|
|
|
PLIST_SUB+= NLS=""
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2013-09-04 18:06:07 +00:00
|
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib -lintl ${ICONV_LIB}"
|
2013-04-02 22:14:37 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
2007-03-22 22:20:38 +00:00
|
|
|
.endif
|
|
|
|
|
2000-10-17 08:42:03 +00:00
|
|
|
MAN1= gendiff.1
|
1997-01-24 07:50:08 +00:00
|
|
|
MAN8= rpm.8 rpm2cpio.8
|
|
|
|
|
2013-04-02 22:14:37 +00:00
|
|
|
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}
|
|
|
|
|
2000-10-17 08:42:03 +00:00
|
|
|
post-patch:
|
|
|
|
.for file in rpm.c doc/rpm.8 lib/macro.c lib/rpmrc.c
|
2002-11-04 02:55:13 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${file}
|
2000-10-17 08:42:03 +00:00
|
|
|
.endfor
|
1997-01-24 11:43:57 +00:00
|
|
|
|
2000-10-20 04:33:40 +00:00
|
|
|
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
|
|
|
|
|
1997-01-24 07:50:08 +00:00
|
|
|
.include <bsd.port.mk>
|