| @@ -1,17 +1,17 @@ | | | @@ -1,17 +1,17 @@ |
1 | # $NetBSD: Makefile,v 1.9 2016/10/27 13:22:44 marino Exp $ | | 1 | # $NetBSD: Makefile,v 1.10 2016/10/28 15:35:08 marino Exp $ |
2 | | | 2 | |
3 | DISTNAME= pkg-1.8.7 | | 3 | DISTNAME= pkg-1.8.7 |
4 | PKGREVISION= 3 | | 4 | PKGREVISION= 4 |
5 | CATEGORIES= pkgtools | | 5 | CATEGORIES= pkgtools |
6 | MASTER_SITES= http://files.etoilebsd.net/pkg/ | | 6 | MASTER_SITES= http://files.etoilebsd.net/pkg/ |
7 | EXTRACT_SUFX= .tar.xz | | 7 | EXTRACT_SUFX= .tar.xz |
8 | | | 8 | |
9 | MAINTAINER= khorben@defora.org | | 9 | MAINTAINER= khorben@defora.org |
10 | HOMEPAGE= https://wiki.freebsd.org/pkgng | | 10 | HOMEPAGE= https://wiki.freebsd.org/pkgng |
11 | COMMENT= Package management tool for FreeBSD | | 11 | COMMENT= Package management tool for FreeBSD |
12 | LICENSE= 2-clause-bsd | | 12 | LICENSE= 2-clause-bsd |
13 | | | 13 | |
14 | GNU_CONFIGURE= yes | | 14 | GNU_CONFIGURE= yes |
15 | USE_LANGUAGES= c | | 15 | USE_LANGUAGES= c |
16 | | | 16 | |
17 | CPPFLAGS+= -D_LOCALBASE="\"${PREFIX}\"" | | 17 | CPPFLAGS+= -D_LOCALBASE="\"${PREFIX}\"" |
| @@ -52,28 +52,28 @@ SUBST_SED.pkgconf-prefix+= -e "s|/usr/lo | | | @@ -52,28 +52,28 @@ SUBST_SED.pkgconf-prefix+= -e "s|/usr/lo |
52 | SUBST_MESSAGE.pkgconf-prefix= Correct the installation prefix in pkg.conf(5). | | 52 | SUBST_MESSAGE.pkgconf-prefix= Correct the installation prefix in pkg.conf(5). |
53 | | | 53 | |
54 | SUBST_CLASSES+= portsdir | | 54 | SUBST_CLASSES+= portsdir |
55 | SUBST_STAGE.portsdir= pre-install | | 55 | SUBST_STAGE.portsdir= pre-install |
56 | SUBST_FILES.portsdir= libpkg/pkg_config.c \ | | 56 | SUBST_FILES.portsdir= libpkg/pkg_config.c \ |
57 | src/pkg.conf.sample \ | | 57 | src/pkg.conf.sample \ |
58 | docs/pkg-create.8 \ | | 58 | docs/pkg-create.8 \ |
59 | docs/pkg-set.8 \ | | 59 | docs/pkg-set.8 \ |
60 | docs/pkg-repo.8 \ | | 60 | docs/pkg-repo.8 \ |
61 | docs/pkg.conf.5 \ | | 61 | docs/pkg.conf.5 \ |
62 | docs/pkg-version.8 \ | | 62 | docs/pkg-version.8 \ |
63 | docs/pkg.8 | | 63 | docs/pkg.8 |
64 | SUBST_SED.portsdir= -e "s|/usr/ports|${PKG.portsdir}|g" \ | | 64 | SUBST_SED.portsdir= -e "s|/usr/ports|${PKG.portsdir}|g" \ |
65 | -e "s|/var/db/pkg|/var/db/pkgng|g" \ | | 65 | -e "s|/var/db/pkg|${PKG_DBDIR}|g" \ |
66 | -e "s|/var/cache/pkg|/var/cache/pkgng|g" | | 66 | -e "s|/var/cache/pkg|${VARBASE}/cache/pkgng|g" |
67 | SUBST_MESSAGE.portsdir= Correct reference to FreeBSD portsdir. | | 67 | SUBST_MESSAGE.portsdir= Correct reference to FreeBSD portsdir. |
68 | | | 68 | |
69 | .if defined(PACKAGE_BUILDING) # set by Synth which has custom location, so use default path | | 69 | .if defined(PACKAGE_BUILDING) # set by Synth which has custom location, so use default path |
70 | PKG.portsdir?= /usr/pkgsrc | | 70 | PKG.portsdir?= /usr/pkgsrc |
71 | .else | | 71 | .else |
72 | PKG.portsdir?= ${PKGSRCDIR} | | 72 | PKG.portsdir?= ${PKGSRCDIR} |
73 | .endif | | 73 | .endif |
74 | | | 74 | |
75 | # DragonFly SSL libraries are private. pkg(8) is the one exception of a userland | | 75 | # DragonFly SSL libraries are private. pkg(8) is the one exception of a userland |
76 | # program that is allowed to link to them due to bootstrap reasons | | 76 | # program that is allowed to link to them due to bootstrap reasons |
77 | .if exists(/usr/lib/priv/libprivate_ssl.so) | | 77 | .if exists(/usr/lib/priv/libprivate_ssl.so) |
78 | BUILDLINK_PASSTHRU_RPATHDIRS= /lib/priv | | 78 | BUILDLINK_PASSTHRU_RPATHDIRS= /lib/priv |
79 | .endif | | 79 | .endif |