summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2004-05-09 05:13:24 +0000
committerjschauma <jschauma@pkgsrc.org>2004-05-09 05:13:24 +0000
commitc214c1eb6960b2fb875929122d72103d3340b174 (patch)
tree5be44ae3337ea1d5ce2329197b0911e8716ec438 /pkgtools/pkglint
parent497c47c7add4d1af1668767067101a1fa88989fd (diff)
downloadpkgsrc-c214c1eb6960b2fb875929122d72103d3340b174.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/pkglint')
-rw-r--r--pkgtools/pkglint/Makefile11
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'