Mercurial > mxe-octave
annotate src/openscenegraph.mk @ 2333:f653602a0500
Rebrand to new project name MXE
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Wed, 28 Mar 2012 15:46:58 +0200 |
parents | 0b602046f9dd |
children | f48c5b085a38 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2016
diff
changeset
|
1 # This file is part of MXE. |
714
29f1ba4559ae
point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents:
654
diff
changeset
|
2 # See doc/index.html for further information. |
647
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
3 |
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
4 # OpenSceneGraph |
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
5 PKG := openscenegraph |
884
32b20fee1d5d
upgrade package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
842
diff
changeset
|
6 $(PKG)_IGNORE := |
1955
e2a680ec2f33
update packags: ffmpeg libsamplerate openscenegraph
Mark Brand <mabrand@mabrand.nl>
parents:
1928
diff
changeset
|
7 $(PKG)_VERSION := 3.0.1 |
e2a680ec2f33
update packags: ffmpeg libsamplerate openscenegraph
Mark Brand <mabrand@mabrand.nl>
parents:
1928
diff
changeset
|
8 $(PKG)_CHECKSUM := 13c7e39f6d62047ad944d8d28a0f0eb60384ce33 |
647
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
9 $(PKG)_SUBDIR := OpenSceneGraph-$($(PKG)_VERSION) |
1499
9e587ca588dc
remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents:
1458
diff
changeset
|
10 $(PKG)_FILE := OpenSceneGraph-$($(PKG)_VERSION).zip |
647
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 $(PKG)_WEBSITE := http://www.openscenegraph.org/ |
1955
e2a680ec2f33
update packags: ffmpeg libsamplerate openscenegraph
Mark Brand <mabrand@mabrand.nl>
parents:
1928
diff
changeset
|
12 $(PKG)_URL := http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-$($(PKG)_VERSION)/source/$($(PKG)_FILE) |
1517
8aeb650b7ab7
provide alternative download location for OpenSceneGraph in case the main site is down
Volker Grabsch <vog@notjusthosting.com>
parents:
1499
diff
changeset
|
13 $(PKG)_URL_2 := http://distfiles.macports.org/OpenSceneGraph/$($(PKG)_FILE) |
2016
0b602046f9dd
package openscenegraph: add missing qt dependency
Mark Brand <mabrand@mabrand.nl>
parents:
1955
diff
changeset
|
14 $(PKG)_DEPS := gcc curl ffmpeg freetype gdal giflib jasper jpeg libpng openexr tiff xine-lib zlib dcmtk qt |
647
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 |
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 define $(PKG)_UPDATE |
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 wget -q -O- 'http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/tags?order=date&desc=1' | \ |
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 grep '<a ' | \ |
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 $(SED) -n 's,.*>OpenSceneGraph-\([0-9][^<]*\)<.*,\1,p' | \ |
842
6ed03d75a7ec
corrected regexes in exceptions rules of version recognition
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
20 grep -v '^2\.9\.' | \ |
647
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 head -1 |
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 endef |
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 |
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 define $(PKG)_BUILD |
1663
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1517
diff
changeset
|
25 cd '$(1)' && cmake . \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1517
diff
changeset
|
26 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1517
diff
changeset
|
27 -DCMAKE_CXX_FLAGS=-D__STDC_CONSTANT_MACROS \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1517
diff
changeset
|
28 -DCMAKE_HAVE_PTHREAD_H=OFF \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1517
diff
changeset
|
29 -DDYNAMIC_OPENTHREADS=OFF \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1517
diff
changeset
|
30 -DDYNAMIC_OPENSCENEGRAPH=OFF \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1517
diff
changeset
|
31 -DBUILD_OSG_APPLICATIONS=OFF \ |
921
6cab75a592f7
bugfix for package openscenegraph to work with GCC 4.5 (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
917
diff
changeset
|
32 -D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS_EXITCODE=1 |
1928
cfe3eba58dfd
update package openscenegraph
Mark Brand <mabrand@mabrand.nl>
parents:
1893
diff
changeset
|
33 $(MAKE) -C '$(1)' -j '$(JOBS)' install VERBOSE=1 |
647
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
34 endef |