Mercurial > mxe-octave
comparison src/openscenegraph.mk @ 647:e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Wed, 20 Jan 2010 00:44:12 +0100 |
parents | |
children | d8483f351436 |
comparison
equal
deleted
inserted
replaced
646:43205e8dd3e1 | 647:e62e7f0d2650 |
---|---|
1 # This file is part of mingw-cross-env. | |
2 # See doc/index.html or doc/README for further information. | |
3 | |
4 # OpenSceneGraph | |
5 PKG := openscenegraph | |
6 $(PKG)_IGNORE := | |
7 $(PKG)_VERSION := 2.8.2 | |
8 $(PKG)_CHECKSUM := f2f0a3285a022640345a81f536459f37f3f38d01 | |
9 $(PKG)_SUBDIR := OpenSceneGraph-$($(PKG)_VERSION) | |
10 $(PKG)_FILE := $($(PKG)_SUBDIR).zip | |
11 $(PKG)_WEBSITE := http://www.openscenegraph.org/ | |
12 $(PKG)_URL := http://www.openscenegraph.org/downloads/stable_releases/$($(PKG)_SUBDIR)/source/$($(PKG)_FILE) | |
13 $(PKG)_DEPS := gcc curl giflib jpeg tiff libpng jasper openexr gdal freetype zlib | |
14 | |
15 define $(PKG)_UPDATE | |
16 wget -q -O- 'http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/tags?order=date&desc=1' | \ | |
17 grep '<a ' | \ | |
18 $(SED) -n 's,.*>OpenSceneGraph-\([0-9][^<]*\)<.*,\1,p' | \ | |
19 grep -v '2\.8\.' | \ | |
20 head -1 | |
21 endef | |
22 | |
23 define $(PKG)_BUILD | |
24 cd '$(1)' && cmake . \ | |
25 -DCMAKE_SYSTEM_NAME=Windows \ | |
26 -DCMAKE_FIND_ROOT_PATH='$(PREFIX)/$(TARGET)' \ | |
27 -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \ | |
28 -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \ | |
29 -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \ | |
30 -DCMAKE_C_COMPILER='$(PREFIX)/bin/$(TARGET)-gcc' \ | |
31 -DCMAKE_INCLUDE_PATH='$(PREFIX)/$(TARGET)/include' \ | |
32 -DCMAKE_LIB_PATH='$(PREFIX)/$(TARGET)/lib' \ | |
33 -DCMAKE_INSTALL_PREFIX='$(PREFIX)/$(TARGET)' \ | |
34 -DCMAKE_BUILD_TYPE=Release \ | |
35 -DDYNAMIC_OPENTHREADS=OFF \ | |
36 -DDYNAMIC_OPENSCENEGRAPH=OFF \ | |
37 -DBUILD_OSG_APPLICATIONS=OFF | |
38 $(MAKE) -C '$(1)' -j '$(JOBS)' install | |
39 endef |