2010-01-24 17:13:35 +01:00
|
|
|
# $NetBSD: Makefile,v 1.30 2010/01/24 16:13:35 imilh Exp $
|
2009-05-12 00:34:01 +02:00
|
|
|
#
|
|
|
|
|
2010-01-24 17:13:35 +01:00
|
|
|
DISTNAME= pkgin-20100124
|
2009-05-12 00:34:01 +02:00
|
|
|
CATEGORIES= pkgtools
|
|
|
|
MASTER_SITES= http://imil.net/NetBSD/
|
|
|
|
|
|
|
|
MAINTAINER= imil@gcu.info
|
2009-05-28 17:51:41 +02:00
|
|
|
HOMEPAGE= http://imil.net/pkgin/
|
2009-05-12 00:34:01 +02:00
|
|
|
COMMENT= Apt / yum like tool for managing pkgsrc binary packages
|
2009-06-08 12:22:11 +02:00
|
|
|
LICENSE= modified-bsd
|
2009-05-12 00:34:01 +02:00
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2009-06-06 00:30:51 +02:00
|
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
|
|
CONF_FILES= ${EGDIR}/repositories.conf.example \
|
|
|
|
${PKG_SYSCONFDIR}/${PKGBASE}/repositories.conf
|
|
|
|
|
2009-12-03 13:33:31 +01:00
|
|
|
OWN_DIRS+= ${PKG_SYSCONFDIR}/${PKGBASE}
|
|
|
|
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 ${EGDIR}
|
2009-05-12 00:34:01 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/pkgin
|
|
|
|
|
|
|
|
SUBST_CLASSES+= path
|
|
|
|
SUBST_STAGE.path= pre-configure
|
|
|
|
SUBST_MESSAGE.path= Adjusting path.
|
2009-12-03 13:33:31 +01:00
|
|
|
SUBST_FILES.path= Makefile.in actions.c pkgin.1
|
|
|
|
SUBST_SED.path= -e "s|/usr/pkg/etc|${PKG_SYSCONFDIR}|g"
|
|
|
|
SUBST_SED.path+= -e "s|/usr/pkg|${PREFIX}|g"
|
2009-05-12 00:34:01 +02:00
|
|
|
SUBST_SED.path+= -e "s|/usr/sbin|${PKG_TOOLS_BIN}|g"
|
2009-12-03 13:33:31 +01:00
|
|
|
SUBST_SED.path+= -e "s|/var|${VARBASE}|g"
|
2009-05-12 00:34:01 +02:00
|
|
|
|
2009-12-03 13:33:31 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_FEATURES= nbcompat
|
2009-05-29 15:31:38 +02:00
|
|
|
|
|
|
|
NBCOMPAT_CONFIGURE_ARGS+= --enable-db
|
2009-05-20 19:07:12 +02:00
|
|
|
|
2009-05-12 00:34:01 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pkgin ${DESTDIR}${PREFIX}/bin
|
2009-06-06 00:30:51 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/pkgin.1 \
|
2009-05-12 00:34:01 +02:00
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
2009-06-06 00:30:51 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/repositories.conf \
|
|
|
|
${DESTDIR}${EGDIR}/repositories.conf.example
|
|
|
|
|
2009-05-12 00:34:01 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2009-05-21 17:57:51 +02:00
|
|
|
# libfetch has no builtin.mk and is included in NetBSD>=5
|
2009-05-12 00:34:01 +02:00
|
|
|
.if ${OPSYS} != "NetBSD" || \
|
|
|
|
(${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[0-4].*))
|
|
|
|
. include "../../net/libfetch/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "../../archivers/libarchive/buildlink3.mk"
|
|
|
|
.include "../../databases/sqlite3/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|