Date: Sat, 26 Dec 1998 12:14:42 -0600 From: "Scot W. Hetzel" <hetzels@westbend.net> To: "Dima Sivachenko" <demon@gpad.ac.ru>, <ports@FreeBSD.ORG> Cc: <questions@FreeBSD.ORG> Subject: Re: Question about porting... Message-ID: <00ce01be30fb$9d0f4220$0dcb2e9c@westbend.net> References: <199812252112.AAA03104@diamond.gpad.ac.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
From: Dima Sivachenko <demon@gpad.ac.ru> > Hello! > I am about to make a port of one program, written in perl. > But the first line of this program looks strange: > #!/Smth strange/perl > So I want to make a patch to fix this. But the path of `perl' is different > on different FreeBSD versions: /usr/local/bin on 2.2.7 and /usr/bin on > 3.0 due to 3.0 is already shipped with perl5 rather than perl4. > > How should I determine the actial path of perl5 in Makefile of my port? > You add: USE_PERL = TRUE and then use a sed command to replace the perl line as follows: cat unfixedperl.file | sed `s;Smth Strange/perl;${PERL};' > fixedperl.file Scot To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00ce01be30fb$9d0f4220$0dcb2e9c>