1 |
laffer1 |
13314 |
# $MidnightBSD: mports/archivers/rpm4/Makefile,v 1.6 2012/02/28 14:09:09 laffer1 Exp $ |
2 |
laffer1 |
8365 |
|
3 |
|
|
PORTNAME= rpm |
4 |
laffer1 |
13314 |
PORTVERSION= 4.10.2 |
5 |
laffer1 |
8365 |
CATEGORIES= archivers |
6 |
laffer1 |
11318 |
MASTER_SITES= http://rpm.org/releases/rpm-${PORTVERSION:R}.x/ \ |
7 |
|
|
ftp://ftp.mirrorservice.org/sites/ftp.rpm.org/pub/rpm/dist/rpm-${PORTVERSION:E}.x/ |
8 |
laffer1 |
8365 |
|
9 |
|
|
MAINTAINER= ports@MidnightBSD.org |
10 |
|
|
COMMENT= The RPM Package Manager |
11 |
|
|
LICENSE= gpl2 |
12 |
|
|
|
13 |
laffer1 |
13314 |
LIB_DEPENDS= popt:${PORTSDIR}/devel/popt \ |
14 |
laffer1 |
11318 |
nss3:${PORTSDIR}/security/nss |
15 |
laffer1 |
8365 |
BUILD_DEPENDS= ${LOCALBASE}/bin/gsed:${PORTSDIR}/textproc/gsed |
16 |
|
|
|
17 |
laffer1 |
11318 |
OPTIONS= PYTHON "Build Python rpm module" On |
18 |
|
|
|
19 |
laffer1 |
10702 |
USE_AUTOTOOLS= libtool |
20 |
laffer1 |
11318 |
USE_BZIP2= yes |
21 |
laffer1 |
8365 |
USE_GMAKE= yes |
22 |
laffer1 |
11318 |
USE_LUA= 5.1+ |
23 |
laffer1 |
13314 |
USE_BDB= 46+ |
24 |
|
|
INVALID_BDB_VER=51 |
25 |
laffer1 |
11318 |
GNU_CONFIGURE= yes |
26 |
laffer1 |
8365 |
USE_LDCONFIG= yes |
27 |
|
|
LATEST_LINK= rpm4 |
28 |
laffer1 |
11318 |
CONFLICTS= rpm-3.* |
29 |
laffer1 |
8365 |
|
30 |
laffer1 |
13314 |
CPPFLAGS+= -I${LOCALBASE}/include \ |
31 |
|
|
-I${LOCALBASE}/include/nspr -I${LOCALBASE}/include/nss/nss \ |
32 |
laffer1 |
11318 |
-I${BDB_INCLUDE_DIR} -I${LUA_INCDIR} |
33 |
laffer1 |
13314 |
LDFLAGS+= -L${LOCALBASE}/lib -L${LOCALBASE}/lib/nss \ |
34 |
|
|
-L${BDB_LIB_DIR} -L${LUA_LIBDIR} |
35 |
laffer1 |
12399 |
CONFIGURE_ARGS+=--with-external-db \ |
36 |
laffer1 |
13314 |
--without-db \ |
37 |
|
|
--with-popt-prefix="${LOCALBASE}" \ |
38 |
|
|
--sysconfdir=${PREFIX}/etc \ |
39 |
|
|
--localstatedir=/var \ |
40 |
|
|
--without-javaglue \ |
41 |
laffer1 |
12399 |
LUA_CFLAGS=-I${LUA_INCDIR} \ |
42 |
|
|
LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER} -lm" |
43 |
laffer1 |
13314 |
PLIST_SUB+= VERSION=${PORTVERSION} |
44 |
laffer1 |
11318 |
|
45 |
laffer1 |
12399 |
|
46 |
laffer1 |
11318 |
.include <bsd.mport.options.mk> |
47 |
|
|
|
48 |
|
|
.if (${OSVERSION} < 4005) |
49 |
|
|
LIB_DEPENDS+= lzma.5:${PORTSDIR}/archivers/xz |
50 |
|
|
.endif |
51 |
|
|
|
52 |
|
|
.ifndef WITHOUT_PYTHON |
53 |
|
|
CONFIGURE_ARGS+=--enable-python |
54 |
|
|
USE_PYTHON= 2.6+ |
55 |
laffer1 |
8365 |
PLIST_SUB+= PYTHON="" |
56 |
|
|
CPPFLAGS+= -I${PYTHON_INCLUDEDIR} |
57 |
|
|
LDFLAGS+= -L${PYTHON_LIBDIR} |
58 |
|
|
.else |
59 |
laffer1 |
11318 |
CONFIGURE_ARGS+=--disable-python |
60 |
laffer1 |
8365 |
PLIST_SUB+= PYTHON="@comment " |
61 |
|
|
.endif |
62 |
|
|
|
63 |
laffer1 |
11318 |
.ifdef WITHOUT_NLS |
64 |
|
|
CONFIGURE_ARGS+=--disable-nls |
65 |
|
|
PLIST_SUB+= NLS="@comment " |
66 |
|
|
.else |
67 |
|
|
USE_GETTEXT= yes |
68 |
|
|
USE_ICONV= yes |
69 |
|
|
PLIST_SUB+= NLS="" |
70 |
|
|
.endif |
71 |
|
|
|
72 |
|
|
MANLANG= "" ja fr pl ru ko sk |
73 |
|
|
MAN1_EN= gendiff.1 |
74 |
laffer1 |
13314 |
MAN8_EN= rpm.8 rpm2cpio.8 rpmbuild.8 rpmdeps.8 rpmgraph.8 \ |
75 |
|
|
rpmdb.8 rpmkeys.8 rpmsign.8 rpmspec.8 |
76 |
laffer1 |
11318 |
MAN8_JA= rpm.8 rpm2cpio.8 rpmbuild.8 rpmgraph.8 |
77 |
|
|
MAN8_FR= rpm.8 |
78 |
|
|
MAN8_PL= rpm.8 rpm2cpio.8 rpmbuild.8 rpmdeps.8 rpmgraph.8 |
79 |
|
|
MAN8_RU= rpm.8 rpm2cpio.8 |
80 |
|
|
MAN8_KO= rpm.8 rpm2cpio.8 |
81 |
|
|
MAN8_SK= rpm.8 |
82 |
laffer1 |
8365 |
|
83 |
|
|
.if !defined(NOPORTDOCS) |
84 |
|
|
PORTDOCS= * |
85 |
|
|
.endif |
86 |
|
|
|
87 |
|
|
.include <bsd.port.pre.mk> |
88 |
|
|
|
89 |
laffer1 |
11318 |
.if ${OSVERSION} < 4005 |
90 |
laffer1 |
13314 |
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-rpmio_rpmsq.c |
91 |
|
|
.endif |
92 |
|
|
|
93 |
|
|
.if ${OSVERSION} < 4005 |
94 |
laffer1 |
11318 |
LIB_DEPENDS+= lzma:${PORTSDIR}/archivers/xz |
95 |
|
|
.endif |
96 |
|
|
|
97 |
laffer1 |
8365 |
post-patch: |
98 |
laffer1 |
11318 |
${REINPLACE_CMD} -e '/^pkgconfigdir/s:/:data/:' \ |
99 |
|
|
-e 's:\.\./\.\./bin/::' ${WRKSRC}/Makefile.in |
100 |
|
|
${REINPLACE_CMD} -e 's/(hpux)/& || defined(__FreeBSD__)/' \ |
101 |
laffer1 |
13314 |
${WRKSRC}/misc/fts.? |
102 |
|
|
${REINPLACE_CMD} -e 's/ __GLIBC__.*/& || defined(__FreeBSD__)/' \ |
103 |
|
|
${WRKSRC}/system.h |
104 |
laffer1 |
8365 |
|
105 |
|
|
post-install: |
106 |
|
|
.if !defined(NOPORTDOCS) |
107 |
|
|
# Install documentation |
108 |
laffer1 |
11318 |
${MKDIR} ${DOCSDIR}/librpm/html |
109 |
|
|
cd ${WRKSRC}/doc/librpm/html && ${FIND} . \ |
110 |
laffer1 |
8365 |
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} \ |
111 |
laffer1 |
11318 |
${DOCSDIR}/librpm/html/ |
112 |
laffer1 |
8365 |
.endif |
113 |
|
|
|
114 |
|
|
.include <bsd.port.post.mk> |