Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Lambermont <hans@lambermont.dyndns.org>2003-01-04 23:20:54 +0300
committerHans Lambermont <hans@lambermont.dyndns.org>2003-01-04 23:20:54 +0300
commit080dd299d6122fd2231450c87c4ab921e34e1096 (patch)
treebeec9127e137eb2972b7d819c86f1caf91d92b27
parent8dcdf3bf0b9ce00dfb85550fff643f32026e8e05 (diff)
- use ODE in lib/ for FreeBSD
- use default python library path - remove obsolete SSR comments
-rw-r--r--extern/ode/dist/FreeBSD-patch20
-rw-r--r--source/Makefile17
-rw-r--r--source/gameengine/Physics/BlOde/Makefile2
-rw-r--r--source/nan_definitions.mk6
4 files changed, 29 insertions, 16 deletions
diff --git a/extern/ode/dist/FreeBSD-patch b/extern/ode/dist/FreeBSD-patch
new file mode 100644
index 00000000000..c1a94ae62c3
--- /dev/null
+++ b/extern/ode/dist/FreeBSD-patch
@@ -0,0 +1,20 @@
+diff -u -w -r1.2 Makefile
+--- Makefile 4 Nov 2002 21:55:48 -0000 1.2
++++ Makefile 4 Jan 2003 20:18:18 -0000
+@@ -243,13 +243,13 @@
+ -$(DEL_CMD) $(ODE_OBJECTS) $(ODE_TEST_EXE) $(ODE_LIB) $(DRAWSTUFF_OBJECTS) $(DRAWSTUFF_TEST_EXE) $(DRAWSTUFF_LIB) ode/test/*$(OBJ) drawstuff/dstest/*$(OBJ) $(CONFIGURATOR_EXE) $(CONFIG_H)
+
+ %$(OBJ): %.c
+- $(CC) $(C_FLAGS) $(C_INC)$(INCPATH) $(DEFINES) $(C_OPT)1 $(C_OUT)$@ $<
++ $(CC) $(C_FLAGS) $(C_INC)$(INCPATH) -I/usr/X11R6/include $(DEFINES) $(C_OPT)1 $(C_OUT)$@ $<
+
+ %$(OBJ): %.cpp
+- $(CC) $(C_FLAGS) $(C_INC)$(INCPATH) $(DEFINES) $(C_OPT)$(OPT) $(C_OUT)$@ $<
++ $(CC) $(C_FLAGS) $(C_INC)$(INCPATH) -I/usr/X11R6/include $(DEFINES) $(C_OPT)$(OPT) $(C_OUT)$@ $<
+
+ %.exe: %$(OBJ)
+- $(CC) $(C_EXEOUT)$@ $< $(ODE_LIB) $(DRAWSTUFF_LIB) $(RESOURCE_FILE) $(LINK_OPENGL) $(LINK_MATH)
++ $(CC) $(C_EXEOUT)$@ $< $(ODE_LIB) $(DRAWSTUFF_LIB) $(RESOURCE_FILE) $(LINK_OPENGL) $(LINK_MATH) -lXext
+
+ # windows specific rules
+
diff --git a/source/Makefile b/source/Makefile
index 37250a8fc9a..64ffcf26903 100644
--- a/source/Makefile
+++ b/source/Makefile
@@ -39,7 +39,7 @@ endif
include nan_definitions.mk
DIRS = creator blender kernel gameengine
-ifneq ($(OS),darwin)
+ifneq ($(OS),$(findstring $(OS), "darwin freebsd"))
DIRS += ode
endif
@@ -47,19 +47,6 @@ ifeq ($(OS),windows)
DIRS += icons
endif
-# Commented out by mein this is the moble phone stuff.
-#ifeq ($(OS),solaris)
-# ifeq ($(CPU),sparc)
-# DIRS += ssr
-# endif
-#endif
-#
-#ifeq ($(OS),freebsd)
-# ifeq ($(OS_VERSION),4.5)
-# DIRS += ssr
-# endif
-#endif
-
########## buildinfo kludge ###################
CPPFLAGS += -I../Physics/common
CPPFLAGS += -I../Physics/Dummy
@@ -316,7 +303,7 @@ ifeq ($(OS),freebsd)
BINTARGETS += blenderssr
endif
endif
- PYLIB = $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
+ PYLIB = /usr/local/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
PYLIB += $(NAN_MXTEXTTOOLS)
endif
diff --git a/source/gameengine/Physics/BlOde/Makefile b/source/gameengine/Physics/BlOde/Makefile
index 99e577be06b..fef57dfbcfa 100644
--- a/source/gameengine/Physics/BlOde/Makefile
+++ b/source/gameengine/Physics/BlOde/Makefile
@@ -52,4 +52,4 @@ CPPFLAGS += -I$(NAN_GUARDEDALLOC)/include
CPPFLAGS += -I../../Physics/common
CPPFLAGS += -I../../Physics/Dummy
# nlin: fix this, should put in NAN_ODE dir
-CPPFLAGS += -I./ode/ode/include
+#CPPFLAGS += -I./ode/ode/include
diff --git a/source/nan_definitions.mk b/source/nan_definitions.mk
index 0f489be7a41..8c93cf07813 100644
--- a/source/nan_definitions.mk
+++ b/source/nan_definitions.mk
@@ -100,7 +100,13 @@ all debug::
export NAN_SOLID ?= $(SRCHOME)/sumo/SOLID-3.0
export NAN_SUMO ?= $(SRCHOME)/gameengine/Physics/Sumo
export NAN_FUZZICS ?= $(SRCHOME)/gameengine/Physics/Sumo/Fuzzics
+
+ ifeq ($(OS),freebsd)
+ export NAN_ODE ?= $(LCGDIR)/ode
+ else
export NAN_ODE ?= $(SRCHOME)/ode
+ endif
+
ifeq ($(OS),freebsd)
export NAN_OPENSSL ?= /usr
else