pkgsrc-wip/pkgin/Makefile

57 lines
1.6 KiB
Makefile
Raw Normal View History

2010-01-24 17:13:35 +01:00
# $NetBSD: Makefile,v 1.30 2010/01/24 16:13:35 imilh Exp $
#
2010-01-24 17:13:35 +01:00
DISTNAME= pkgin-20100124
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/
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
OWN_DIRS+= ${PKG_SYSCONFDIR}/${PKGBASE}
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 ${EGDIR}
WRKSRC= ${WRKDIR}/pkgin
SUBST_CLASSES+= path
SUBST_STAGE.path= pre-configure
SUBST_MESSAGE.path= Adjusting path.
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"
SUBST_SED.path+= -e "s|/usr/sbin|${PKG_TOOLS_BIN}|g"
SUBST_SED.path+= -e "s|/var|${VARBASE}|g"
GNU_CONFIGURE= yes
USE_FEATURES= nbcompat
NBCOMPAT_CONFIGURE_ARGS+= --enable-db
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
.include "../../mk/bsd.prefs.mk"
2009-05-21 17:57:51 +02:00
# 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
.include "../../archivers/libarchive/buildlink3.mk"
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"