annotate src/openscenegraph.mk @ 3638:af91c561ff39

openscenegraph: allow cross compile to succeed * src/openscenegraph.mk: add -D_OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED_EXITCODE=0, build out of source, enable static/dynamic libs * src/openscenegraph-1-fixes.patch: new file * dist-files.mk: added openscenegraph-1-fixes.patch
author John Donoghue
date Wed, 02 Jul 2014 15:27:12 -0400
parents 4866edf6f9f3
children abef069ac1d3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
4866edf6f9f3 openscenegraph: update from mxe_devel
John Donoghue
parents: 3480
diff changeset
6 $(PKG)_VERSION := 3.2.0
4866edf6f9f3 openscenegraph: update from mxe_devel
John Donoghue
parents: 3480
diff changeset
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
4866edf6f9f3 openscenegraph: update from mxe_devel
John Donoghue
parents: 3480
diff changeset
10 $(PKG)_URL := http://www.openscenegraph.org/downloads/developer_releases/$($(PKG)_FILE)
4866edf6f9f3 openscenegraph: update from mxe_devel
John Donoghue
parents: 3480
diff changeset
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
4866edf6f9f3 openscenegraph: update from mxe_devel
John Donoghue
parents: 3480
diff changeset
20 $(WGET) -q -O- 'http://www.openscenegraph.org/downloads/developer_releases/?C=M;O=D' | \
4866edf6f9f3 openscenegraph: update from mxe_devel
John Donoghue
parents: 3480
diff changeset
21 $(SED) -n 's,.*OpenSceneGraph-\([0-9]*\.[0-9]*[02468]\.[^<]*\)\.zip.*,\1,p' | \
4866edf6f9f3 openscenegraph: update from mxe_devel
John Donoghue
parents: 3480
diff changeset
22 grep -v rc | \
4866edf6f9f3 openscenegraph: update from mxe_devel
John Donoghue
parents: 3480
diff changeset
23 $(SORT) -V | \
4866edf6f9f3 openscenegraph: update from mxe_devel
John Donoghue
parents: 3480
diff changeset
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
4866edf6f9f3 openscenegraph: update from mxe_devel
John Donoghue
parents: 3480
diff changeset
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
4866edf6f9f3 openscenegraph: update from mxe_devel
John Donoghue
parents: 3480
diff changeset
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
4866edf6f9f3 openscenegraph: update from mxe_devel
John Donoghue
parents: 3480
diff changeset
43