diff options
author | dholland <dholland@pkgsrc.org> | 2011-06-19 18:37:38 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2011-06-19 18:37:38 +0000 |
commit | a9f32ec9ba1523acb6153af867bc37400c32ac2c (patch) | |
tree | aa22475a1d129af2ce369f91bbed02d5c6ddb5e3 /comms | |
parent | 156de008c19710b1f50a07110339caade7959e7e (diff) | |
download | pkgsrc-a9f32ec9ba1523acb6153af867bc37400c32ac2c.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/Makefile | 18 |
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 |