summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2011-06-19 18:37:38 +0000
committerdholland <dholland@pkgsrc.org>2011-06-19 18:37:38 +0000
commit28e8750d5d3e4917010e238d4220c3fdfb41d7a1 (patch)
treeaa22475a1d129af2ce369f91bbed02d5c6ddb5e3 /comms
parent723d489438cd549f2a6dea7c4c22acaca0b627bd (diff)
downloadpkgsrc-28e8750d5d3e4917010e238d4220c3fdfb41d7a1.tar.gz
Use more REPLACE_PERL, and use SUBST for handling the interpreter line of
a build product.
Diffstat (limited to 'comms')
-rw-r--r--comms/p5-pilot-link/Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/comms/p5-pilot-link/Makefile b/comms/p5-pilot-link/Makefile
index 85cdb6cdcc0..bba74b22907 100644
--- a/comms/p5-pilot-link/Makefile
+++ b/comms/p5-pilot-link/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.46 2011/01/13 13:37:17 wiz Exp $
+# $NetBSD: Makefile,v 1.47 2011/06/19 18:37:38 dholland Exp $
#
PKG_DESTDIR_SUPPORT= user-destdir
@@ -16,13 +16,25 @@ BUILDLINK_API_DEPENDS.pilot-link-libs= pilot-link-libs>=${PILOT_LINK_VERS}
USE_TOOLS+= gmake
-CONFIGURE_ARGS+= --enable-conduits
+CONFIGURE_ARGS+= --enable-conduits
CONFIGURE_ARGS+= --with-perl=${PERL5:Q}
PERL5_CONFIGURE= NO
PERL5_PACKLIST= auto/PDA/Pilot/.packlist
PERL5_LDFLAGS= -lpisock
-REPLACE_PERL+= bindings/Perl/h2xs-pilot-link src/pilot-ietf2datebook.pl
+REPLACE_PERL+= bindings/Perl/h2xs-pilot-link
+REPLACE_PERL+= bindings/Perl/dump.pl
+REPLACE_PERL+= bindings/Perl/blib/lib/PDA/dump.pl
+
+# Cannot use REPLACE_PERL for this because the substitution needs to be
+# done either after build (on src/pilot-ietf2datebook, which is a build
+# product) or not on the first line (on src/pilot-ietf2datebook.pl, which
+# generates the installed script).
+SUBST_CLASSES+= moreperl
+SUBST_STAGE.moreperl= post-build
+SUBST_MESSAGE.moreperl= Fixing Perl interpreter in build products.
+SUBST_FILES.moreperl= src/pilot-ietf2datebook
+SUBST_SED.moreperl= -e 1s,/usr/bin/env.perl,${PERL5:Q},
INSTALL_DIRS= bindings
INSTALLATION_DIRS= bin