diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2008-11-09 00:06:16 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2008-11-09 00:06:16 (GMT) |
commit | 75ce12fadd1b31e2ec5d744079819b16356aa700 (patch) | |
tree | 8151882124d2d5457b1432e3fd01d594aa25133c /src/sdl.mk | |
parent | 343b7dafe2d3f9a35b89421cc747cdbbfa1c1ebf (diff) | |
download | mxe-75ce12fadd1b31e2ec5d744079819b16356aa700.zip mxe-75ce12fadd1b31e2ec5d744079819b16356aa700.tar.gz mxe-75ce12fadd1b31e2ec5d744079819b16356aa700.tar.bz2 |
translated package: sdl
Diffstat (limited to 'src/sdl.mk')
-rw-r--r-- | src/sdl.mk | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/sdl.mk b/src/sdl.mk new file mode 100644 index 0000000..f70c234 --- /dev/null +++ b/src/sdl.mk @@ -0,0 +1,25 @@ +# SDL +# http://www.libsdl.org/ + +PKG := sdl +$(PKG)_VERSION := 1.2.11 +$(PKG)_SUBDIR := SDL-$($(PKG)_VERSION) +$(PKG)_FILE := SDL-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := http://libsdl.org/release/$($(PKG)_FILE) +$(PKG)_DEPS := gcc libiconv + +define $(PKG)_UPDATE + wget -q -O- 'http://www.libsdl.org/release/changes.html' | \ + $(SED) -n 's,.*sdl \([0-9][^>]*\) Release Notes.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + $(SED) 's,-mwindows,-lwinmm -mwindows,' -i '$(1)/configure' + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --disable-shared \ + --disable-debug \ + --prefix='$(PREFIX)/$(TARGET)' + $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= +endef |