ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/archivers/rpm4/Makefile
Revision: 24810
Committed: Sat Jan 19 06:57:20 2019 UTC (5 years, 3 months ago) by laffer1
File size: 2423 byte(s)
Log Message:
update rpm

File Contents

# User Rev Content
1 laffer1 15462 # $MidnightBSD$
2 laffer1 8365
3     PORTNAME= rpm
4 laffer1 24810 PORTVERSION= 4.14.2
5 laffer1 8365 CATEGORIES= archivers
6 laffer1 24810 MASTER_SITES= http://ftp.rpm.org/releases/rpm-${PORTVERSION:R}.x/
7 laffer1 17620 PKGNAMESUFFIX= 4
8 laffer1 8365
9     MAINTAINER= ports@MidnightBSD.org
10     COMMENT= The RPM Package Manager
11 laffer1 16661
12 laffer1 17620 LICENSE= lgpl gpl2
13     LICENSE_COMB= dual
14     LICENSE_FILE= ${WRKSRC}/COPYING
15 laffer1 8365
16 laffer1 24810 LIB_DEPENDS= libpopt.so:devel/popt \
17     libnss3.so:security/nss
18     RUN_DEPENDS= bash:shells/bash
19 laffer1 8365
20 laffer1 24810 USES= alias bdb gmake libarchive libtool lua:51 pathfix pkgconfig \
21 laffer1 19703 shebangfix tar:bzip2
22 laffer1 13314 INVALID_BDB_VER=51
23 laffer1 24810 USE_LDCONFIG= yes
24 laffer1 11318 GNU_CONFIGURE= yes
25 laffer1 17620 SHEBANG_FILES= scripts/brp-python-bytecompile scripts/check-prereqs \
26     scripts/check-rpaths-worker scripts/pythondeps.sh \
27     scripts/mono-find-requires scripts/mono-find-provides \
28     scripts/pkgconfigdeps.sh scripts/fontconfig.prov \
29 laffer1 24810 scripts/rpmdb_loadcvt scripts/perl.prov scripts/perl.req \
30     scripts/pythondistdeps.py scripts/find-lang.sh \
31 laffer1 17620 python/rpm/transaction.py
32 laffer1 24810 CONFIGURE_ARGS= --with-external-db \
33     --without-db \
34     --with-popt-prefix="${LOCALBASE}" \
35     --sysconfdir=${PREFIX}/etc \
36     --localstatedir=/var \
37     --without-javaglue \
38     am_cv_python_version=${PYTHON_VER}${PYTHON_ABIVER} \
39     ac_cv_lib_elf_gelf_getvernaux=no # otherwise fails to build in presence of devel/elfutils
40     CONFIGURE_ENV= LUA_CFLAGS=-I${LUA_INCDIR} \
41     LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER} -lm"
42     INSTALL_TARGET= install-strip
43 laffer1 8365
44 laffer1 13314 CPPFLAGS+= -I${LOCALBASE}/include \
45     -I${LOCALBASE}/include/nspr -I${LOCALBASE}/include/nss/nss \
46 laffer1 11318 -I${BDB_INCLUDE_DIR} -I${LUA_INCDIR}
47 laffer1 13314 LDFLAGS+= -L${LOCALBASE}/lib -L${LOCALBASE}/lib/nss \
48     -L${BDB_LIB_DIR} -L${LUA_LIBDIR}
49 laffer1 11318
50 laffer1 24810 PLIST_SUB= VERSION=${PORTVERSION} \
51     OPSYS=${OPSYS:tl}
52 laffer1 8365
53 laffer1 24810 PORTDOCS= *
54    
55     OPTIONS_DEFINE= PYTHON PLUGINS NLS DOCS
56     OPTIONS_DEFAULT=PYTHON
57     OPTIONS_SUB= yes
58    
59     PYTHON_CONFIGURE_ENABLE=python
60     PYTHON_USES= python
61    
62     NLS_CONFIGURE_ENABLE= nls
63     NLS_USES= gettext
64     NLS_LIBS= -lintl
65    
66     PLUGINS_CONFIGURE_ENABLE=plugins
67     PLUGINS_LIB_DEPENDS= libdbus-1.so:devel/dbus
68    
69 laffer1 8365 post-patch:
70 laffer1 17620 ${REINPLACE_CMD} -e 's:\.\./\.\./bin/::' ${WRKSRC}/Makefile.in
71 laffer1 20594 ${REINPLACE_CMD} -e 's/(hpux)/& || defined(__MidnightBSD__)/' \
72 laffer1 13314 ${WRKSRC}/misc/fts.?
73 laffer1 20594 ${REINPLACE_CMD} -e 's/ __GLIBC__.*/& || defined(__MidnightBSD__)/' \
74 laffer1 13314 ${WRKSRC}/system.h
75 laffer1 8365
76 laffer1 24810 post-install-PYTHON-off:
77     @${RM} ${STAGEDIR}${PREFIX}/lib/rpm/pythondistdeps.py
78    
79     post-install-DOCS-on:
80     @${MKDIR} ${STAGEDIR}${DOCSDIR}
81 laffer1 17620 cd ${WRKSRC}/doc && ${COPYTREE_SHARE} librpm/html ${STAGEDIR}${DOCSDIR}
82 laffer1 8365
83 laffer1 24810 .include <bsd.port.mk>

Properties

Name Value
svn:keywords MidnightBSD=%H