mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
sdl2_image: Add initial recipe, tested working on x86
This commit is contained in:
89
media-libs/sdl2_image/sdl2_image-2.0.0.recipe
Normal file
89
media-libs/sdl2_image/sdl2_image-2.0.0.recipe
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
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="1"
|
||||||
|
LICENSE="Zlib"
|
||||||
|
COPYRIGHT="1997-2013 Sam Lantinga"
|
||||||
|
|
||||||
|
ARCHITECTURES="x86 ?x86_gcc2"
|
||||||
|
SECONDARY_ARCHITECTURES="x86 ?x86_gcc2"
|
||||||
|
|
||||||
|
PROVIDES="
|
||||||
|
sdl2_image${secondaryArchSuffix} = $portVersion
|
||||||
|
lib:libSDL2_image${secondaryArchSuffix}
|
||||||
|
"
|
||||||
|
|
||||||
|
REQUIRES="
|
||||||
|
haiku${secondaryArchSuffix} >= $haikuVersion
|
||||||
|
lib:libSDL2${secondaryArchSuffix}
|
||||||
|
lib:libGL$secondaryArchSuffix
|
||||||
|
lib:libjpeg$secondaryArchSuffix
|
||||||
|
lib:libpng$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
|
||||||
|
"
|
||||||
|
|
||||||
|
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
|
||||||
|
fixPkgconfig
|
||||||
|
|
||||||
|
packageEntries devel \
|
||||||
|
$developDir
|
||||||
|
}
|
||||||
|
|
||||||
|
PROVIDES_devel="
|
||||||
|
sdl2_image${secondaryArchSuffix}_devel = ${portVersion} compat >= 1.2
|
||||||
|
devel:sdl2_image$secondaryArchSuffix = ${portVersion} compat >= 1.2
|
||||||
|
devel:libSDL2_image$secondaryArchSuffix = 2.0_0.10.1 compat >= 2.0_0
|
||||||
|
"
|
||||||
|
|
||||||
|
REQUIRES_devel="
|
||||||
|
sdl2_image$secondaryArchSuffix == $portVersion base
|
||||||
|
"
|
||||||
Reference in New Issue
Block a user