diff options
author | brooks <brooks@FreeBSD.org> | 2007-01-29 00:58:42 +0800 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2007-01-29 00:58:42 +0800 |
commit | ec24639aa670b8c197d380fcf7be4255668c588f (patch) | |
tree | 5a51efed60f63ffd89163a06a96c2ddf5810b866 /audio/squeezecenter | |
parent | 21a111e5e136e1c3354342e365fe5bb488634084 (diff) | |
download | freebsd-ports-gnome-ec24639aa670b8c197d380fcf7be4255668c588f.tar.gz freebsd-ports-gnome-ec24639aa670b8c197d380fcf7be4255668c588f.tar.zst freebsd-ports-gnome-ec24639aa670b8c197d380fcf7be4255668c588f.zip |
Fix build for people who have somehow managed to install Perl without a
working /usr/bin/perl.
Diffstat (limited to 'audio/squeezecenter')
-rw-r--r-- | audio/squeezecenter/Makefile | 8 | ||||
-rw-r--r-- | audio/squeezecenter/files/patch-Bin_build-perl-modules.pl | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/audio/squeezecenter/Makefile b/audio/squeezecenter/Makefile index 986b5d9e96f8..1c4cf7b6a22e 100644 --- a/audio/squeezecenter/Makefile +++ b/audio/squeezecenter/Makefile @@ -119,7 +119,7 @@ post-fetch: post-patch: @${REINPLACE_CMD} \ - -e 's|%%PERL%%|${PERL}|' \ + -e 's|/usr/bin/perl|${PERL}|' \ -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ -e 's|%%TMP_SLIMDIR%%|${TMP_SLIMDIR}|' \ -e 's|%%CPANWRKDIR%%|${CPANWRKDIR}|' \ @@ -127,8 +127,10 @@ post-patch: ${WRKSRC}/Bin/build-perl-modules.pl @${REINPLACE_CMD} \ -e 's|/usr/bin/perl|${PERL}|' \ - ${WRKSRC}/scanner.pl ${WRKSRC}/slimserver.pl - @${RM} ${WRKSRC}/scanner.pl.bak ${WRKSRC}/slimserver.pl.bak + ${WRKSRC}/scanner.pl ${WRKSRC}/slimserver.pl \ + ${WRKSRC}/Bin/dbish + @${RM} ${WRKSRC}/scanner.pl.bak ${WRKSRC}/slimserver.pl.bak \ + ${WRKSRC}/Bin/dbish.bak do-build: @${MKDIR} -m 0755 ${TMP_SLIMDIR} diff --git a/audio/squeezecenter/files/patch-Bin_build-perl-modules.pl b/audio/squeezecenter/files/patch-Bin_build-perl-modules.pl index b5ddceb89645..cc52da3652a6 100644 --- a/audio/squeezecenter/files/patch-Bin_build-perl-modules.pl +++ b/audio/squeezecenter/files/patch-Bin_build-perl-modules.pl @@ -49,7 +49,7 @@ $FreeBSD$ - chomp($perlBinary = <STDIN>); - - $perlBinary ||= '/usr/bin/perl'; -+ $perlBinary = '%%PERL%%'; ++ $perlBinary = '/usr/bin/perl'; unless (-f $perlBinary && -x $perlBinary) { die "Couldn't find a perl binary. Exiting.\n"; |