From dced1a410c2d292e12006e98ca964c688496414f Mon Sep 17 00:00:00 2001 From: jeh Date: Tue, 10 Oct 2000 00:43:26 +0000 Subject: Support PREFIX properly PR: 21607 Submitted by: KATO Tsuguru Approved by: rmiya@cc.hirosaki-u.ac.jp (Ryo MIYAMOTO) MAINTAINER --- biology/deft/Makefile | 4 ++++ biology/deft/files/patch-aa | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/biology/deft/Makefile b/biology/deft/Makefile index 781239c3eece..5047c62ee2fc 100644 --- a/biology/deft/Makefile +++ b/biology/deft/Makefile @@ -23,6 +23,10 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/source BUILD_DEPENDS= ftn77:${PORTSDIR}/lang/f77 .endif +post-patch: + @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g \ + ${WRKDIR}/${DISTNAME}/examples/DeFT + post-configure: ${CP} ${FILESDIR}/Makefile.deft ${WRKSRC}/Makefile diff --git a/biology/deft/files/patch-aa b/biology/deft/files/patch-aa index 933341927f96..7164a838b73c 100644 --- a/biology/deft/files/patch-aa +++ b/biology/deft/files/patch-aa @@ -14,7 +14,7 @@ +if (null$my_directory == null) then + setenv my_directory `echo $PWD` +endif -+setenv DeFT_directory /usr/local/share/DeFT ++setenv DeFT_directory %%PREFIX%%/share/DeFT +setenv temp_directory /usr/tmp/tmp$$ mkdir $temp_directory -- cgit