Mercurial > mxe-octave
annotate src/openscenegraph.mk @ 4618:de2eedecd6ba
update broken PKG_UPDATE rules, handle missing update rules
* Makefile.in: add handling for packages with no update rule
* src/gtk2.mk, src/gtk3.mk, src/libvpx.mk, src/taglib.mk,
src/hunspell.mk, src/vala.mk : use github tags for version info
* src/llvm.mk: add '?' to update url
* src/openscenegraph.mk: update SED rule for version extraction
* src/pthread-stubs.mk, src/qt5.mk, src/renderproto.mk,
src/sm.mk, src/s2tc.mk, src/util-macros.mk: added dummy PKG_UPDATE rule
* src/qscintilla.mk: change search name for version extraction
* src/qtbase.mk: use short pkg version in update path
* src/suitesparse.mk: update change in main url/version url
* src/tre.mk: update download page link
* src/vmime.mk: update download and update url
* src/wget.mk, src/xapian-core.mk: update url, sed rule
* src/wt.mk: update to use github download/update
* src/src-msys-libcrypt.mk: update sed rule
author | John Donoghue |
---|---|
date | Fri, 09 Mar 2018 11:46:42 -0500 |
parents | abef069ac1d3 |
children | d862fd40cc42 |
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 |
4544 | 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 | 22 $(SORT) -V | \ |
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 .. \ |
1663
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1517
diff
changeset
|
29 -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
|
30 -DCMAKE_CXX_FLAGS=-D__STDC_CONSTANT_MACROS \ |
3638
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
31 -DCMAKE_HAVE_PTHREAD_H=ON \ |
3637 | 32 -DPKG_CONFIG_EXECUTABLE='$(MXE_PKG_CONFIG)' \ |
3638
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
33 -DDYNAMIC_OPENTHREADS=$($(PKG)_SHARED) \ |
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
34 -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
|
35 -DBUILD_OSG_APPLICATIONS=OFF \ |
3637 | 36 -DPOPPLER_HAS_CAIRO_EXITCODE=0 \ |
3638
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
37 -D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS_EXITCODE=1 \ |
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
38 -D_OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED_EXITCODE=0 |
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
39 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' VERBOSE=1 |
af91c561ff39
openscenegraph: allow cross compile to succeed
John Donoghue
parents:
3637
diff
changeset
|
40 $(MAKE) -C '$(1)/.build' -j 1 install |
647
e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
41 endef |
3637 | 42 |