summaryrefslogtreecommitdiff
path: root/archivers/rpm/Makefile
blob: 09b274afdc9bda0fd00834080c17a5affb06813a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# New ports collection makefile for:	rpm
# Date created:		30 April 1999
# Whom:			Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	rpm
PORTVERSION=	3.0.6
CATEGORIES=	misc
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_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

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>