blob: 878cfca33a9f52392c5f30ac482e627b66dda842 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# New ports collection makefile for: rpm
# Date created: 6 May 2003
# Whom: Greg Lewis <glewis@FreeBSD.org>
#
# $FreeBSD$
PORTNAME= rpm
PORTVERSION= 4.0.4
PORTREVISION= 10
CATEGORIES= archivers
MASTER_SITES= http://rpm.org/releases/historical/rpm-4.0.x/ \
ftp://ftp.mirrorservice.org/sites/ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/
MAINTAINER= ports@FreeBSD.org
COMMENT= The RPM Package Manager
LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3 \
popt.0:${PORTSDIR}/devel/popt
BUILD_DEPENDS= ${LOCALBASE}/bin/gsed:${PORTSDIR}/textproc/gsed
.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= ${LOCALBASE}/bin/doxygen:${PORTSDIR}/devel/doxygen
.endif
USE_AUTOTOOLS= libtool:22
LIBTOOLFILES= configure db3/configure db/dist/configure popt/configure \
beecrypt/configure
USE_GMAKE= yes
USE_GETTEXT= yes
USE_ICONV= yes
USE_LDCONFIG= yes
LATEST_LINK= rpm4
CONFLICTS= beecrypt-* rpm-3.*
.if defined(WITH_PYTHON)
CONFIGURE_ARGS+=--with-python=auto
USE_PYTHON= yes
PLIST_SUB+= PYTHON=""
CPPFLAGS+= -I${PYTHON_INCLUDEDIR}
LDFLAGS+= -L${PYTHON_LIBDIR}
.else
CONFIGURE_ARGS+=--without-python
PLIST_SUB+= PYTHON="@comment "
.endif
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS+=--without-db \
--with-popt-prefix="${LOCALBASE}" \
--sysconfdir=${PREFIX}/etc \
--without-javaglue
MAN1= gendiff.1
MAN8= rpm.8 rpm2cpio.8 rpmbuild.8
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
CFLAGS+= -fPIC
.endif
post-patch:
${REINPLACE_CMD} -e 's:%%LOCALBASE%%:${LOCALBASE}:' \
${WRKSRC}/configure ${WRKSRC}/beecrypt/configure
post-install:
.if !defined(NOPORTDOCS)
# Install documentation
${MKDIR} ${DOCSDIR}/apidocs/html
cd ${WRKSRC}/apidocs/html && ${FIND} . \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} \
${DOCSDIR}/apidocs/html/
.endif
# Run package installation script
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>
|