Mercurial > mxe-octave
changeset 159:91ca8f84441c
translated package: sdl
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sun, 09 Nov 2008 01:06:16 +0100 |
parents | 1cfaf9280af6 |
children | c910739ef7ed |
files | src/sdl.mk |
diffstat | 1 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/sdl.mk Sun Nov 09 01:06:16 2008 +0100 @@ -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