7a7e6e02ab
Most of the times setting NO_CONFIGURE is not needed and can badly interact with SUBST framework like in this case as pointed out by PR pkg/53606. Fixes PR pkg/53606.
28 lines
768 B
Makefile
28 lines
768 B
Makefile
# $NetBSD: Makefile,v 1.21 2018/09/14 16:31:28 leot Exp $
|
|
|
|
PKGNAME= pkgclean-20051116
|
|
CATEGORIES= pkgtools
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
COMMENT= Quickly clean up all work directories in pkgsrc
|
|
LICENSE= 2-clause-bsd
|
|
|
|
NO_BUILD= yes
|
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
|
|
|
do-extract:
|
|
${RUN}${CP} -R ${FILESDIR} ${WRKSRC}
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pkgclean.sh ${DESTDIR}${PREFIX}/bin/pkgclean
|
|
${INSTALL_MAN} ${WRKSRC}/pkgclean.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/pkgclean.1
|
|
|
|
SUBST_CLASSES+= path
|
|
SUBST_STAGE.path= pre-configure
|
|
SUBST_FILES.path= pkgclean.sh pkgclean.1
|
|
SUBST_SED.path+= -e 's,@SH@,${SH},g'
|
|
SUBST_SED.path+= -e 's,@PKGSRCDIR@,${PKGSRCDIR},g'
|
|
SUBST_MESSAGE.path= Adjusting pkgsrc directory.
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|