diff options
author | jschauma <jschauma> | 2004-05-09 05:13:24 +0000 |
---|---|---|
committer | jschauma <jschauma> | 2004-05-09 05:13:24 +0000 |
commit | d6b1a903402384a5cefab4ed0413d4fe0c366581 (patch) | |
tree | 5be44ae3337ea1d5ce2329197b0911e8716ec438 /pkgtools | |
parent | f86d87c51ffdfd0a23306504235af3d62c1a4cf1 (diff) | |
download | pkgsrc-d6b1a903402384a5cefab4ed0413d4fe0c366581.tar.gz |
Resurrect do-extract target, following atatat's advice.
This way, sources are extracted first as any other package, allowing for
local patches.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkglint/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile index b1ec09c5163..50a807ac780 100644 --- a/pkgtools/pkglint/Makefile +++ b/pkgtools/pkglint/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.185 2004/04/24 00:17:20 reed Exp $ +# $NetBSD: Makefile,v 1.186 2004/05/09 05:13:24 jschauma Exp $ # DISTNAME= pkglint-3.73 @@ -33,15 +33,20 @@ SUBST_FILES+= pkglint.pl plist-clash.pl .include "../../mk/bsd.prefs.mk" -do-build: +do-extract: @${MKDIR} ${WRKSRC}/src .for FILE in ${SUBST_FILES} + ${CP} ${FILESDIR}/${FILE} ${WRKSRC}/src/${FILE} +.endfor + +do-build: +.for FILE in ${SUBST_FILES} ${SED} -e 's|@PREFIX@|${PREFIX}|g' \ -e 's|@PORTSDIR@|${_PKGSRCDIR}|g' \ -e 's|@DISTVER@|${DISTVER}|g' \ -e 's|@MAKE@|${MAKE}|g' \ -e 's|@PERL@|${PERL5}|g' \ - ${FILESDIR}/${FILE} > ${WRKSRC}/${FILE} + ${WRKSRC}/src/${FILE} > ${WRKSRC}/${FILE} .endfor .if ${OPSYS} == "SunOS" || ${OPSYS} == "AIX" # the pre-generated man-pages are 'mandoc'; these OS need 'man' |