changeset 163:e3eb8dfa71f5

translated package: sdl_image
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 09 Nov 2008 02:11:36 +0100
parents 4377bbba7f64
children 43f7cae42987
files src/sdl_image.mk
diffstat 1 files changed, 29 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/sdl_image.mk	Sun Nov 09 02:11:36 2008 +0100
@@ -0,0 +1,29 @@
+# SDL_image
+# http://libsdl.org/projects/SDL_image/
+
+PKG            := sdl_image
+$(PKG)_VERSION := 1.2.6
+$(PKG)_SUBDIR  := SDL_image-$($(PKG)_VERSION)
+$(PKG)_FILE    := SDL_image-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL     := http://libsdl.org/projects/SDL_image/release/$($(PKG)_FILE)
+$(PKG)_DEPS    := gcc sdl jpeg libpng tiff
+
+define $(PKG)_UPDATE
+    wget -q -O- 'http://libsdl.org/projects/SDL_image/' | \
+    $(SED) -n 's,.*SDL_image-\([0-9][^>]*\)\.tar.*,\1,p' | \
+    head -1
+endef
+
+define $(PKG)_BUILD
+    cd '$(1)' && ./configure \
+        --host='$(TARGET)' \
+        --disable-shared \
+        --prefix='$(PREFIX)/$(TARGET)' \
+        --with-sdl-prefix='$(PREFIX)/$(TARGET)' \
+        --disable-sdltest \
+        --disable-jpg-shared \
+        --disable-png-shared \
+        --disable-tif-shared \
+	LIBS='-lz'
+    $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+endef