summaryrefslogtreecommitdiff
path: root/math/ngraph/files
diff options
context:
space:
mode:
authorMIHIRA Sanpei Yoshiro <sanpei@FreeBSD.org>2014-06-20 12:51:37 +0000
committerMIHIRA Sanpei Yoshiro <sanpei@FreeBSD.org>2014-06-20 12:51:37 +0000
commit0b880ce2d846ed8c88d31bb4d9b9957e3117465c (patch)
treec5fdb26c10e9476a3ce82921c113f91bc16d8108 /math/ngraph/files
parent- Switch audio/lash to USES=libtool, drop .la files (diff)
support stage
Notes
Notes: svn path=/head/; revision=358566
Diffstat (limited to 'math/ngraph/files')
-rw-r--r--math/ngraph/files/patch-aa10
-rw-r--r--math/ngraph/files/patch-install.sh30
2 files changed, 35 insertions, 5 deletions
diff --git a/math/ngraph/files/patch-aa b/math/ngraph/files/patch-aa
index 7d938fce3402..62734d0a1bf5 100644
--- a/math/ngraph/files/patch-aa
+++ b/math/ngraph/files/patch-aa
@@ -1,15 +1,15 @@
---- Makefile.orig 2008-08-01 22:28:06.000000000 +0900
-+++ Makefile 2009-02-06 21:39:03.000000000 +0900
+--- Makefile.orig 2009-10-15 20:17:47.000000000 +0900
++++ Makefile 2014-06-20 21:48:30.928895628 +0900
@@ -2,26 +2,26 @@
MAINVERSION = '"6.03"'
- GUIVERSION = '".48"'
+ GUIVERSION = '".51"'
ALIGNSIZE = 8
-LIBDIR = '"/usr/local/lib/Ngraph"'
-INSTALLDIR = /usr/local/lib/Ngraph
-BINDIR = /usr/local/bin
+LIBDIR = '"${PREFIX}/lib/Ngraph"'
-+INSTALLDIR = ${PREFIX}/lib/Ngraph
-+BINDIR = ${PREFIX}/bin
++INSTALLDIR = ${DESTDIR}${PREFIX}/lib/Ngraph
++BINDIR = ${DESTDIR}${PREFIX}/bin
#
#
###############################################################################
diff --git a/math/ngraph/files/patch-install.sh b/math/ngraph/files/patch-install.sh
new file mode 100644
index 000000000000..c864d19c5bb8
--- /dev/null
+++ b/math/ngraph/files/patch-install.sh
@@ -0,0 +1,30 @@
+--- install.sh.orig 2009-10-15 20:17:47.000000000 +0900
++++ install.sh 2014-06-20 21:40:11.532930042 +0900
+@@ -2,6 +2,7 @@
+
+ INSTALLDIR=${INSTALLDIR:-/usr/local/lib/Ngraph}
+ BINDIR=${BINDIR:-/usr/local/bin}
++LIBDIR=${PREFIX}/lib/Ngraph
+
+ TEXTFILES="Ngraph.ini .Ngraph .Ngraph.ngp .fit.ngp INSTALL.jis gpl.txt gpl.ja.txt"
+ ADDINFILES="append.nsc math.nsc text-in.nsc \
+@@ -26,8 +27,8 @@
+ then
+ cp Ngraph.ini ./org
+ fi
+-sed -e "s?INSTALLDIR?${INSTALLDIR}?" ./org/ngraph.sh > ngraph.sh
+-sed -e "s?INSTALLDIR?${INSTALLDIR}?" ./org/Ngraph.ini > Ngraph.ini
++sed -e "s?INSTALLDIR?${LIBDIR}?" ./org/ngraph.sh > ngraph.sh
++sed -e "s?INSTALLDIR?${LIBDIR}?" ./org/Ngraph.ini > Ngraph.ini
+
+ echo "Making directories in ${INSTALLDIR}"
+ if [ ! -d ${INSTALLDIR} ]
+@@ -90,7 +91,7 @@
+ if [ ! -h ${BINDIR}/ngraph ]
+ then
+ echo "Making a symbolic link ${BINDIR}/ngraph"
+- ln -s ${INSTALLDIR}/ngraph.sh ${BINDIR}/ngraph
++ ln -s ${LIBDIR}/ngraph.sh ${BINDIR}/ngraph
+ fi
+
+ if [ -f ./org/ngraph.sh ]