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-12 02:20:10 +0300
committerHans Lambermont <hans@lambermont.dyndns.org>2003-01-12 02:20:10 +0300
commit80acb0412478a6705f7a3f364acd34c2045a34bf (patch)
tree78da807dea1fda279ff915b17150c1c3b8b152bf /extern/ode/Makefile
parenta1a8edffeb418a736c7eb7beaf16564774504030 (diff)
Enable automated build and install runs on FreeBSD for ODE.
ODE does not build on FreeBSD out of the box, so an automated patchfile is included as well. The 'clean' target reverses the patches that were done by 'all'.
Diffstat (limited to 'extern/ode/Makefile')
-rw-r--r--extern/ode/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/extern/ode/Makefile b/extern/ode/Makefile
index 9a0f6cbc4a4..5e33148ec3e 100644
--- a/extern/ode/Makefile
+++ b/extern/ode/Makefile
@@ -35,12 +35,16 @@ DISTDIR = dist
CP = ../../intern/tools/cpifdiff.sh
all:
- ifeq ($(OS),$(findstring $(OS), "linux"))
+ ifeq ($(OS),freebsd)
+ (grep FreeBSD $(DISTDIR)/Makefile >/dev/null ; \
+ [ $$? -eq 0 ] || patch < patchfile.FreeBSD )
+ endif
+ ifeq ($(OS),$(findstring $(OS), "freebsd linux"))
$(MAKE) -C $(DISTDIR)
endif
-install:
- ifeq ($(OS),$(findstring $(OS), "linux"))
+install: all
+ ifeq ($(OS),$(findstring $(OS), "freebsd linux"))
@echo "====> $(MAKE) $@ in $(SOURCEDIR)"
[ -d $(LCGDIR) ] || mkdir $(LCGDIR)
[ -d $(NAN_ODE) ] || mkdir $(NAN_ODE)
@@ -58,7 +62,11 @@ install:
endif
clean:
- ifeq ($(OS),$(findstring $(OS), "linux"))
+ ifeq ($(OS),$(findstring $(OS), "freebsd linux"))
[ ! -f dist/Makefile ] || $(MAKE) -C dist clean
endif
+ ifeq ($(OS),freebsd)
+ (grep FreeBSD $(DISTDIR)/Makefile >/dev/null ; \
+ [ $$? -ne 0 ] || patch -R < patchfile.FreeBSD )
+ endif