diff options
author | jeh <jeh@FreeBSD.org> | 2000-10-10 08:43:26 +0800 |
---|---|---|
committer | jeh <jeh@FreeBSD.org> | 2000-10-10 08:43:26 +0800 |
commit | dced1a410c2d292e12006e98ca964c688496414f (patch) | |
tree | 5e9784a72202151e51982943d0f73f369df83cfe | |
parent | 8e1b23b883bace5018cab1a476d00a29148508a4 (diff) | |
download | freebsd-ports-gnome-dced1a410c2d292e12006e98ca964c688496414f.tar.gz freebsd-ports-gnome-dced1a410c2d292e12006e98ca964c688496414f.tar.zst freebsd-ports-gnome-dced1a410c2d292e12006e98ca964c688496414f.zip |
Support PREFIX properly
PR: 21607
Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Approved by: rmiya@cc.hirosaki-u.ac.jp (Ryo MIYAMOTO) MAINTAINER
-rw-r--r-- | biology/deft/Makefile | 4 | ||||
-rw-r--r-- | biology/deft/files/patch-aa | 2 |
2 files changed, 5 insertions, 1 deletions
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 |