summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-12-18 14:28:08 +0000
committergrant <grant@pkgsrc.org>2003-12-18 14:28:08 +0000
commit42f55989dff1d02d1a12882cd76a04a142f3d5a2 (patch)
tree8ec965eb9ae786bee56510227b41b1d2611a5613 /pkgtools
parentf15a054a35dd2d74062f95081a7e827fdb36b422 (diff)
downloadpkgsrc-42f55989dff1d02d1a12882cd76a04a142f3d5a2.tar.gz
make use of FILES_SUBST_SED.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_filecheck/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/pkgtools/pkg_filecheck/Makefile b/pkgtools/pkg_filecheck/Makefile
index fdbfa255963..0d66652c1a3 100644
--- a/pkgtools/pkg_filecheck/Makefile
+++ b/pkgtools/pkg_filecheck/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2003/12/14 12:27:57 dillo Exp $
+# $NetBSD: Makefile,v 1.7 2003/12/18 14:28:08 grant Exp $
#
DISTNAME= pkg_filecheck-0.1
@@ -19,17 +19,14 @@ EXTRACT_ONLY= # empty
NO_CHECKSUM= yes
NO_CONFIGURE= yes
+FILES_SUBST+= X11PREFIX=${X11PREFIX}
CONF_FILES= ${PREFIX}/share/examples/pkg_filecheck/pkg_filecheck.conf \
${PKG_SYSCONFDIR}/pkg_filecheck.conf
do-build:
.for f in builddb.pl builddb.1 pkg_filecheck.conf pkg_filecheck.conf.5 \
pkg_filecheck.c pkg_filecheck.1
- ${SED} -e 's|@PREFIX@|${PREFIX}|g' \
- -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' \
- -e 's|@X11PREFIX@|${X11PREFIX}|g' \
- < ${FILESDIR}/${f} \
- > ${WRKSRC}/${f}
+ ${SED} ${FILES_SUBST_SED} ${FILESDIR}/${f} > ${WRKSRC}/${f}
.endfor
cd ${WRKSRC} \
&& ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} \