diff options
author | joerg <joerg@pkgsrc.org> | 2006-01-06 17:10:58 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-01-06 17:10:58 +0000 |
commit | a11c0f787965fa4c8b5c154ac4e533b636b53792 (patch) | |
tree | 0e0aa1bae2eafbe148bbf05335cf66ff50b71c57 /pkgtools | |
parent | 6f265b2075c73da86dd4266ef228bf9d4132713d (diff) | |
download | pkgsrc-a11c0f787965fa4c8b5c154ac4e533b636b53792.tar.gz |
Use SUBST framework. Use PERL5 instead of ${PREFIX}/bin/perl to get
the location of the interpreter.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkg_filecheck/Makefile | 18 | ||||
-rw-r--r-- | pkgtools/pkg_filecheck/files/builddb.pl | 4 |
2 files changed, 17 insertions, 5 deletions
diff --git a/pkgtools/pkg_filecheck/Makefile b/pkgtools/pkg_filecheck/Makefile index 4c83ec18472..6826b39d5f9 100644 --- a/pkgtools/pkg_filecheck/Makefile +++ b/pkgtools/pkg_filecheck/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2005/12/29 06:22:06 jlam Exp $ +# $NetBSD: Makefile,v 1.21 2006/01/06 17:10:58 joerg Exp $ # DISTNAME= pkg_filecheck-0.1 @@ -27,11 +27,23 @@ INSTALLATION_DIRS= bin man/man1 man/man5 .include "../../mk/bdb.buildlink3.mk" -do-build: +SUBST_CLASSES+= paths +SUBST_FILES.paths= builddb.pl builddb.1 pkg_filecheck.conf +SUBST_FILES.paths+= pkg_filecheck.conf.5 pkg_filecheck.c pkg_filecheck.1 +SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g' +SUBST_SED.paths+= -e 's,@PERL5@,${PERL5},g' +SUBST_SED.paths+= -e 's,@X11PREFIX@,${X11PREFIX},g' +SUBST_SED.paths+= -e 's,@PKG_DBDIR@,${PKG_DBDIR},g' +SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g' +SUBST_STAGE.paths= post-patch + +post-extract: .for f in builddb.pl builddb.1 pkg_filecheck.conf pkg_filecheck.conf.5 \ pkg_filecheck.c pkg_filecheck.1 - ${SED} ${FILES_SUBST_SED} ${FILESDIR}/${f} > ${WRKSRC}/${f} + ${CP} ${FILESDIR}/${f} ${WRKSRC}/${f} .endfor + +do-build: cd ${WRKSRC} \ && ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${BDB_LIBS} \ -o pkg_filecheck pkg_filecheck.c \ diff --git a/pkgtools/pkg_filecheck/files/builddb.pl b/pkgtools/pkg_filecheck/files/builddb.pl index 74778cf7bdc..b7bc393f362 100644 --- a/pkgtools/pkg_filecheck/files/builddb.pl +++ b/pkgtools/pkg_filecheck/files/builddb.pl @@ -1,6 +1,6 @@ -#!@PREFIX@/bin/perl +#!@PERL5@ -# $NetBSD: builddb.pl,v 1.1.1.1 2003/07/13 16:15:34 wiz Exp $ +# $NetBSD: builddb.pl,v 1.2 2006/01/06 17:10:58 joerg Exp $ # # builddb -- build .byfile.db from tgz files or directory hierarchies. # Copyright (C) 2000, 2003 Dieter Baron |