translated package: sdl

This commit is contained in:
Volker Grabsch 2008-11-09 01:06:16 +01:00
parent 343b7dafe2
commit 75ce12fadd
1 changed files with 25 additions and 0 deletions

25
src/sdl.mk Normal file
View File

@ -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