ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/archivers/rpm4/Makefile
(Generate patch)

Comparing trunk/archivers/rpm4/Makefile (file contents):
Revision 24809 by laffer1, Sat Oct 31 19:02:26 2015 UTC vs.
Revision 24810 by laffer1, Sat Jan 19 06:57:20 2019 UTC

# Line 1 | Line 1
1   # $MidnightBSD$
2  
3   PORTNAME=       rpm
4 < PORTVERSION=    4.12.0.1
5 < PORTREVISION=   4
4 > PORTVERSION=    4.14.2
5   CATEGORIES=     archivers
6 < MASTER_SITES=   http://rpm.org/releases/rpm-${PORTVERSION:R:R}.x/ \
8 <                ftp://ftp.mirrorservice.org/sites/ftp.rpm.org/pub/rpm/dist/rpm-${PORTVERSION:E}.x/
6 > MASTER_SITES=   http://ftp.rpm.org/releases/rpm-${PORTVERSION:R}.x/
7   PKGNAMESUFFIX=  4
8  
9   MAINTAINER=     ports@MidnightBSD.org
# Line 15 | Line 13 | LICENSE=       lgpl gpl2
13   LICENSE_COMB=   dual
14   LICENSE_FILE=   ${WRKSRC}/COPYING
15  
16 < LIB_DEPENDS=    libpopt.so:${PORTSDIR}/devel/popt \
17 <                libnss3.so:${PORTSDIR}/security/nss \
18 <                libnspr4.so:${PORTSDIR}/devel/nspr \
21 <                libdbus-1.so:${PORTSDIR}/devel/dbus
22 < BUILD_DEPENDS=  ${LOCALBASE}/bin/gsed:${PORTSDIR}/textproc/gsed
16 > LIB_DEPENDS=    libpopt.so:devel/popt \
17 >                libnss3.so:security/nss
18 > RUN_DEPENDS=    bash:shells/bash
19  
20 < OPTIONS_DEFINE= PYTHON NLS DOCS
25 < OPTIONS_DEFAULT=PYTHON NLS
26 < OPTIONS_SUB=    yes
27 < PYTHON_CONFIGURE_ENABLE=python
28 < PYTHON_USES=    python:2.7
29 < NLS_CONFIGURE_ENABLE=nls
30 < NLS_USES=       gettext
31 < NLS_LIBS=       -lintl
32 < PORTDOCS=       *
33 <
34 < USES=           alias gmake libarchive libtool lua:51 pathfix pkgconfig \
20 > USES=           alias bdb gmake libarchive libtool lua:51 pathfix pkgconfig \
21                  shebangfix tar:bzip2
36 USE_BDB=        48+
22   INVALID_BDB_VER=51
38 GNU_CONFIGURE=  yes
23   USE_LDCONFIG=   yes
24 < INSTALL_TARGET= install-strip
41 < CONFLICTS_INSTALL=      rpm-[35].* rpm5-*
24 > GNU_CONFIGURE=  yes
25   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 <                scripts/rpmdb_loadcvt \
30 <                scripts/perl.prov scripts/perl.req scripts/perldeps.pl \
48 <                scripts/osgideps.pl scripts/tcl.req \
29 >                scripts/rpmdb_loadcvt scripts/perl.prov scripts/perl.req  \
30 >                scripts/pythondistdeps.py scripts/find-lang.sh \
31                  python/rpm/transaction.py
32 + 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  
44   CPPFLAGS+=      -I${LOCALBASE}/include \
45                  -I${LOCALBASE}/include/nspr -I${LOCALBASE}/include/nss/nss \
53                -I${LOCALBASE}/include/nss \
46                  -I${BDB_INCLUDE_DIR} -I${LUA_INCDIR}
47   LDFLAGS+=       -L${LOCALBASE}/lib -L${LOCALBASE}/lib/nss \
48                  -L${BDB_LIB_DIR} -L${LUA_LIBDIR}
57 CONFIGURE_ARGS+=--with-external-db \
58                --without-db \
59                --with-popt-prefix="${LOCALBASE}" \
60                --sysconfdir=${PREFIX}/etc \
61                --localstatedir=/var \
62                --without-javaglue
63 CONFIGURE_ENV+= LUA_CFLAGS=-I${LUA_INCDIR} \
64                LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER} -lm"
65 PLIST_SUB+=     VERSION=${PORTVERSION}
49  
50 < .include <bsd.port.pre.mk>
50 > PLIST_SUB=      VERSION=${PORTVERSION} \
51 >                OPSYS=${OPSYS:tl}
52  
53 + 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   post-patch:
70          ${REINPLACE_CMD} -e 's:\.\./\.\./bin/::' ${WRKSRC}/Makefile.in
71          ${REINPLACE_CMD} -e 's/(hpux)/& || defined(__MidnightBSD__)/' \
# Line 73 | Line 73 | post-patch:
73          ${REINPLACE_CMD} -e 's/ __GLIBC__.*/& || defined(__MidnightBSD__)/' \
74                  ${WRKSRC}/system.h
75  
76 < post-install:
77 <        # Install documentation
78 <        ${MKDIR} ${STAGEDIR}${DOCSDIR}
76 > post-install-PYTHON-off:
77 >        @${RM} ${STAGEDIR}${PREFIX}/lib/rpm/pythondistdeps.py
78 >
79 > post-install-DOCS-on:
80 >        @${MKDIR} ${STAGEDIR}${DOCSDIR}
81          cd ${WRKSRC}/doc && ${COPYTREE_SHARE} librpm/html ${STAGEDIR}${DOCSDIR}
82  
83 < .include <bsd.port.post.mk>
83 > .include <bsd.port.mk>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines