summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--graphics/py-soya3d/Makefile5
-rw-r--r--graphics/py-soya3d/files/patch-setup.py30
2 files changed, 33 insertions, 2 deletions
diff --git a/graphics/py-soya3d/Makefile b/graphics/py-soya3d/Makefile
index 9ff7efa..e920502 100644
--- a/graphics/py-soya3d/Makefile
+++ b/graphics/py-soya3d/Makefile
@@ -31,6 +31,7 @@ USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_GL= yes
USE_GMAKE= yes
+USE_REINPLACE= yes
MANDIR= ${WRKDIR}/${DISTNAME}/manpage/man1
MAN1= soya_editor.1
@@ -46,6 +47,10 @@ DISTFILES+= SoyaTutorial-${PORTVERSION}${EXTRACT_SUFX}
BROKEN= "Does not compile in ${ARCH}"
.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
+ -e 's|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/setup.py
+
post-install:
@${INSTALL_DIR} ${EXAMPLESDIR}
@${CP} -R ${WRKDIR}/SoyaTutorial-${PORTVERSION}/tutorial/* ${EXAMPLESDIR}
diff --git a/graphics/py-soya3d/files/patch-setup.py b/graphics/py-soya3d/files/patch-setup.py
index e5d2f14..303a5c5 100644
--- a/graphics/py-soya3d/files/patch-setup.py
+++ b/graphics/py-soya3d/files/patch-setup.py
@@ -1,5 +1,31 @@
---- setup.py.old Wed Oct 5 00:05:48 2005
-+++ setup.py Wed Oct 5 02:47:23 2005
+--- setup.py Fri Aug 19 16:05:49 2005
++++ setup.py Sat Nov 5 13:13:31 2005
+@@ -25,19 +25,19 @@
+ INCDIR = [
+ "ode-0.5/include",
+ "/usr/include",
+- "/usr/local/include",
+- "/usr/X11R6/include",
++ "%%LOCALBASE%%/include",
++ "%%X11BASE%%/include",
+ "/usr/include/freetype2",
+- "/usr/local/include/freetype2",
++ "%%LOCALBASE%%/include/freetype2",
+ "/usr/include/cal3d",
+- "/usr/local/include/cal3d",
++ "%%LOCALBASE%%/include/cal3d",
+ "/sw/include", # For Mac OS X
+ ]
+ LIBDIR = [
+ "ode-0.5/lib",
+ "/usr/lib",
+- "/usr/local/lib",
+- "/usr/X11R6/lib",
++ "%%LOCALBASE%%/lib",
++ "%%X11BASE%%/lib",
+ "/sw/lib/", # For Mac OS X
+ ]
+
@@ -63,10 +63,10 @@
from config import *
OpenPOWER on IntegriCloud