aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2000-10-10 08:43:26 +0800
committerjeh <jeh@FreeBSD.org>2000-10-10 08:43:26 +0800
commitdced1a410c2d292e12006e98ca964c688496414f (patch)
tree5e9784a72202151e51982943d0f73f369df83cfe
parent8e1b23b883bace5018cab1a476d00a29148508a4 (diff)
downloadfreebsd-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/Makefile4
-rw-r--r--biology/deft/files/patch-aa2
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