mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-24 17:18:51 +02:00
add SDL3_image version 3.2.4 (#12553)
This commit is contained in:
82
media-libs/sdl3_image/sdl3_image-3.2.4.recipe
Normal file
82
media-libs/sdl3_image/sdl3_image-3.2.4.recipe
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
SUMMARY="Simple Direct Media Layer Image Library"
|
||||||
|
DESCRIPTION="SDL_image is an image file loading library. It loads images as \
|
||||||
|
SDL surfaces, and supports the following formats: BMP, GIF, JPEG, LBM, PCX, \
|
||||||
|
PNG, PNM, TGA, TIFF, WEBP, XCF, XPM, XV"
|
||||||
|
HOMEPAGE="https://github.com/libsdl-org/SDL_image"
|
||||||
|
COPYRIGHT="1997-2025 Sam Lantinga"
|
||||||
|
LICENSE="Zlib"
|
||||||
|
REVISION="1"
|
||||||
|
SOURCE_URI="https://github.com/libsdl-org/SDL_image/archive/refs/tags/release-$portVersion.tar.gz"
|
||||||
|
CHECKSUM_SHA256="6a2f263e69d5cf0f218615e061f0d6cc1ae708e847ffe5372af98d5dd96bd037"
|
||||||
|
SOURCE_DIR="SDL_image-release-$portVersion"
|
||||||
|
|
||||||
|
ARCHITECTURES="all !x86_gcc2"
|
||||||
|
SECONDARY_ARCHITECTURES="x86"
|
||||||
|
|
||||||
|
libVersion="0.2.4"
|
||||||
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||||
|
|
||||||
|
PROVIDES="
|
||||||
|
sdl3_image$secondaryArchSuffix = $portVersion compat >= 3.0
|
||||||
|
lib:libSDL3_image$secondaryArchSuffix = $libVersionCompat
|
||||||
|
"
|
||||||
|
REQUIRES="
|
||||||
|
haiku${secondaryArchSuffix}
|
||||||
|
lib:libgif$secondaryArchSuffix
|
||||||
|
lib:libGL$secondaryArchSuffix
|
||||||
|
lib:libjpeg$secondaryArchSuffix
|
||||||
|
lib:libpng16$secondaryArchSuffix
|
||||||
|
lib:libSDL3$secondaryArchSuffix
|
||||||
|
lib:libtiff$secondaryArchSuffix
|
||||||
|
lib:libwebp$secondaryArchSuffix
|
||||||
|
lib:libz$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
|
||||||
|
PROVIDES_devel="
|
||||||
|
sdl3_image${secondaryArchSuffix}_devel = $portVersion compat >= 3.0
|
||||||
|
devel:libSDL3_image$secondaryArchSuffix = $libVersionCompat
|
||||||
|
"
|
||||||
|
REQUIRES_devel="
|
||||||
|
sdl3_image$secondaryArchSuffix == $portVersion base
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD_REQUIRES="
|
||||||
|
haiku${secondaryArchSuffix}_devel
|
||||||
|
devel:libgif$secondaryArchSuffix >= 7
|
||||||
|
devel:libjpeg$secondaryArchSuffix
|
||||||
|
devel:libpng16$secondaryArchSuffix
|
||||||
|
devel:libSDL3$secondaryArchSuffix
|
||||||
|
devel:libtiff$secondaryArchSuffix >= 6
|
||||||
|
devel:libwebp$secondaryArchSuffix
|
||||||
|
devel:libz$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
BUILD_PREREQUIRES="
|
||||||
|
cmd:cmake
|
||||||
|
cmd:gcc$secondaryArchSuffix
|
||||||
|
cmd:ld$secondaryArchSuffix
|
||||||
|
cmd:ninja
|
||||||
|
cmd:pkg_config$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD()
|
||||||
|
{
|
||||||
|
cmake . -Bbuild -GNinja $cmakeDirArgs \
|
||||||
|
-DBUILD_SHARED_LIBS=ON \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release
|
||||||
|
ninja -C build
|
||||||
|
}
|
||||||
|
|
||||||
|
INSTALL()
|
||||||
|
{
|
||||||
|
ninja -C build install
|
||||||
|
|
||||||
|
rm -rf $dataDir
|
||||||
|
|
||||||
|
prepareInstalledDevelLibs libSDL3_image
|
||||||
|
|
||||||
|
fixPkgconfig
|
||||||
|
|
||||||
|
packageEntries devel \
|
||||||
|
$developDir \
|
||||||
|
$libDir/cmake
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user