mirror of https://git.wownero.com/dsc/mxe.git
add package openthreads (using openscenegraph source)
This commit is contained in:
parent
b24fe6117a
commit
8d05f73f95
|
@ -2054,6 +2054,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
|
|||
<td class="package">openssl</td>
|
||||
<td class="website"><a href="https://www.openssl.org/">openssl</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="package">openthreads</td>
|
||||
<td class="website"><a href="http://www.openscenegraph.org/">OpenThreads</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="package">opus</td>
|
||||
<td class="website"><a href="http://opus-codec.org/">opus</a></td>
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
diff -burN OpenSceneGraph-3.4.0.orig/CMakeLists.txt OpenSceneGraph-3.4.0/CMakeLists.txt
|
||||
--- OpenSceneGraph-3.4.0.orig/CMakeLists.txt 2015-08-12 08:38:59.000000000 +0200
|
||||
+++ OpenSceneGraph-3.4.0/CMakeLists.txt 2015-12-02 16:42:16.565976939 +0100
|
||||
@@ -1046,16 +1046,7 @@
|
||||
|
||||
|
||||
# OSG Core
|
||||
-ADD_SUBDIRECTORY(src)
|
||||
-
|
||||
-IF (BUILD_OSG_APPLICATIONS AND NOT ANDROID)
|
||||
- ADD_SUBDIRECTORY(applications)
|
||||
-ENDIF()
|
||||
-
|
||||
-IF (BUILD_OSG_EXAMPLES)
|
||||
- ADD_SUBDIRECTORY(examples)
|
||||
-ENDIF()
|
||||
-
|
||||
+ADD_SUBDIRECTORY(src/OpenThreads)
|
||||
|
||||
IF(APPLE AND NOT ANDROID)
|
||||
|
||||
@@ -1251,24 +1242,7 @@
|
||||
|
||||
# Generate pkg-config configuration files
|
||||
|
||||
-SET(PKGCONFIG_FILES
|
||||
- openscenegraph
|
||||
- openscenegraph-osg
|
||||
- openscenegraph-osgDB
|
||||
- openscenegraph-osgFX
|
||||
- openscenegraph-osgGA
|
||||
- openscenegraph-osgParticle
|
||||
- openscenegraph-osgSim
|
||||
- openscenegraph-osgText
|
||||
- openscenegraph-osgUtil
|
||||
- openscenegraph-osgTerrain
|
||||
- openscenegraph-osgManipulator
|
||||
- openscenegraph-osgViewer
|
||||
- openscenegraph-osgWidget
|
||||
- openscenegraph-osgShadow
|
||||
- openscenegraph-osgAnimation
|
||||
- openscenegraph-osgVolume
|
||||
-)
|
||||
+SET(PKGCONFIG_FILES)
|
||||
|
||||
IF(QT4_FOUND OR Qt5Widgets_FOUND )
|
||||
SET(PKGCONFIG_FILES ${PKGCONFIG_FILES} openscenegraph-osgQt)
|
|
@ -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
|
Loading…
Reference in New Issue