From b6ab92915bcec6785c7163dcfd3c9dae83b92f97 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 29 Dec 2009 23:53:26 +0100 Subject: [PATCH] Added SDL_image-1.2.10 build template. --HG-- extra : convert_revision : e0a5e20b89810cd68ef82230a892cd546c330324 --- srcpkgs/SDL_image-devel | 1 + srcpkgs/SDL_image/SDL_image-devel.template | 21 ++++++++++++++++++++ srcpkgs/SDL_image/depends | 2 ++ srcpkgs/SDL_image/template | 23 ++++++++++++++++++++++ 4 files changed, 47 insertions(+) create mode 120000 srcpkgs/SDL_image-devel create mode 100644 srcpkgs/SDL_image/SDL_image-devel.template create mode 100644 srcpkgs/SDL_image/depends create mode 100644 srcpkgs/SDL_image/template diff --git a/srcpkgs/SDL_image-devel b/srcpkgs/SDL_image-devel new file mode 120000 index 0000000000..40160aa1c0 --- /dev/null +++ b/srcpkgs/SDL_image-devel @@ -0,0 +1 @@ +SDL_image \ No newline at end of file diff --git a/srcpkgs/SDL_image/SDL_image-devel.template b/srcpkgs/SDL_image/SDL_image-devel.template new file mode 100644 index 0000000000..fa3c1c7051 --- /dev/null +++ b/srcpkgs/SDL_image/SDL_image-devel.template @@ -0,0 +1,21 @@ +# Template file for 'SDL_image-devel'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run libpng-devel +Add_dependency run tiff-devel +Add_dependency run jpeg-devel +Add_dependency run SDL-devel +Add_dependency run SDL_image + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/SDL_image/depends b/srcpkgs/SDL_image/depends new file mode 100644 index 0000000000..a24e33ec00 --- /dev/null +++ b/srcpkgs/SDL_image/depends @@ -0,0 +1,2 @@ +abi_depends=">=1.2.10" +api_depends="${abi_depends}" diff --git a/srcpkgs/SDL_image/template b/srcpkgs/SDL_image/template new file mode 100644 index 0000000000..202a5a9d75 --- /dev/null +++ b/srcpkgs/SDL_image/template @@ -0,0 +1,23 @@ +# Template file for 'SDL_image' +pkgname=SDL_image +version=1.2.10 +distfiles="http://www.libsdl.org/projects/$pkgname/release/$pkgname-$version.tar.gz" +build_style=gnu_configure +short_desc="Load images as SDL surfaces" +maintainer="Juan RP " +checksum=75e05d1e95f6277b44797157d9e25a908ba8d08a393216ffb019b0d74de11876 +long_desc=" + This is a simple library to load images of various formats as SDL + surfaces. This library supports BMP, PNM (PPM/PGM/PBM), XPM, LBM, + PCX, GIF, JPEG, PNG, TGA, and TIFF formats." + +subpackages="$pkgname-devel" +Add_dependency run glibc +Add_dependency run libpng +Add_dependency run tiff +Add_dependency run jpeg +Add_dependency run SDL +Add_dependency build libpng-devel +Add_dependency build tiff-devel +Add_dependency build jpeg-devel +Add_dependency build SDL-devel