From efb524d53f2576172349440b30ceb6d87569f072 Mon Sep 17 00:00:00 2001 From: Maarten Gribnau Date: Sat, 21 Dec 2002 22:26:46 +0000 Subject: [PATCH] Rewired python for OSX. The Makefiles now use the Python that comes with OSX in /usr/local. mxTextTools is still disabled because of a link error. Maarten --- source/Makefile | 4 ++-- source/nan_definitions.mk | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/source/Makefile b/source/Makefile index 57a69704953..57452b17976 100644 --- a/source/Makefile +++ b/source/Makefile @@ -296,9 +296,9 @@ ifeq ($(OS),beos) endif ifeq ($(OS),darwin) - # Python PYLIB = $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a - # The only target right now... + # Next line would enable MxTextTools (for VRML2 import) but results in a link error + # PYLIB += $(NAN_MXTEXTTOOLS) BINTARGETS = blendercreator.app BINTARGETS += blenderpublisher.app BINTARGETS += blenderplayer.app diff --git a/source/nan_definitions.mk b/source/nan_definitions.mk index 6b49de0c029..6d640a1b908 100644 --- a/source/nan_definitions.mk +++ b/source/nan_definitions.mk @@ -108,14 +108,18 @@ all debug:: ifeq ($(OS),darwin) ID = $(shell whoami) HOST = $(shell hostname -s) - # MAART: override libraries locations to use fink installed libraries + # Override libraries locations to use fink installed libraries export NAN_OPENSSL = /sw export NAN_JPEG = /sw export NAN_PNG = /sw - export NAN_PYTHON = $(LCGDIR)/python - export NAN_PYTHON_VERSION = 2.2 export NAN_ODE = $(LCGDIR)/ode - endif + # Override common python settings so that the python that comes with + # OSX 10.2 in /usr/local/ is used. + export NAN_PYTHON = /usr/local + export NAN_PYTHON_VERSION = 2.2 + export NAN_PYTHON_BINARY = $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION) + export NAN_MXTEXTTOOLS = $(shell $(NAN_PYTHON_BINARY) -c 'import mx; print mx.__path__[0]')/TextTools/mxTextTools/mxTextTools.so + endif ifeq ($(OS),freebsd) ID = $(shell whoami) HOST = $(shell hostname -s)