Index: head/graphics/py-soya3d/Makefile =================================================================== --- head/graphics/py-soya3d/Makefile (revision 147440) +++ head/graphics/py-soya3d/Makefile (revision 147441) @@ -1,62 +1,67 @@ # New ports collection makefile for: py-soya3d # Date created: 2005-10-04 # Whom: Jose Alonso Cardenas Marquez # # $FreeBSD$ # PORTNAME= soya3d PORTVERSION= 0.10.1 CATEGORIES= graphics MASTER_SITES= http://download.gna.org/soya/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= Soya-${PORTVERSION} DISTFILES= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= acardenas@bsd.org.pe COMMENT= Very high level 3D engine for Python BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging \ ${PYTHON_SITELIBDIR}/_openal.so:${PORTSDIR}/audio/py-openal \ ${PYTHON_SITELIBDIR}/pysdl_mixer/sdl_mixer.so:${PORTSDIR}/audio/py-sdl_mixer \ pyrexc:${PORTSDIR}/devel/pyrex LIB_DEPENDS= cal3d.11:${PORTSDIR}/graphics/cal3d \ GLEW.1:${PORTSDIR}/graphics/glew \ freetype.9:${PORTSDIR}/print/freetype2 RUN_DEPENDS= ${PYTHON_SITELIBDIR}/editobj/editor.py:${PORTSDIR}/graphics/py-editobj \ ${PYTHON_SITELIBDIR}/tofu/client.py:${PORTSDIR}/net/py-tofu USE_BZIP2= yes USE_PYTHON= yes USE_PYDISTUTILS= yes USE_GL= yes USE_GMAKE= yes +USE_REINPLACE= yes MANDIR= ${WRKDIR}/${DISTNAME}/manpage/man1 MAN1= soya_editor.1 INSTALL_DIR= ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} .if !defined(NOPORTDOCS) DISTFILES+= SoyaTutorial-${PORTVERSION}${EXTRACT_SUFX} .endif .include .if ${ARCH} == "amd64" 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} .if !defined(NOPORTDOCS) @${INSTALL_DIR} ${DOCSDIR} @${CP} -R ${WRKDIR}/SoyaTutorial-${PORTVERSION}/doc/* ${DOCSDIR} @${FIND} ${EXAMPLESDIR}/* -type f -print0 | \ ${XARGS} -0 ${CHMOD} ${SHAREMODE} .for f in ${MAN1} ${INSTALL_MAN} ${MANDIR}/${f} ${PREFIX}/man/man1 .endfor .endif .include Property changes on: head/graphics/py-soya3d/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property Index: head/graphics/py-soya3d/files/patch-setup.py =================================================================== --- head/graphics/py-soya3d/files/patch-setup.py (revision 147440) +++ head/graphics/py-soya3d/files/patch-setup.py (revision 147441) @@ -1,34 +1,60 @@ ---- 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 * if sys.platform[:3] == "win": - LIBS = ["m", "glew32", "SDL", "SDL_mixer", "freetype", "cal3d", "stdc++"] + LIBS = ["m", "glew32", "SDL-1.1", "SDL_mixer", "freetype", "cal3d", "stdc++"] else: #LIBS = ["m", "GLEW", "GL", "GLU", "SDL", "SDL_mixer", "freetype", "cal3d", "stdc++"] - LIBS = ["m", "GLEW", "SDL", "freetype", "cal3d", "stdc++"] + LIBS = ["m", "GLEW", "SDL-1.1", "freetype", "cal3d", "stdc++"] SOYA_PYREX_SOURCES = ["_soya.pyx", "matrix.c", "chunk.c" ] SOYA_C_SOURCES = ["_soya.c" , "matrix.c", "chunk.c" ] @@ -97,14 +97,14 @@ print "ODE and OPCODE have already been compiled; if you want to recompile them do: cd %s ; make clean" % ODE_DIR else: print "Building ODE and OPCODE from %s" % ODE_DIR - do("cd %s ; make clean" % ODE_DIR) - do("cd %s ; make configure" % ODE_DIR) - do("cd %s ; make" % ODE_DIR) + do("cd %s ; gmake clean" % ODE_DIR) + do("cd %s ; gmake configure" % ODE_DIR) + do("cd %s ; gmake" % ODE_DIR) print "ODE and OPCODE built successfully !" elif "sdist" in sys.argv: # Clean ODE, to remove configuration files and binaries - do("cd %s ; make clean" % ODE_DIR) + do("cd %s ; gmake clean" % ODE_DIR) if HAVE_PYREX: Property changes on: head/graphics/py-soya3d/files/patch-setup.py ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property