Mercurial > mxe-octave
annotate src/openscenegraph.mk @ 3987:0d529f3f439d
of-control: update to v2.8.3
* src/of-control.mk: update version, checksum
* src/build_packages.m: update control version
author | John Donoghue |
---|---|
date | Mon, 06 Jul 2015 11:52:01 -0400 |
parents | af91c561ff39 |
children | abef069ac1d3 |
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. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See 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 PKG := openscenegraph |
884
32b20fee1d5d
upgrade package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
842
diff
changeset
|
5 $(PKG)_IGNORE := |
3637 | 6 $(PKG)_VERSION := 3.2.0 |
7 $(PKG)_CHECKSUM := c20891862b5876983d180fc4a3d3cfb2b4a3375c | |
647
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
8 $(PKG)_SUBDIR := OpenSceneGraph-$($(PKG)_VERSION) |
1499
9e587ca588dc
remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents:
1458
diff
changeset
|
9 $(PKG)_FILE := OpenSceneGraph-$($(PKG)_VERSION).zip |
3637 | 10 $(PKG)_URL := http://www.openscenegraph.org/downloads/developer_releases/$($(PKG)_FILE) |
11 $(PKG)_DEPS := boost curl dcmtk ffmpeg freetype gdal giflib gta jasper jpeg libpng openal openexr poppler qt tiff xine-lib zlib | |
647
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 |
3638
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
13 ifeq ($(BUILD_SHARED),yes) |
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
14 $(PKG)_SHARED := ON |
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
15 else |
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
16 $(PKG)_SHARED := OFF |
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
17 endif |
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
18 |
647
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 define $(PKG)_UPDATE |
3637 | 20 $(WGET) -q -O- 'http://www.openscenegraph.org/downloads/developer_releases/?C=M;O=D' | \ |
21 $(SED) -n 's,.*OpenSceneGraph-\([0-9]*\.[0-9]*[02468]\.[^<]*\)\.zip.*,\1,p' | \ | |
22 grep -v rc | \ | |
23 $(SORT) -V | \ | |
24 tail -1 | |
647
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 endef |
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 |
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 define $(PKG)_BUILD |
3638
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
28 mkdir -p '$(1)/.build' |
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
29 cd '$(1)/.build' && cmake .. \ |
1663
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1517
diff
changeset
|
30 -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
|
31 -DCMAKE_CXX_FLAGS=-D__STDC_CONSTANT_MACROS \ |
3638
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
32 -DCMAKE_HAVE_PTHREAD_H=ON \ |
3637 | 33 -DPKG_CONFIG_EXECUTABLE='$(MXE_PKG_CONFIG)' \ |
3638
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
34 -DDYNAMIC_OPENTHREADS=$($(PKG)_SHARED) \ |
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
35 -DDYNAMIC_OPENSCENEGRAPH=$($(PKG)_SHARED) \ |
1663
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1517
diff
changeset
|
36 -DBUILD_OSG_APPLICATIONS=OFF \ |
3637 | 37 -DPOPPLER_HAS_CAIRO_EXITCODE=0 \ |
3638
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
38 -D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS_EXITCODE=1 \ |
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
39 -D_OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED_EXITCODE=0 |
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
40 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' VERBOSE=1 |
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
41 $(MAKE) -C '$(1)/.build' -j 1 install |
647
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
42 endef |
3637 | 43 |