| @@ -1,65 +1,59 @@ | | | @@ -1,65 +1,59 @@ |
1 | # $NetBSD: Makefile,v 1.67 2009/09/22 08:37:15 sketch Exp $ | | 1 | # $NetBSD: Makefile,v 1.68 2009/09/22 13:16:00 sketch Exp $ |
2 | | | 2 | |
3 | DISTNAME= rpm-2.5.4 | | 3 | DISTNAME= rpm-2.5.4 |
4 | PKGREVISION= 6 | | 4 | PKGREVISION= 6 |
5 | CATEGORIES= misc | | 5 | CATEGORIES= misc |
6 | MASTER_SITES= ftp://ftp.rpm.org/pub/rpm/dist/rpm-2.5.x/ | | 6 | MASTER_SITES= ftp://ftp.rpm.org/pub/rpm/dist/rpm-2.5.x/ |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://www.rpm.org/ | | 9 | HOMEPAGE= http://www.rpm.org/ |
10 | COMMENT= The Red Hat Package Manager | | 10 | COMMENT= The Red Hat Package Manager |
11 | | | 11 | |
12 | PKG_DESTDIR_SUPPORT= user-destdir | | 12 | PKG_DESTDIR_SUPPORT= user-destdir |
13 | | | 13 | |
14 | CONFLICTS+= rpm2cpio<1.0nb1 | | 14 | CONFLICTS+= rpm2cpio<1.0nb1 |
15 | | | 15 | |
16 | NOT_FOR_PLATFORM+= Interix-*-* # getmntent() is nonpublic; needs porting | | 16 | NOT_FOR_PLATFORM+= Interix-*-* # getmntent() is nonpublic; needs porting |
17 | | | 17 | |
18 | MAKE_JOBS_SAFE= no | | 18 | MAKE_JOBS_SAFE= no |
19 | | | 19 | |
20 | USE_PKGLOCALEDIR= yes | | 20 | USE_PKGLOCALEDIR= yes |
21 | USE_TOOLS+= gmake msgfmt | | 21 | USE_TOOLS+= gmake msgfmt |
22 | GNU_CONFIGURE= yes | | 22 | GNU_CONFIGURE= yes |
23 | | | 23 | |
24 | # this is needed in addition of USE_PKGLOCALEDIR | | 24 | # this is needed in addition of USE_PKGLOCALEDIR |
25 | CONFIGURE_ARGS+= --datadir=${PREFIX}/${PKGLOCALEDIR} | | 25 | CONFIGURE_ARGS+= --datadir=${PREFIX}/${PKGLOCALEDIR} |
26 | | | 26 | |
27 | # The rpm databases are kept under ${RPM_DB_PREFIX}/lib/rpm. | | 27 | # The rpm databases are kept under ${RPM_DB_PREFIX}/lib/rpm. |
28 | CONFIGURE_ENV+= varprefix=${RPM_DB_PREFIX:Q} | | 28 | CONFIGURE_ENV+= varprefix=${RPM_DB_PREFIX:Q} |
29 | | | 29 | |
30 | MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}/man8 | | 30 | MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}/man8 |
31 | MAKE_FLAGS+= ROOT=${DESTDIR} | | 31 | MAKE_FLAGS+= ROOT=${DESTDIR} |
32 | | | 32 | |
33 | RPMDIR= ${RPM_DB_PREFIX}/lib/rpm | | 33 | RPMDIR= ${RPM_DB_PREFIX}/lib/rpm |
34 | FILES_SUBST+= RPMDIR=${RPMDIR:Q} | | 34 | FILES_SUBST+= RPMDIR=${RPMDIR:Q} |
35 | | | 35 | |
36 | .include "../../mk/bdb.buildlink3.mk" | | | |
37 | | | | |
38 | # Ugly hack, but easier than fixing our bdb handling / rpm configure for now | | | |
39 | .if defined(USE_DB185) && !empty(USE_DB185:M[yY][eE][sS]) | | | |
40 | LDFLAGS+= -ldb | | | |
41 | .endif | | | |
42 | | | | |
43 | .include "../../mk/bsd.prefs.mk" | | 36 | .include "../../mk/bsd.prefs.mk" |
44 | | | 37 | |
45 | post-configure: | | 38 | post-configure: |
46 | cd ${WRKSRC}/po && ${MV} cz.po cs.po | | 39 | cd ${WRKSRC}/po && ${MV} cz.po cs.po |
47 | | | 40 | |
48 | pre-install: | | 41 | pre-install: |
49 | ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/rpm | | 42 | ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/rpm |
50 | | | 43 | |
51 | .if defined(RANLIB) | | 44 | .if defined(RANLIB) |
52 | post-install: | | 45 | post-install: |
53 | $(RANLIB) ${DESTDIR}${PREFIX}/lib/librpm.a | | 46 | $(RANLIB) ${DESTDIR}${PREFIX}/lib/librpm.a |
54 | .endif | | 47 | .endif |
55 | | | 48 | |
56 | # The configure script doesn't detect whether libintl.so has any | | 49 | # The configure script doesn't detect whether libintl.so has any |
57 | # library dependencies. | | 50 | # library dependencies. |
58 | # | | 51 | # |
59 | BROKEN_GETTEXT_DETECTION= yes | | 52 | BROKEN_GETTEXT_DETECTION= yes |
60 | | | 53 | |
61 | .include "../../devel/gettext-lib/buildlink3.mk" | | 54 | .include "../../devel/gettext-lib/buildlink3.mk" |
62 | .include "../../devel/popt/buildlink3.mk" | | 55 | .include "../../devel/popt/buildlink3.mk" |
63 | .include "../../devel/zlib/buildlink3.mk" | | 56 | .include "../../devel/zlib/buildlink3.mk" |
64 | | | 57 | |
| | | 58 | .include "../../mk/bdb.buildlink3.mk" |
65 | .include "../../mk/bsd.pkg.mk" | | 59 | .include "../../mk/bsd.pkg.mk" |