aboutsummaryrefslogtreecommitdiff
path: root/math/gracetmpl
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2004-12-05 03:38:19 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2004-12-05 03:38:19 +0000
commitdd3cadba7960104835aaca71809b33220a4c72e8 (patch)
treeb3920d094626b25f923f66862b025730fe776e85 /math/gracetmpl
parent7fa7bdf2b6ab1dccc8731cff82c0f415ff4d8af9 (diff)
downloadports-dd3cadba7960104835aaca71809b33220a4c72e8.tar.gz
ports-dd3cadba7960104835aaca71809b33220a4c72e8.zip
Fix build on Python 2.4.
Notes
Notes: svn path=/head/; revision=123166
Diffstat (limited to 'math/gracetmpl')
-rw-r--r--math/gracetmpl/files/patch-pygracetmpl.cc20
-rw-r--r--math/gracetmpl/pkg-plist4
2 files changed, 19 insertions, 5 deletions
diff --git a/math/gracetmpl/files/patch-pygracetmpl.cc b/math/gracetmpl/files/patch-pygracetmpl.cc
index 9ba3f2d0cad8..74dcc3abfd7c 100644
--- a/math/gracetmpl/files/patch-pygracetmpl.cc
+++ b/math/gracetmpl/files/patch-pygracetmpl.cc
@@ -1,6 +1,20 @@
---- python/src/pygracetmpl.cc.orig Mon Aug 16 18:25:45 2004
-+++ python/src/pygracetmpl.cc Mon Aug 16 18:31:35 2004
-@@ -179,7 +179,7 @@
+--- python/src/pygracetmpl.cc.orig Sat Oct 12 05:12:57 2002
++++ python/src/pygracetmpl.cc Sun Dec 5 12:35:53 2004
+@@ -1,11 +1,10 @@
+ #include <gracetmpl.h>
+
+-#include <Python.h>
+-#include <Numeric/arrayobject.h> /* numerical python header */
+-
+ #include <string.h>
+ #include <complex>
+ #include <set>
++#include <Python.h>
++#include <Numeric/arrayobject.h> /* numerical python header */
+
+ /********************************************************/
+ /******************* graceTMPL.data type ***************/
+@@ -179,7 +178,7 @@
int rows = dataArray->dimensions[1];
if(cols > 4)
cols = 4;
diff --git a/math/gracetmpl/pkg-plist b/math/gracetmpl/pkg-plist
index 7a4b961e6434..17646c9a5638 100644
--- a/math/gracetmpl/pkg-plist
+++ b/math/gracetmpl/pkg-plist
@@ -2,8 +2,8 @@ bin/gracetmpl-config
bin/gracetmpldemo
include/gracetmpl.h
lib/libgracetmpl.a
-include/python2.3/graceTMPL/gracetmpl.h
-@dirrm include/python2.3/graceTMPL
+%%PYTHON_INCLUDEDIR%%/graceTMPL/gracetmpl.h
+@dirrm %%PYTHON_INCLUDEDIR%%/graceTMPL
%%PYTHON_SITELIBDIR%%/graceTMPL/graceTMPL.so
%%PYTHON_SITELIBDIR%%/graceTMPL.pth
@dirrm %%PYTHON_SITELIBDIR%%/graceTMPL