| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.34 2013/02/25 19:35:38 imil Exp $ | | 1 | # $NetBSD: Makefile,v 1.35 2013/03/25 10:09:04 sbd Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= pkgin-0.6.3.1.1 | | 4 | DISTNAME= pkgin-0.6.3.1.1 |
5 | CATEGORIES= pkgtools | | 5 | CATEGORIES= pkgtools |
6 | MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/imil/ | | 6 | MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/imil/ |
7 | | | 7 | |
8 | MAINTAINER= imil@NetBSD.org | | 8 | MAINTAINER= imil@NetBSD.org |
9 | HOMEPAGE= http://pkgin.net/ | | 9 | HOMEPAGE= http://pkgin.net/ |
10 | COMMENT= Apt / yum like tool for managing pkgsrc binary packages | | 10 | COMMENT= Apt / yum like tool for managing pkgsrc binary packages |
11 | LICENSE= modified-bsd | | 11 | LICENSE= modified-bsd |
12 | | | 12 | |
13 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} | | 13 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} |
14 | CONF_FILES= ${EGDIR}/repositories.conf.example \ | | 14 | CONF_FILES= ${EGDIR}/repositories.conf.example \ |
| @@ -19,40 +19,40 @@ INSTALLATION_DIRS+= bin ${PKGMANDIR}/man | | | @@ -19,40 +19,40 @@ INSTALLATION_DIRS+= bin ${PKGMANDIR}/man |
19 | | | 19 | |
20 | WRKSRC= ${WRKDIR}/pkgin | | 20 | WRKSRC= ${WRKDIR}/pkgin |
21 | | | 21 | |
22 | SUBST_CLASSES+= path | | 22 | SUBST_CLASSES+= path |
23 | SUBST_STAGE.path= pre-configure | | 23 | SUBST_STAGE.path= pre-configure |
24 | SUBST_MESSAGE.path= Adjusting path. | | 24 | SUBST_MESSAGE.path= Adjusting path. |
25 | SUBST_FILES.path= Makefile.in actions.c pkgin.1 | | 25 | SUBST_FILES.path= Makefile.in actions.c pkgin.1 |
26 | SUBST_SED.path= -e "s|/usr/pkg/etc|${PKG_SYSCONFDIR}|g" | | 26 | SUBST_SED.path= -e "s|/usr/pkg/etc|${PKG_SYSCONFDIR}|g" |
27 | SUBST_SED.path+= -e "s|/usr/sbin|${PKG_TOOLS_BIN}|g" | | 27 | SUBST_SED.path+= -e "s|/usr/sbin|${PKG_TOOLS_BIN}|g" |
28 | SUBST_SED.path+= -e "s|/var|${VARBASE}|g" | | 28 | SUBST_SED.path+= -e "s|/var|${VARBASE}|g" |
29 | SUBST_SED.path+= -e "s|/usr/pkg|${PREFIX}|g" | | 29 | SUBST_SED.path+= -e "s|/usr/pkg|${PREFIX}|g" |
30 | SUBST_SED.path+= -e "s|!=.*uname -p|= ${MACHINE_ARCH}|g" | | 30 | SUBST_SED.path+= -e "s|!=.*uname -p|= ${MACHINE_ARCH}|g" |
31 | | | 31 | |
| | | 32 | GNU_CONFIGURE= yes |
| | | 33 | USE_FEATURES= nbcompat |
| | | 34 | USE_TOOLS+= nroff |
| | | 35 | |
32 | .include "../../mk/bsd.prefs.mk" | | 36 | .include "../../mk/bsd.prefs.mk" |
33 | | | 37 | |
34 | .if ${OPSYS} == "NetBSD" | | 38 | .if ${OPSYS} == "NetBSD" |
35 | SUBST_CLASSES+= osrel | | 39 | SUBST_CLASSES+= osrel |
36 | SUBST_STAGE.osrel= pre-configure | | 40 | SUBST_STAGE.osrel= pre-configure |
37 | SUBST_MESSAGE.osrel= Adjusting repository OS release | | 41 | SUBST_MESSAGE.osrel= Adjusting repository OS release |
38 | SUBST_FILES.osrel= REPOSITORIES | | 42 | SUBST_FILES.osrel= REPOSITORIES |
39 | SUBST_SED.osrel= -e "s|@OSREL@|${OS_VERSION:C/_.*//}|" | | 43 | SUBST_SED.osrel= -e "s|@OSREL@|${OS_VERSION:C/_.*//}|" |
40 | .endif | | 44 | .endif |
41 | | | 45 | |
42 | GNU_CONFIGURE= yes | | | |
43 | USE_FEATURES= nbcompat | | | |
44 | USE_TOOLS+= nroff | | | |
45 | | | | |
46 | MAKE_ENV+= MACHINE_ARCH=${MACHINE_ARCH} | | 46 | MAKE_ENV+= MACHINE_ARCH=${MACHINE_ARCH} |
47 | | | 47 | |
48 | DEPENDS+= pkg_install>=20110215:../../pkgtools/pkg_install | | 48 | DEPENDS+= pkg_install>=20110215:../../pkgtools/pkg_install |
49 | | | 49 | |
50 | # those have official repositories | | 50 | # those have official repositories |
51 | .if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "Minix" | | 51 | .if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "Minix" |
52 | pre-install: | | 52 | pre-install: |
53 | ${GREP} -i ${OPSYS} ${WRKSRC}/REPOSITORIES >> \ | | 53 | ${GREP} -i ${OPSYS} ${WRKSRC}/REPOSITORIES >> \ |
54 | ${WRKSRC}/repositories.conf | | 54 | ${WRKSRC}/repositories.conf |
55 | .endif | | 55 | .endif |
56 | | | 56 | |
57 | do-install: | | 57 | do-install: |
58 | ${INSTALL_PROGRAM} ${WRKSRC}/pkgin ${DESTDIR}${PREFIX}/bin | | 58 | ${INSTALL_PROGRAM} ${WRKSRC}/pkgin ${DESTDIR}${PREFIX}/bin |