summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2008-11-09 01:11:36 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2008-11-09 01:11:36 (GMT)
commit447da9060cbeac8779da24a772ea83eb2457ae67 (patch)
tree78cdc1ceb3ecd76a41f588b5668339e2ef153d54
parent2e9c4b84f9d1cfd059d580018a87ec5f694d9ab5 (diff)
downloadmxe-447da9060cbeac8779da24a772ea83eb2457ae67.zip
mxe-447da9060cbeac8779da24a772ea83eb2457ae67.tar.gz
mxe-447da9060cbeac8779da24a772ea83eb2457ae67.tar.bz2
translated package: sdl_image
-rw-r--r--src/sdl_image.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/sdl_image.mk b/src/sdl_image.mk
new file mode 100644
index 0000000..ae1535a
--- /dev/null
+++ b/src/sdl_image.mk
@@ -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