summaryrefslogtreecommitdiffstats
path: root/archivers/rpm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/rpm/Makefile')
-rw-r--r--archivers/rpm/Makefile28
1 files changed, 22 insertions, 6 deletions
diff --git a/archivers/rpm/Makefile b/archivers/rpm/Makefile
index 5f997fc..09b274af 100644
--- a/archivers/rpm/Makefile
+++ b/archivers/rpm/Makefile
@@ -6,19 +6,35 @@
#
PORTNAME= rpm
-PORTVERSION= 2.5.6
+PORTVERSION= 3.0.6
CATEGORIES= misc
-MASTER_SITES= ftp://ftp.rpm.org/pub/rpm/dist/rpm-2.5.x/
+MASTER_SITES= ftp://ftp.rpm.org/pub/rpm/dist/rpm-3.0.x/
MAINTAINER= nakai@FreeBSD.org
+LIB_DEPENDS= bz2.1:${PORTSDIR}/archivers/bzip2 \
+ intl.1:${PORTSDIR}/devel/gettext
+
USE_GMAKE= yes
-USE_AUTOCONF= yes
-CONFIGURE_ARGS= --disable-nls
+USE_AUTOMAKE= yes
+USE_LIBTOOL= yes
+CONFIGURE_ARGS= --with-glob
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
+INSTALL_SHLIB= yes
+
+MANLANG= "" ja pl ru
+MAN1= gendiff.1
+MAN3= popt.3
MAN8= rpm.8 rpm2cpio.8
-pre-configure:
- @(cd ${WRKSRC}/popt && ${AUTOCONF})
+post-configure:
+ ( WRKSRC=${WRKSRC}/popt make do-configure )
+
+post-patch:
+.for file in rpm.c doc/rpm.8 lib/macro.c lib/rpmrc.c
+ @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${file}
+.endfor
.include <bsd.port.mk>
OpenPOWER on IntegriCloud