From 447da9060cbeac8779da24a772ea83eb2457ae67 Mon Sep 17 00:00:00 2001 From: Volker Grabsch Date: Sun, 9 Nov 2008 02:11:36 +0100 Subject: translated package: sdl_image --- src/sdl_image.mk | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/sdl_image.mk 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 -- cgit v0.12