From 88e8645046169a1e06affa6b7183b246f93691b4 Mon Sep 17 00:00:00 2001 From: acm Date: Mon, 21 Aug 2006 16:09:18 +0000 Subject: - Fix build with recent graphics/cal3d - Fix linking problem with openal lib Approved by: garga (mentor) --- graphics/py-soya3d/Makefile | 3 ++- graphics/py-soya3d/files/patch-setup.py | 43 ++++++++++++--------------------- 2 files changed, 17 insertions(+), 29 deletions(-) (limited to 'graphics') diff --git a/graphics/py-soya3d/Makefile b/graphics/py-soya3d/Makefile index d71f3a1..7672cee 100644 --- a/graphics/py-soya3d/Makefile +++ b/graphics/py-soya3d/Makefile @@ -7,6 +7,7 @@ PORTNAME= soya3d PORTVERSION= 0.12 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= http://download.gna.org/soya/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -21,7 +22,7 @@ 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 \ +LIB_DEPENDS= cal3d.12:${PORTSDIR}/graphics/cal3d \ GLEW.1:${PORTSDIR}/graphics/glew \ freetype.9:${PORTSDIR}/print/freetype2 RUN_DEPENDS= ${PYTHON_SITELIBDIR}/editobj/editor.py:${PORTSDIR}/graphics/py-editobj \ diff --git a/graphics/py-soya3d/files/patch-setup.py b/graphics/py-soya3d/files/patch-setup.py index a0afced..70e1237 100644 --- a/graphics/py-soya3d/files/patch-setup.py +++ b/graphics/py-soya3d/files/patch-setup.py @@ -1,34 +1,13 @@ ---- setup.py.orig Tue Jul 18 15:14:24 2006 -+++ setup.py Thu Jul 27 20:21:36 2006 -@@ -32,21 +32,22 @@ - INCDIR = [ - "ode-0.5/include", - "/usr/include", -- "/usr/local/include", -- "/usr/X11R6/include", -+ "%%LOCALBASE%%/include", -+ "%%X11BASE%%/include", +--- setup.py Mon Aug 21 00:22:53 2006 ++++ setup.py Mon Aug 21 00:24:52 2006 +@@ -37,6 +37,7 @@ "/usr/include/freetype2", -- "/usr/local/include/freetype2", -+ "%%LOCALBASE%%/include/freetype2", + "/usr/local/include/freetype2", "/usr/include/cal3d", -- "/usr/local/include/cal3d", -+ "%%LOCALBASE%%/include/SDL11", -+ "%%LOCALBASE%%/include/cal3d", ++ "/usr/local/include/SDL11", + "/usr/local/include/cal3d", "/sw/include", # For Mac OS X "fink" "/opt/local/include", # For Mac OS X "darwin port" - ] - LIBDIR = [ - "ode-0.5/lib", - "/usr/lib", -- "/usr/local/lib", -+ "%%LOCALBASE%%/lib", - "/opt/local/lib", # For Mac OS X "darwin port" -- "/usr/X11R6/lib", -+ "%%X11BASE%%/lib", - "/sw/lib/", # For Mac OS X - ] - @@ -80,7 +81,7 @@ LIBS = ["m", "glew32", "SDL", "freetype", "cal3d", "stdc++"] else: @@ -38,7 +17,15 @@ SOYA_PYREX_SOURCES = ["_soya.pyx", "matrix.c", "chunk.c" ] SOYA_C_SOURCES = ["_soya.c" , "matrix.c", "chunk.c" ] -@@ -133,14 +134,14 @@ +@@ -99,6 +100,7 @@ + if USE_OPENAL: + print "Sound support (with OpenAL) enabled..." + LIBS.append("openal") ++ LIBS.append("alut") + CONFIG_PXD_FILE.write("""include "sound/al.pxd"\n""") + CONFIG_PYX_FILE.write("""include "sound/sound.pyx"\n""") + else: +@@ -133,14 +135,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 -- cgit v1.1