mxe/src/openscenegraph.mk

31 lines
1.2 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
PKG := openscenegraph
$(PKG)_IGNORE :=
$(PKG)_CHECKSUM := e1b80206572d681fe624b4c8076674aa5efd6b29
$(PKG)_SUBDIR := OpenSceneGraph-$($(PKG)_VERSION)
$(PKG)_FILE := OpenSceneGraph-$($(PKG)_VERSION).zip
$(PKG)_URL := http://www.openscenegraph.org/downloads/developer_releases/$($(PKG)_FILE)
2013-04-22 08:40:49 +01:00
$(PKG)_DEPS := gcc boost curl dcmtk ffmpeg freetype gdal giflib gta jasper jpeg libpng openal openexr poppler qt tiff xine-lib zlib
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.openscenegraph.org/downloads/developer_releases/?C=M;O=D' | \
$(SED) -n 's,.*OpenSceneGraph-\([0-9][^<]*\)\.zip.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && cmake . \
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
-DCMAKE_CXX_FLAGS=-D__STDC_CONSTANT_MACROS \
-DCMAKE_HAVE_PTHREAD_H=OFF \
-DPKG_CONFIG_EXECUTABLE='$(PREFIX)/bin/$(TARGET)-pkg-config' \
-DDYNAMIC_OPENTHREADS=OFF \
-DDYNAMIC_OPENSCENEGRAPH=OFF \
-DBUILD_OSG_APPLICATIONS=OFF \
-DPOPPLER_HAS_CAIRO_EXITCODE=0 \
-D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS_EXITCODE=1
2011-07-10 21:38:36 +01:00
$(MAKE) -C '$(1)' -j '$(JOBS)' install VERBOSE=1
endef