annotate src/openscenegraph.mk @ 5893:53a6c7df43f8

Mesa 3D: Update to version 21.1.8. * src/mesa.mk: Update version and checksum. * src/mesa-2-uninitialized.patch: Remove file. * dist-files.mk: Remove file from list.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 16 Sep 2021 22:37:45 +0200
parents b19fb3ed330c
children 3b2d0f95b4d4
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
4544
abef069ac1d3 update: updated more PKG_UPDATE macros
John D
parents: 3638
diff changeset
20 $(WGET) -q -O- 'http://www.openscenegraph.org/index.php/download-section/stable-releases' | \
4618
de2eedecd6ba update broken PKG_UPDATE rules, handle missing update rules
John Donoghue
parents: 4544
diff changeset
21 $(SED) -n 's,.*OpenSceneGraph/tree/OpenSceneGraph-\([0-9]*\.[0-9]*[02468]\.[^<]*\)">.*,\1,p' | \
3637
4866edf6f9f3 openscenegraph: update from mxe_devel
John Donoghue
parents: 3480
diff changeset
22 $(SORT) -V | \
4866edf6f9f3 openscenegraph: update from mxe_devel
John Donoghue
parents: 3480
diff changeset
23 tail -1
647
e62e7f0d2650 new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 endef
e62e7f0d2650 new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25
e62e7f0d2650 new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 define $(PKG)_BUILD
3638
af91c561ff39 openscenegraph: allow cross compile to succeed
John Donoghue
parents: 3637
diff changeset
27 mkdir -p '$(1)/.build'
af91c561ff39 openscenegraph: allow cross compile to succeed
John Donoghue
parents: 3637
diff changeset
28 cd '$(1)/.build' && cmake .. \
5541
d862fd40cc42 Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4618
diff changeset
29 $(CMAKE_CCACHE_FLAGS) \
5571
b19fb3ed330c use cmake command line to set build shared/static options (bug #59373)
John W. Eaton <jwe@octave.org>
parents: 5541
diff changeset
30 $(CMAKE_BUILD_SHARED_OR_STATIC) \
1663
9577f70222f8 add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents: 1517
diff changeset
31 -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
32 -DCMAKE_CXX_FLAGS=-D__STDC_CONSTANT_MACROS \
3638
af91c561ff39 openscenegraph: allow cross compile to succeed
John Donoghue
parents: 3637
diff changeset
33 -DCMAKE_HAVE_PTHREAD_H=ON \
3637
4866edf6f9f3 openscenegraph: update from mxe_devel
John Donoghue
parents: 3480
diff changeset
34 -DPKG_CONFIG_EXECUTABLE='$(MXE_PKG_CONFIG)' \
3638
af91c561ff39 openscenegraph: allow cross compile to succeed
John Donoghue
parents: 3637
diff changeset
35 -DDYNAMIC_OPENTHREADS=$($(PKG)_SHARED) \
af91c561ff39 openscenegraph: allow cross compile to succeed
John Donoghue
parents: 3637
diff changeset
36 -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
37 -DBUILD_OSG_APPLICATIONS=OFF \
3637
4866edf6f9f3 openscenegraph: update from mxe_devel
John Donoghue
parents: 3480
diff changeset
38 -DPOPPLER_HAS_CAIRO_EXITCODE=0 \
3638
af91c561ff39 openscenegraph: allow cross compile to succeed
John Donoghue
parents: 3637
diff changeset
39 -D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS_EXITCODE=1 \
af91c561ff39 openscenegraph: allow cross compile to succeed
John Donoghue
parents: 3637
diff changeset
40 -D_OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED_EXITCODE=0
af91c561ff39 openscenegraph: allow cross compile to succeed
John Donoghue
parents: 3637
diff changeset
41 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' VERBOSE=1
af91c561ff39 openscenegraph: allow cross compile to succeed
John Donoghue
parents: 3637
diff changeset
42 $(MAKE) -C '$(1)/.build' -j 1 install
647
e62e7f0d2650 new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
43 endef
3637
4866edf6f9f3 openscenegraph: update from mxe_devel
John Donoghue
parents: 3480
diff changeset
44