summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-10-26 10:43:54 +0000
committeragc <agc@pkgsrc.org>2001-10-26 10:43:54 +0000
commit92e3873a9a62b66949f5a1daf705595c9b7b4161 (patch)
tree2c3aefb68d0bb84b3b78730e8dce648a73aaad40
parent41935219fb7aa605ad1cb88e2e416be871426c0a (diff)
downloadpkgsrc-92e3873a9a62b66949f5a1daf705595c9b7b4161.tar.gz
The post-patch script did the same job, at the same time, as the newer
REPLACE_PERL definition does, so convert this package to use REPLACE_PERL. Remove now unnecessary post-patch script.
-rw-r--r--games/crossfire-srv/Makefile11
-rwxr-xr-xgames/crossfire-srv/scripts/post-patch14
2 files changed, 9 insertions, 16 deletions
diff --git a/games/crossfire-srv/Makefile b/games/crossfire-srv/Makefile
index aac62b0326c..0747335ab9c 100644
--- a/games/crossfire-srv/Makefile
+++ b/games/crossfire-srv/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2001/08/01 16:26:56 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2001/10/26 10:43:54 agc Exp $
#
DISTNAME= crossfire-1.0.0
@@ -24,10 +24,17 @@ USE_X11= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_PERL5= yes
-SCRIPTS_ENV+= ${SCRIPTSDIR}
CONFIGURE_ARGS+= --prefix=${LOCALBASE}
CONFIGURE_ARGS+= --with-includes=-I${LOCALBASE}/include
+REPLACE_PERL= lib/xpmtopix.pl lib/adm/check-xpm.pl lib/adm/make_xpm_file.pl
+REPLACE_PERL+= lib/adm/map_expand.pl lib/adm/mapslitter.pl
+REPLACE_PERL+= lib/adm/archsearch.pl lib/adm/collect_images.pl
+REPLACE_PERL+= lib/collect.pl lib/util.pl lib/checkarch.pl
+REPLACE_PERL+= utils/crossloop.pl utils/metaserver.pl
+REPLACE_PERL+= doc/include_html.pl doc/playbook/make_index.pl
+REPLACE_PERL+= doc/spoiler-html/makeps.pl
+
post-install:
cd ${LOCALBASE}/share/crossfire && \
${GZCAT} ${DISTDIR}/${CF_MAPS} | ${GTAR} xmf -
diff --git a/games/crossfire-srv/scripts/post-patch b/games/crossfire-srv/scripts/post-patch
deleted file mode 100755
index 139d9dd11cc..00000000000
--- a/games/crossfire-srv/scripts/post-patch
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-#
-# $NetBSD: post-patch,v 1.1.1.1 2000/12/13 08:18:06 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