1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/archivers/rpm/Makefile
Sylvio Cesar Teixeira 6904291450 - Update MASTER_SITES and merge CONFLICTS
PR:		ports/147883
Submitted by:	Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
Feature safe:	yes
2010-06-19 18:56:51 +00:00

54 lines
1.3 KiB
Makefile

# New ports collection makefile for: rpm
# Date created: 30 April 1999
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= rpm
PORTVERSION= 3.0.6
PORTREVISION= 15
CATEGORIES= archivers
MASTER_SITES= http://rpm5.org/files/rpm/rpm-3.0/ \
http://rpm.org/releases/historical/rpm-3.0.x/ \
http://www.mirrorservice.org/sites/ftp.rpm.org/pub/rpm/dist/rpm-3.0.x/
MAINTAINER= sylvio@FreeBSD.org
COMMENT= The Red Hat Package Manager
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
CONFLICTS= rpm-[45].*
USE_GMAKE= yes
MAKE_JOBS_SAFE= yes
USE_AUTOTOOLS= automake:14 autoconf:213 libtool:22
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
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib -lintl -liconv"
.endif
MAN1= gendiff.1
MAN8= rpm.8 rpm2cpio.8
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}
.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
.include <bsd.port.mk>