From 7d7e730e1fd17a59173dc4293aa9f2288928a618 Mon Sep 17 00:00:00 2001 From: miqlas <5569059+extrowerk@users.noreply.github.com> Date: Sun, 24 Jun 2018 05:01:30 +0200 Subject: [PATCH] SDL2_image: bump (#2732) --- media-libs/sdl2_image/sdl2_image-2.0.3.recipe | 87 +++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 media-libs/sdl2_image/sdl2_image-2.0.3.recipe diff --git a/media-libs/sdl2_image/sdl2_image-2.0.3.recipe b/media-libs/sdl2_image/sdl2_image-2.0.3.recipe new file mode 100644 index 000000000..bd216f452 --- /dev/null +++ b/media-libs/sdl2_image/sdl2_image-2.0.3.recipe @@ -0,0 +1,87 @@ +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-2018 Sam Lantinga" +LICENSE="Zlib" +REVISION="1" +SOURCE_URI="https://www.libsdl.org/projects/SDL_image/release/SDL2_image-$portVersion.tar.gz" +CHECKSUM_SHA256="3510c25da735ffcd8ce3b65073150ff4f7f9493b866e85b83738083b556d2368" +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_2.0${secondaryArchSuffix} = 0.2.0 compat >= 0 + " +REQUIRES=" + haiku${secondaryArchSuffix} + lib:libgif$secondaryArchSuffix + lib:libGL$secondaryArchSuffix + lib:libjpeg$secondaryArchSuffix + lib:libpng16$secondaryArchSuffix + lib:libSDL2_2.0$secondaryArchSuffix >= 2.0.8 + lib:libtiff$secondaryArchSuffix + lib:libwebp$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +PROVIDES_devel=" + sdl2_image${secondaryArchSuffix}_devel = $portVersion compat >= 2 + devel:libSDL2_image_2.0$secondaryArchSuffix = 0.2.0 compat >= 0 + devel:libSDL2_image$secondaryArchSuffix = $portVersion compat >= 2 + " +REQUIRES_devel=" + sdl2_image$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libgif$secondaryArchSuffix + devel:libjpeg$secondaryArchSuffix + devel:libpng16$secondaryArchSuffix + devel:libSDL2_2.0$secondaryArchSuffix >= 2.0.8 + devel:libtiff$secondaryArchSuffix + devel:libwebp$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:dos2unix + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + touch INSTALL NEWS README AUTHORS ChangeLog COPYING + autoreconf -fi + 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 + + rm $libDir/*.la + + prepareInstalledDevelLibs libSDL2_image libSDL2_image-2.0 + fixPkgconfig + + packageEntries devel \ + $developDir +}