diff options
author | Rashad Kanavath <rashad.kanavath@c-s.fr> | 2015-12-03 13:22:54 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2015-12-03 13:22:54 (GMT) |
commit | 8d05f73f95a3027c14bc870134bc2d888b307040 (patch) | |
tree | 95ceeacd43c3da436c16e8f40699ec53427e9bf1 /src/openthreads.mk | |
parent | b24fe6117a029980855ec490139ab0b5a7d78cd5 (diff) | |
download | mxe-8d05f73f95a3027c14bc870134bc2d888b307040.zip mxe-8d05f73f95a3027c14bc870134bc2d888b307040.tar.gz mxe-8d05f73f95a3027c14bc870134bc2d888b307040.tar.bz2 |
add package openthreads (using openscenegraph source)
Diffstat (limited to 'src/openthreads.mk')
-rw-r--r-- | src/openthreads.mk | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/openthreads.mk b/src/openthreads.mk new file mode 100644 index 0000000..167cec6 --- /dev/null +++ b/src/openthreads.mk @@ -0,0 +1,28 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := openthreads +$(PKG)_IGNORE = $(openscenegraph_IGNORE) +$(PKG)_VERSION = $(openscenegraph_VERSION) +$(PKG)_CHECKSUM = $(openscenegraph_CHECKSUM) +$(PKG)_SUBDIR = $(openscenegraph_SUBDIR) +$(PKG)_FILE = $(openscenegraph_FILE) +$(PKG)_URL = $(openscenegraph_URL) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + echo $openscenegraph_VERSION) +endef + +define $(PKG)_BUILD + mkdir '$(1).build' + cd '$(1).build' && '$(TARGET)-cmake' \ + -DBUILD_SHARED_LIBS=$(CMAKE_SHARED_BOOL) \ + -DCMAKE_VERBOSE_MAKEFILE=TRUE \ + -DPKG_CONFIG_EXECUTABLE='$(PREFIX)/bin/$(TARGET)-pkg-config' \ + -D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS_EXITCODE=1 \ + -D_OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED=1 \ + '$(1)' + + $(MAKE) -C '$(1).build' -j '$(JOBS)' install VERBOSE=1 +endef |