mxe/src/sdl.mk

37 lines
1.2 KiB
Makefile
Raw Normal View History

2010-01-16 22:02:02 +00:00
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
2008-11-09 00:06:16 +00:00
# SDL
PKG := sdl
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.2.14
$(PKG)_CHECKSUM := ba625b4b404589b97e92d7acd165992debe576dd
$(PKG)_SUBDIR := SDL-$($(PKG)_VERSION)
$(PKG)_FILE := SDL-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.libsdl.org/
$(PKG)_URL := http://www.libsdl.org/release/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libiconv
2008-11-09 00:06:16 +00:00
define $(PKG)_UPDATE
wget -q -O- 'http://www.libsdl.org/cgi/viewvc.cgi/tags/SDL/?sortby=date' | \
grep '<a name="' | \
$(SED) -n 's,.*<a name="release-\([0-9][^"]*\)".*,\1,p' | \
2008-11-09 00:06:16 +00:00
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 '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
2008-11-09 00:06:16 +00:00
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
2010-01-22 02:53:37 +00:00
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
`'$(TARGET)-pkg-config' sdl --cflags --libs` \
2010-01-22 02:53:37 +00:00
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-sdl.exe'
2008-11-09 00:06:16 +00:00
endef