diff options
author | asami <asami@FreeBSD.org> | 1998-09-16 14:55:18 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1998-09-16 14:55:18 +0800 |
commit | 1a03e635eb333796cf4841f964aa0f37b5496946 (patch) | |
tree | 446444756bb023e0cab84f3ac1be7c807f7314ba /irc/sirc/Makefile | |
parent | 9dbe83b3d343896e3c979cc149c80ce5144960fb (diff) | |
download | freebsd-ports-gnome-1a03e635eb333796cf4841f964aa0f37b5496946.tar.gz freebsd-ports-gnome-1a03e635eb333796cf4841f964aa0f37b5496946.tar.zst freebsd-ports-gnome-1a03e635eb333796cf4841f964aa0f37b5496946.zip |
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 |