From 1a64286b0be4bd9e01b5fc215085348bace1c98f Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Fri, 8 Jan 2010 13:21:54 +0100 Subject: [PATCH] sdl_image: initial import (verified compilation) --- sdl_image/.footprint | 10 ++++++++++ sdl_image/.md5sum | 1 + sdl_image/Pkgfile | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 sdl_image/.footprint create mode 100644 sdl_image/.md5sum create mode 100644 sdl_image/Pkgfile diff --git a/sdl_image/.footprint b/sdl_image/.footprint new file mode 100644 index 0000000..a321c2a --- /dev/null +++ b/sdl_image/.footprint @@ -0,0 +1,10 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/SDL/ +-rw-r--r-- root/root usr/include/SDL/SDL_image.h +drwxr-xr-x root/root usr/lib/ +lrwxrwxrwx root/root usr/lib/libSDL_image-1.2.so.0 -> libSDL_image-1.2.so.0.1.6 +-rwxr-xr-x root/root usr/lib/libSDL_image-1.2.so.0.1.6 +-rw-r--r-- root/root usr/lib/libSDL_image.a +-rwxr-xr-x root/root usr/lib/libSDL_image.la +lrwxrwxrwx root/root usr/lib/libSDL_image.so -> libSDL_image-1.2.so.0.1.6 diff --git a/sdl_image/.md5sum b/sdl_image/.md5sum new file mode 100644 index 0000000..a842702 --- /dev/null +++ b/sdl_image/.md5sum @@ -0,0 +1 @@ +a729ff61f74f0a45ec7fe36354cf938e SDL_image-1.2.7.tar.gz diff --git a/sdl_image/Pkgfile b/sdl_image/Pkgfile new file mode 100644 index 0000000..1128a38 --- /dev/null +++ b/sdl_image/Pkgfile @@ -0,0 +1,35 @@ +# Description: SDL_image is an image file loading library. +# URL: http://www.libsdl.org/projects/SDL_image +# Packager: Jay Dolan, jdolan at jdolan dot dyndns dot org +# Maintainer: Danny Rawlins, monster dot romster at gmail dot com +# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org +# Depends on: libtiff libpng libsdl + +name=sdl_image +version=1.2.7 +release=1 +source=(http://www.libsdl.org/projects/SDL_image/release/SDL_image-$version.tar.gz) + +build() { + cd SDL_image-$version + + export DEFAULT_LIBS="-L$CLFS/usr/lib" + export DEFAULT_CFLAGS="-I$CLFS/usr/include" + export SDL_LIBS="$DEFAULT_LIBS -lSDL -lpthread" + export SDL_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT" + + ./configure --build=$CHOST \ + --host=$CTARGET \ + --prefix=/usr \ + --with-sdl-prefix=$CLFS/usr \ + --disable-sdltest \ + --enable-png \ + --enable-tif + + sed -i Makefile \ + -e "s|-I/usr|-I$CLFS/usr|g" \ + -e "s|-L/usr|-L$CLFS/usr|g" + + make + make DESTDIR=$PKG install +} -- 2.26.2