2011-08-13 13:23:36 +02:00
|
|
|
# $NetBSD: Makefile,v 1.16 2011/08/13 11:23:36 imil Exp $
|
2009-06-08 15:58:26 +02:00
|
|
|
#
|
|
|
|
|
2011-08-13 13:23:36 +02:00
|
|
|
DISTNAME= pkgin-0.4.3
|
2009-06-08 15:58:26 +02:00
|
|
|
CATEGORIES= pkgtools
|
|
|
|
MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/imil/
|
|
|
|
|
2011-02-13 17:03:56 +01:00
|
|
|
MAINTAINER= imil@NetBSD.org
|
2011-03-06 19:44:59 +01:00
|
|
|
HOMEPAGE= http://pkgin.net/
|
2009-06-08 15:58:26 +02:00
|
|
|
COMMENT= Apt / yum like tool for managing pkgsrc binary packages
|
|
|
|
LICENSE= modified-bsd
|
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
|
|
CONF_FILES= ${EGDIR}/repositories.conf.example \
|
|
|
|
${PKG_SYSCONFDIR}/${PKGBASE}/repositories.conf
|
|
|
|
|
2010-01-24 15:56:24 +01:00
|
|
|
OWN_DIRS+= ${PKG_SYSCONFDIR}/${PKGBASE}
|
|
|
|
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 ${EGDIR}
|
2009-06-08 15:58:26 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/pkgin
|
|
|
|
|
|
|
|
SUBST_CLASSES+= path
|
|
|
|
SUBST_STAGE.path= pre-configure
|
|
|
|
SUBST_MESSAGE.path= Adjusting path.
|
2010-01-24 15:56:24 +01:00
|
|
|
SUBST_FILES.path= Makefile.in actions.c pkgin.1
|
|
|
|
SUBST_SED.path= -e "s|/usr/pkg/etc|${PKG_SYSCONFDIR}|g"
|
2009-06-08 15:58:26 +02:00
|
|
|
SUBST_SED.path+= -e "s|/usr/sbin|${PKG_TOOLS_BIN}|g"
|
2010-01-24 15:56:24 +01:00
|
|
|
SUBST_SED.path+= -e "s|/var|${VARBASE}|g"
|
2011-02-13 17:03:56 +01:00
|
|
|
SUBST_SED.path+= -e "s|/usr/pkg|${PREFIX}|g"
|
2009-06-08 15:58:26 +02:00
|
|
|
|
2010-01-24 15:56:24 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_FEATURES= nbcompat
|
2009-06-08 15:58:26 +02:00
|
|
|
|
2011-02-13 17:03:56 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
# those have official repositories
|
|
|
|
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "Minix"
|
|
|
|
pre-install:
|
|
|
|
${GREP} -i ${OPSYS} ${WRKSRC}/REPOSITORIES >> \
|
|
|
|
${WRKSRC}/repositories.conf
|
|
|
|
.endif
|
2009-06-08 15:58:26 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pkgin ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/pkgin.1 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/repositories.conf \
|
|
|
|
${DESTDIR}${EGDIR}/repositories.conf.example
|
|
|
|
|
|
|
|
# libfetch has no builtin.mk and is included in NetBSD>=5
|
|
|
|
.if ${OPSYS} != "NetBSD" || \
|
|
|
|
(${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[0-4].*))
|
|
|
|
. include "../../net/libfetch/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
2011-02-13 17:03:56 +01:00
|
|
|
# Only MINIX doesn't compile SQLite Amalgation source
|
|
|
|
.if ${OPSYS} == "Minix"
|
|
|
|
. include "../../databases/sqlite3/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
2009-06-08 15:58:26 +02:00
|
|
|
.include "../../archivers/libarchive/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|