aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-09-08 16:23:56 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-09-08 16:23:56 +0000
commit5c9dd5f44a70d6a65d33ba0eb6cd254c45869b69 (patch)
tree9bec8b852f8cfcf082a12a0af4887e65613be7c0 /math
parent6861e0196bfa65c1516e9585963b4812c81eecc6 (diff)
downloadports-5c9dd5f44a70d6a65d33ba0eb6cd254c45869b69.tar.gz
ports-5c9dd5f44a70d6a65d33ba0eb6cd254c45869b69.zip
Notes
Diffstat (limited to 'math')
-rw-r--r--math/gracetmpl/Makefile3
-rw-r--r--math/gracetmpl/files/patch-Makefile15
2 files changed, 11 insertions, 7 deletions
diff --git a/math/gracetmpl/Makefile b/math/gracetmpl/Makefile
index 0156a12c0037..525667037a68 100644
--- a/math/gracetmpl/Makefile
+++ b/math/gracetmpl/Makefile
@@ -21,7 +21,8 @@ MAKE_ARGS= PREFIX="${PREFIX}" \
AR="${AR}" \
CPP="${CXX} ${LDFLAGS}" \
CPPFLAGS="${CXXFLAGS} ${CPPFLAGS}" \
- CXX="${CXX}"
+ CXX="${CXX}" \
+ PYTHON="${PYTHON_CMD}"
ALL_TARGET= all pythonwrap
INSTALL_TARGET= install
diff --git a/math/gracetmpl/files/patch-Makefile b/math/gracetmpl/files/patch-Makefile
index 0063cfcf7742..3141843da40a 100644
--- a/math/gracetmpl/files/patch-Makefile
+++ b/math/gracetmpl/files/patch-Makefile
@@ -1,5 +1,5 @@
---- Makefile.orig Mon Sep 27 16:59:48 2004
-+++ Makefile Sun Jun 5 01:14:44 2005
+--- Makefile.orig 2004-09-27 03:59:48.000000000 -0400
++++ Makefile 2014-09-08 12:19:12.246360998 -0400
@@ -58,10 +58,10 @@
$(CPP) -o envtest envtest.o gracetmpl.o
@@ -15,20 +15,23 @@
gracetmpl-config: gracetmpl-config.in Makefile.defs
sed -e 's!__PREFIX__!$(PREFIX)!g' \
-@@ -79,7 +79,7 @@
+@@ -78,16 +78,16 @@
+ rm -f *~ \#*\#
pythonwrap:
- @if python python/prereq.py 2>/dev/null; then \
+- @if python python/prereq.py 2>/dev/null; then \
- (cd python; make); \
++ @if $(PYTHON) python/prereq.py 2>/dev/null; then \
+ (cd python; $(MAKE)); \
else \
echo missing python numarray extension.; \
echo not building python stuff; \
-@@ -87,7 +87,7 @@
+ fi
pythonwrap_install:
- @if python python/prereq.py 2>/dev/null; then \
+- @if python python/prereq.py 2>/dev/null; then \
- (cd python; make install); \
++ @if $(PYTHON) python/prereq.py 2>/dev/null; then \
+ (cd python; $(MAKE) install); \
else \
echo not installing python stuff; \