From 04464514812df5a411a74f4c0ed07ee209915f8b Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Thu, 15 May 2014 02:25:54 +0000 Subject: [PATCH] sdl2_image: Add initial recipe, tested working on x86 --- media-libs/sdl2_image/sdl2_image-2.0.0.recipe | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 media-libs/sdl2_image/sdl2_image-2.0.0.recipe diff --git a/media-libs/sdl2_image/sdl2_image-2.0.0.recipe b/media-libs/sdl2_image/sdl2_image-2.0.0.recipe new file mode 100644 index 000000000..03159fcec --- /dev/null +++ b/media-libs/sdl2_image/sdl2_image-2.0.0.recipe @@ -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 + "