The post-patch script was doing the same job that the REPLACE_PERL
definition does, so use REPLACE_PERL instead of a custom script.
This commit is contained in:
parent
7fed12e73a
commit
41935219fb
2 changed files with 3 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.9 2001/07/19 00:24:02 garbled Exp $
|
||||
# $NetBSD: Makefile,v 1.10 2001/10/26 10:14:48 agc Exp $
|
||||
#
|
||||
|
||||
DISTNAME= crossfire-client-1.0.0
|
||||
|
@ -29,6 +29,8 @@ CONFIGURE_ARGS+= --prefix=${LOCALBASE}
|
|||
CONFIGURE_ARGS+= --with-includes=-I${LOCALBASE}/include
|
||||
CONFIGURE_ARGS+= --with-sound-dir=${LOCALBASE}/share/cfclient/sounds
|
||||
|
||||
REPLACE_PERL= utils/deftoheader.pl items.pl
|
||||
|
||||
pre-build:
|
||||
cd ${WRKSRC} && ${MAKE} soundsdef.h
|
||||
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: post-patch,v 1.1.1.1 2000/12/13 08:19:21 garbled Exp $
|
||||
#
|
||||
#this script changes all the /usr/local/bin/perl stuff to what it should be.
|
||||
|
||||
pl=`which perl | sed 's/\//\\\\\\//g'`
|
||||
find ${WRKDIR} -name \*.pl | (
|
||||
while read a; do
|
||||
cp $a tmp
|
||||
sed "s/#! *\/usr\/local\/bin\/perl/#!$pl/" tmp > $a
|
||||
done;
|
||||
)
|
||||
rm tmp
|
Loading…
Reference in a new issue