blob: 63517e0a518d76fcc104771934fa7efe23b6f3b9 (
plain)
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
# $NetBSD: Makefile,v 1.93 2017/05/29 11:09:46 jperkin Exp $
DISTNAME= rpm-4.13.0.1
PKGREVISION= 1
CATEGORIES= misc
MASTER_SITES= http://ftp.rpm.org/releases/rpm-4.13.x/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.rpm.org/
COMMENT= The Red Hat Package Manager
LICENSE= gnu-lgpl-v2 OR gnu-gpl-v2
CONFLICTS+= rpm2cpio<1.0nb1
NOT_FOR_PLATFORM+= Interix-*-* # getmntent() is nonpublic; needs porting
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= autoconf bash:run gmake msgfmt perl:run pkg-config
GNU_CONFIGURE= yes
# this is needed in addition of USE_PKGLOCALEDIR
CONFIGURE_ARGS+= --datadir=${PREFIX}/${PKGLOCALEDIR}
CONFIGURE_ARGS+= --with-external-db
CONFIGURE_ARGS+= --with-vendor=pkgsrc
CONFIGURE_ARGS+= --without-lua
# avoid build directory references
CONFIGURE_ENV+= MYPATH=/sbin:/bin:/usr/sbin:/usr/bin
# rpm databases are kept under ${RPM_DB_PREFIX}/lib/rpm.
CONFIGURE_ENV+= varprefix=${RPM_DB_PREFIX:Q}
CONFIGURE_ENV.Darwin+= ac_cv_func_fdatasync=no
PKGCONFIG_OVERRIDE= rpm.pc.in
GMAKE_REQD= 3.82nb1
REPLACE_BASH+= installplatform
REPLACE_BASH+= scripts/brp-python-bytecompile
REPLACE_BASH+= scripts/check-prereqs
REPLACE_BASH+= scripts/check-rpaths-worker
REPLACE_BASH+= scripts/find-debuginfo.sh
REPLACE_BASH+= scripts/fontconfig.prov
REPLACE_BASH+= scripts/mono-find-provides
REPLACE_BASH+= scripts/mono-find-requires
REPLACE_BASH+= scripts/pkgconfigdeps.sh
REPLACE_BASH+= scripts/pythondeps.sh
REPLACE_BASH+= scripts/rpmdb_loadcvt
REPLACE_PERL+= scripts/perl.prov
REPLACE_PERL+= scripts/perl.req
BDB_ACCEPTED= db4 db5
.include "../../mk/bdb.buildlink3.mk"
.if ${BDB_TYPE} == "db4"
BUILDLINK_TRANSFORM+= l:db:db4
.else
BUILDLINK_TRANSFORM+= l:db:db5
.endif
LDFLAGS+= ${PTHREAD_LDFLAGS}
MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}/man8
MAKE_FLAGS+= ROOT=${DESTDIR}
RPMDIR= ${RPM_DB_PREFIX}/lib/rpm
FILES_SUBST+= RPMDIR=${RPMDIR}
# The configure script doesn't detect whether libintl.so has any
# library dependencies.
BROKEN_GETTEXT_DETECTION= yes
CHECK_PORTABILITY_SKIP= tests/rpmtests
SUBST_CLASSES+= mkd
SUBST_STAGE.mkd= post-build
SUBST_MESSAGE.mkd= Fixing workdir tools references in macros file.
SUBST_FILES.mkd= macros
SUBST_SED.mkd= -e 's,${TOOLS_CMD.mkdir},${TOOLS_PATH.mkdir},'
# __progname without 'extern' segfaults on some platforms (e.g. Darwin)
SUBST_CLASSES+= progname
SUBST_STAGE.progname= pre-configure
SUBST_MESSAGE.progname= Fixing __progname declarations to include 'extern'.
SUBST_FILES.progname= lib/poptALL.c
SUBST_FILES.progname+= rpm2archive.c
SUBST_FILES.progname+= rpm2cpio.c
SUBST_FILES.progname+= rpmbuild.c
SUBST_FILES.progname+= rpmqv.c
SUBST_FILES.progname+= rpmspec.c
SUBST_FILES.progname+= tools/rpmdeps.c
SUBST_FILES.progname+= tools/rpmgraph.c
SUBST_SED.progname= -e 's,^const char \*__progname;,extern &,'
pre-configure:
cd ${WRKSRC} && autoconf
.include "../../archivers/libarchive/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/nss/buildlink3.mk"
.include "../../devel/nspr/buildlink3.mk"
.include "../../devel/popt/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../sysutils/file/buildlink3.mk" # for libmagic.
.include "../../mk/bsd.pkg.mk"
|