Use the lang/python module.

No change in the generated package (except for the build time which
is compiled into the blender binary).

Building with python 2.6 (you can zap the MODPY_VERSION line for
trying it) also works, but I don't know how to use blender so I
keep it at 2.5 for now and leave testing to other people.

ok?

Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/blender/Makefile,v
retrieving revision 1.28
diff -u -p -r1.28 Makefile
--- Makefile    30 Aug 2010 21:24:15 -0000      1.28
+++ Makefile    12 Sep 2010 14:55:19 -0000
@@ -19,9 +19,9 @@ MASTER_SITES= http://download.blender.or
                http://mirror.cs.umn.edu/blender.org/source/ \
                http://public.planetmirror.com/pub/blender/source/
 
-PYTHON_VER=    2.5
+MODPY_VERSION= 2.5
 
-MODULES=       devel/scons
+MODULES=       devel/scons lang/python
 
 RUN_DEPENDS=   ::graphics/tiff
 BUILD_DEPENDS= ::graphics/tiff
@@ -29,7 +29,7 @@ LIB_DEPENDS=  png::graphics/png \
                jpeg::graphics/jpeg \
                GLEW::graphics/glew \
                SDL::devel/sdl \
-               
python${PYTHON_VER}:python->=${PYTHON_VER},<2.6:lang/python/${PYTHON_VER}
+               ${MODPY_LIB_DEPENDS}
 
 WANTLIB=       GL GLU X11 Xi c m pthread stdc++ util z
 
@@ -50,7 +50,7 @@ MODSCONS_ENV= CC=${CC} CXX=${CXX} C_WARN
                BF_BUILDDIR=${WRKBUILD} \
                BF_FANCY=0 \
                BF_QUIET=0 \
-               BF_PYTHON=${LOCALBASE} BF_PYTHON_VERSION=${PYTHON_VER} \
+               BF_PYTHON=${LOCALBASE} BF_PYTHON_VERSION=${MODPY_VERSION} \
                BF_GLEW=${LOCALBASE} \
                BF_GLEW_LIB=GLEW BF_GLEW_LIBPATH=${LOCALBASE}/lib \
                BF_JPEG=${LOCALBASE} \

Reply via email to