summaryrefslogtreecommitdiff
path: root/comms/p5-pilot-link
diff options
context:
space:
mode:
authordholland <dholland>2011-06-19 18:37:38 +0000
committerdholland <dholland>2011-06-19 18:37:38 +0000
commite80242e9940b741344dc7b38f134fa7ff4a7d686 (patch)
treeaa22475a1d129af2ce369f91bbed02d5c6ddb5e3 /comms/p5-pilot-link
parent23e226d51abf6f2b446ebe228ec4f9b009f1c597 (diff)
downloadpkgsrc-e80242e9940b741344dc7b38f134fa7ff4a7d686.tar.gz
Use more REPLACE_PERL, and use SUBST for handling the interpreter line of
a build product.
Diffstat (limited to 'comms/p5-pilot-link')
-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