From owner-freebsd-ports Sat Dec 26 10:16:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA19399 for freebsd-ports-outgoing; Sat, 26 Dec 1998 10:16:00 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from mail.westbend.net (ns1.westbend.net [156.46.203.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA19357; Sat, 26 Dec 1998 10:15:53 -0800 (PST) (envelope-from hetzels@westbend.net) Received: from admin (admin.westbend.net [156.46.203.13]) by mail.westbend.net (8.8.8/8.8.8) with SMTP id MAA11622; Sat, 26 Dec 1998 12:14:44 -0600 (CST) (envelope-from hetzels@westbend.net) Message-ID: <00ce01be30fb$9d0f4220$0dcb2e9c@westbend.net> From: "Scot W. Hetzel" To: "Dima Sivachenko" , Cc: References: <199812252112.AAA03104@diamond.gpad.ac.ru> Subject: Re: Question about porting... Date: Sat, 26 Dec 1998 12:14:42 -0600 Organization: West Bend Internet MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.1012.1001 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.1012.1001 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org From: Dima Sivachenko > 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