mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
97 lines
2.5 KiB
Plaintext
97 lines
2.5 KiB
Plaintext
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
|
|
to include those shared libraries. libpng depends on libz, and libtiff depends \
|
|
on both libz and libjpeg.
|
|
"
|
|
HOMEPAGE="http://www.libsdl.org/projects/SDL_image"
|
|
SRC_URI="https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.0.tar.gz"
|
|
CHECKSUM_SHA256="b29815c73b17633baca9f07113e8ac476ae66412dec0d29a5045825c27a47234"
|
|
REVISION="3"
|
|
LICENSE="Zlib"
|
|
COPYRIGHT="1997-2013 Sam Lantinga"
|
|
|
|
ARCHITECTURES="x86"
|
|
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
|
# x86_gcc2 is fine as primary target architecture as long as we're building
|
|
# for a different secondary architecture.
|
|
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
|
fi
|
|
SECONDARY_ARCHITECTURES="x86 !x86_gcc2"
|
|
|
|
PROVIDES="
|
|
sdl2_image${secondaryArchSuffix} = $portVersion
|
|
lib:libSDL2_image_2.0${secondaryArchSuffix} = 0.0.0 compat >= 0
|
|
"
|
|
|
|
REQUIRES="
|
|
haiku${secondaryArchSuffix} >= $haikuVersion
|
|
lib:libSDL2_2.0${secondaryArchSuffix}
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:libpng$secondaryArchSuffix
|
|
lib:libstdc++$secondaryArchSuffix
|
|
lib:libtiff$secondaryArchSuffix
|
|
lib:libgif$secondaryArchSuffix
|
|
lib:libwebp$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
|
devel:libGL${secondaryArchSuffix}
|
|
devel:libSDL2${secondaryArchSuffix}
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libpng$secondaryArchSuffix
|
|
devel:libtiff$secondaryArchSuffix
|
|
devel:libgif$secondaryArchSuffix
|
|
devel:libwebp$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
cmd:libtoolize
|
|
cmd:aclocal
|
|
cmd:automake
|
|
cmd:autoconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
SOURCE_DIR="SDL2_image-$portVersion"
|
|
|
|
BUILD()
|
|
{
|
|
libtoolize --copy --force --install
|
|
aclocal --install -I acinclude
|
|
autoconf
|
|
runConfigure ./configure --with-x=no
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs libSDL2_image libSDL2_image-2.0
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
PROVIDES_devel="
|
|
sdl2_image${secondaryArchSuffix}_devel = ${portVersion}
|
|
devel:libSDL2_image_2.0$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
devel:libSDL2_image$secondaryArchSuffix
|
|
"
|
|
|
|
REQUIRES_devel="
|
|
sdl2_image$secondaryArchSuffix == $portVersion base
|
|
"
|