summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authormnag <mnag@FreeBSD.org>2005-11-06 14:01:12 +0000
committermnag <mnag@FreeBSD.org>2005-11-06 14:01:12 +0000
commita914a14c64c42d65d56c792824f1e4732b0800f4 (patch)
tree5485b9ab3c53568690652ebc4dfc171f3f4fc3a0 /graphics
parentc38ae0ac136a0e165a03a9b7edf033abba36c643 (diff)
downloadFreeBSD-ports-a914a14c64c42d65d56c792824f1e4732b0800f4.zip
FreeBSD-ports-a914a14c64c42d65d56c792824f1e4732b0800f4.tar.gz
Respect LOCALBASE and X11BASE
PR: 88532 Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe> (maintainer)
Diffstat (limited to 'graphics')
-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