pkgsrc-wip/apstget/Makefile

44 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.29 2005/04/11 21:09:48 tvierling Exp $
DISTNAME= apstget-20050302
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= pancake@phreaker.net
COMMENT= apt-get like tool for pkgsrc
DEPENDS+= pkgfind>=20041020:../../pkgtools/pkgfind
DEPENDS+= pkg_tarup>=1.6.3:../../pkgtools/pkg_tarup
DEPENDS+= pkg_chk>=1.54:../../pkgtools/pkg_chk
DEPENDS+= pkglint>=3.94:../../pkgtools/pkglint
NO_CONFIGURE= yes
NO_CHECKSUM= yes
NO_BUILD= yes
CONF_FILES= apstget.conf ${PKG_SYSCONFDIR}/apstget.conf
do-extract:
@${CP} -R ${FILESDIR} ${WRKSRC}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/apst-get ${PREFIX}/bin/apstget
${INSTALL_SCRIPT} ${WRKSRC}/apstget-wrapper ${PREFIX}/libexec/
.include "../../mk/bsd.prefs.mk"
# AWK compatibilty stuff
.if ${OPSYS} != "Linux"
SUBST_SED.etc= -e "s,-W interactive,,"
.endif
SUBST_CLASSES+= etc
SUBST_STAGE.etc= post-patch
SUBST_FILES.etc= apst-get apstget-wrapper
SUBST_SED.etc+= -e "s,_etc_,${PKG_SYSCONFDIR},g" \
-e "s,_pfx_,${PREFIX},g" \
-e "s,_psd_,${PKGSRCDIR},g" \
-e "s,_makebin_,${MAKE},g"
.include "../../mk/bsd.pkg.mk"