diff options
author | Satoshi Asami <asami@FreeBSD.org> | 1998-09-16 06:55:18 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 1998-09-16 06:55:18 +0000 |
commit | 289b80fb84dff8e3798885717e091a48a619c669 (patch) | |
tree | c6462da2049521a8beeadebdca069db6722efb78 /irc/sirc/Makefile | |
parent | Upgrade to 3.1.2, which is fetchable. (diff) |
Better fix for perl5-in-current world.
Submitted by: maintainer
Diffstat (limited to 'irc/sirc/Makefile')
-rw-r--r-- | irc/sirc/Makefile | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/irc/sirc/Makefile b/irc/sirc/Makefile index ac276c676b24..466631d41ee3 100644 --- a/irc/sirc/Makefile +++ b/irc/sirc/Makefile @@ -3,7 +3,7 @@ # Date created: 4 May 1998 # Whom: Studded <Studded@dal.net> # -# $Id: Makefile,v 1.1.1.1 1998/05/07 05:20:19 mph Exp $ +# $Id: Makefile,v 1.2 1998/05/07 21:58:53 mph Exp $ # # If you need SOCKS support, define SOCKS_SERVER with # the name of your SOCKS proxy and remove the '#'. @@ -22,6 +22,12 @@ MAINTAINER= Studded@dal.net USE_PERL5= yes +.if exists(/usr/bin/perl5) +SHORT_PERL5=/usr/bin/perl5 +.else +SHORT_PERL5=${PREFIX}/bin/perl5 +.endif + post-extract: .if !defined(SOCKS_SERVER) @${ECHO_MSG} '' @@ -39,12 +45,16 @@ pre-patch: do-patch: .if defined(SOCKS_SERVER) @${PATCH} ${PATCH_DIST_ARGS} < ${PATCHDIR}/patch-aa - @${SED} 's%SOCKS_SERVER\=%SOCKS_SERVER\=${SOCKS_SERVER}%' \ - ${WRKSRC}/sirc-proto > ${WRKSRC}/sirc-socks - @${SED} 's%PREFIX\=%PREFIX\=${PREFIX}%' ${WRKSRC}/sirc-socks \ + @${SED} 's:SOCKS_SERVER\=:SOCKS_SERVER\=${SOCKS_SERVER}:' \ + ${WRKSRC}/sirc-proto > ${WRKSRC}/sirc-proto.1 + @${SED} 's:PREFIX.SED:${PREFIX}:' ${WRKSRC}/sirc-proto.1 \ + > ${WRKSRC}/sirc-proto.2 + @${SED} 's:PERL5.SED:${SHORT_PERL5}:' ${WRKSRC}/sirc-proto.2 \ > ${WRKSRC}/sirc .else - @${SED} 's%PREFIX\=%PREFIX\=${PREFIX}%' ${WRKSRC}/sirc-proto \ + @${SED} 's:PREFIX.SED:${PREFIX}:' ${WRKSRC}/sirc-proto \ + > ${WRKSRC}/sirc-proto.1 + @${SED} 's:PERL5.SED:${SHORT_PERL5}:' ${WRKSRC}/sirc-proto.1 \ > ${WRKSRC}/sirc .endif |