mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
91 lines
2.5 KiB
Bash
91 lines
2.5 KiB
Bash
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="https://www.libsdl.org/projects/SDL_image"
|
|
COPYRIGHT="1997-2013 Sam Lantinga"
|
|
LICENSE="Zlib"
|
|
REVISION="4"
|
|
SOURCE_URI="https://www.libsdl.org/projects/SDL_image/release/SDL2_image-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="3a3eafbceea5125c04be585373bfd8b3a18f259bd7eae3efc4e6d8e60e0d7f64"
|
|
SOURCE_DIR="SDL2_image-$portVersion"
|
|
|
|
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
|
|
|
|
PROVIDES="
|
|
sdl2_image${secondaryArchSuffix} = $portVersion compat >= 2
|
|
lib:libSDL2_image${secondaryArchSuffix} = $portVersion compat >= 2
|
|
lib:libSDL2_image_2.0${secondaryArchSuffix} = 0.0.1 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku${secondaryArchSuffix}
|
|
lib:libSDL2_2.0${secondaryArchSuffix}
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
lib:libtiff$secondaryArchSuffix
|
|
lib:libgif$secondaryArchSuffix
|
|
lib:libwebp$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
sdl2_image${secondaryArchSuffix}_devel = $portVersion compat >= 2
|
|
devel:libSDL2_image_2.0$secondaryArchSuffix = 0.0.1 compat >= 0
|
|
devel:libSDL2_image$secondaryArchSuffix = $portVersion compat >= 2
|
|
"
|
|
REQUIRES_devel="
|
|
sdl2_image$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libsdl2${secondaryArchSuffix}
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:libtiff$secondaryArchSuffix
|
|
devel:libgif$secondaryArchSuffix
|
|
devel:libwebp$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:aclocal_1.13
|
|
cmd:automake_1.13
|
|
cmd:autoconf
|
|
cmd:dos2unix
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
touch INSTALL NEWS README AUTHORS ChangeLog COPYING
|
|
libtoolize --copy --force --install
|
|
aclocal-1.13 --install -I acinclude
|
|
autoconf
|
|
automake-1.13
|
|
dos2unix miniz.h
|
|
runConfigure ./configure --enable-jpg-shared=no --enable-png-shared=no \
|
|
--enable-tif-shared=no --enable-webp-shared=no
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs libSDL2_image libSDL2_image-2.0
|
|
fixPkgconfig
|
|
rm $developLibDir/*.la
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|