openmw, revbump for tiff4, use system OSG (#11620)

This commit is contained in:
Schrijvers Luc
2025-01-08 20:25:21 +01:00
committed by GitHub
parent 9560f5c344
commit 0a0b86bf00
2 changed files with 16 additions and 107 deletions

View File

@@ -9,18 +9,12 @@ COPYRIGHT="2008-2021 OpenMW"
LICENSE="GNU GPL v3
MIT
Zlib"
REVISION="2"
REVISION="3"
SOURCE_URI="https://github.com/OpenMW/openmw/archive/refs/tags/openmw-$portVersion.tar.gz"
SOURCE_FILENAME="openmw-$portVersion.tar.gz"
CHECKSUM_SHA256="bd7f77e1527c2180e9b0dfcbe401d6fb48f24dbb37701dac7747697873d6edb4"
SOURCE_DIR="openmw-openmw-$portVersion"
osgVersion="3.6.5"
SOURCE_URI_2="https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-$osgVersion.tar.gz"
CHECKSUM_SHA256_2="aea196550f02974d6d09291c5d83b51ca6a03b3767e234a8c0e21322927d1e12"
SOURCE_DIR_2="OpenSceneGraph-OpenSceneGraph-$osgVersion"
PATCHES="openmw-$portVersion.patchset"
PATCHES_2="osg-$osgVersion.patchset"
ADDITIONAL_FILES="
openmw.rdef.in
haikuicons.zip
@@ -56,6 +50,17 @@ REQUIRES="
lib:liblz4$secondaryArchSuffix
lib:libMyGUIEngine$secondaryArchSuffix
lib:libopenal$secondaryArchSuffix
lib:libOpenThreads$secondaryArchSuffix
lib:libosg$secondaryArchSuffix
lib:libosgAnimation$secondaryArchSuffix
lib:libosgDB$secondaryArchSuffix
lib:libosgFX$secondaryArchSuffix
lib:libosgGA$secondaryArchSuffix
lib:libosgParticle$secondaryArchSuffix
lib:libosgShadow$secondaryArchSuffix
lib:libosgText$secondaryArchSuffix
lib:libosgUtil$secondaryArchSuffix
lib:libosgViewer$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
@@ -72,9 +77,9 @@ BUILD_REQUIRES="
devel:libavcodec$secondaryArchSuffix
devel:libavformat$secondaryArchSuffix
devel:libavutil$secondaryArchSuffix
devel:libboost_filesystem$secondaryArchSuffix >= 1.69.0
devel:libboost_system$secondaryArchSuffix >= 1.69.0
devel:libboost_program_options$secondaryArchSuffix >= 1.69.0
devel:libboost_filesystem$secondaryArchSuffix >= 1.83.0
devel:libboost_system$secondaryArchSuffix >= 1.83.0
devel:libboost_program_options$secondaryArchSuffix >= 1.83.0
devel:libBulletCollision$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libGL$secondaryArchSuffix
@@ -86,6 +91,7 @@ BUILD_REQUIRES="
devel:libMyGUIEngine$secondaryArchSuffix
devel:libopenal$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
devel:libosg$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
devel:libSDL2_2.0$secondaryArchSuffix
@@ -112,27 +118,6 @@ PATCH()
BUILD()
{
mkdir -p $sourceDir2/build
cd $sourceDir2/build
cmake .. \
-DCMAKE_INSTALL_PREFIX=$appsDir/OpenMW \
-DCMAKE_BUILD_TYPE=Release \
-DSDL2_INCLUDE_DIR=/system/$relativeIncludeDir/SDL2 \
-DBUILD_OSG_PLUGINS_BY_DEFAULT=OFF \
-DBUILD_OSG_PLUGIN_OSG=ON \
-DBUILD_OSG_PLUGIN_DDS=ON \
-DBUILD_OSG_PLUGIN_TGA=ON \
-DBUILD_OSG_PLUGIN_BMP=ON \
-DBUILD_OSG_PLUGIN_JPEG=ON \
-DBUILD_OSG_PLUGIN_PNG=ON \
-DBUILD_OSG_DEPRECATED_SERIALIZERS=OFF \
-DBUILD_OSG_APPLICATIONS=OFF \
-DOSG_GL3_AVAILABLE=OFF \
-DOSG_WINDOWING_SYSTEM=None
make $jobArgs
make install
export OSG_DIR=$appsDir/OpenMW
mkdir -p $sourceDir/build
cd $sourceDir/build
cmake .. \
@@ -153,8 +138,6 @@ BUILD()
INSTALL()
{
cd $sourceDir2/build
make install
cd $sourceDir/build
make install