# HG changeset patch # User Volker Grabsch # Date 1226189176 -3600 # Node ID 91ca8f84441c218cd3ddc3a2cf81fa370a395f78 # Parent 1cfaf9280af6f2aa897686596c9bc09f48cd8958 translated package: sdl diff --git a/src/sdl.mk b/src/sdl.mk new file mode 100644 --- /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