summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sdl.mk25
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