blob: 598b492a68c2ea1624a666804f74ceba2f2c5d16 (
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
|
# $NetBSD: Makefile,v 1.86 2015/03/22 17:32:54 sevan Exp $
DISTNAME= rpm-4.12.0.1
PKGREVISION= 1
CATEGORIES= misc
MASTER_SITES= http://rpm.org/releases/rpm-4.12.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
MAKE_JOBS_SAFE= no
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= automake bash:run gmake msgfmt perl:run pkg-config
GNU_CONFIGURE= yes
GMAKE_REQD+= 3.82nb1
GMAKE= ${TOOLS_GMAKE}
REPLACE_BASH+= scripts/*
REPLACE_PERL+= scripts/*
# To avoid build directory references.
CONFIGURE_ENV+= MYPATH=/sbin:/bin:/usr/sbin:/usr/bin
# this is needed in addition of USE_PKGLOCALEDIR
CONFIGURE_ARGS+= --datadir=${PREFIX}/${PKGLOCALEDIR}
CONFIGURE_ARGS+= --without-lua
CONFIGURE_ARGS+= --with-external-db
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
# The rpm databases are kept under ${RPM_DB_PREFIX}/lib/rpm.
CONFIGURE_ENV+= varprefix=${RPM_DB_PREFIX:Q}
LDFLAGS+= ${PTHREAD_LDFLAGS}
MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}/man8
MAKE_FLAGS+= ROOT=${DESTDIR}
RPMDIR= ${RPM_DB_PREFIX}/lib/rpm
FILES_SUBST+= RPMDIR=${RPMDIR:Q}
.include "../../mk/bsd.prefs.mk"
# The configure script doesn't detect whether libintl.so has any
# library dependencies.
#
BROKEN_GETTEXT_DETECTION= yes
.if ${OPSYS} == "SunOS"
CFLAGS+= -fno-stack-protector
BUILDLINK_TRANSFORM+= rm:-fstack-protector
.endif
pre-configure:
set -e; cd ${WRKSRC}; \
aclocal; autoheader; automake -a --foreign -i; autoconf
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},'
.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 "../../sysutils/file/buildlink3.mk" # for libmagic.
.include "../../mk/bsd.pkg.mk"
|