diff options
Diffstat (limited to 'src/sdl_gfx.mk')
-rw-r--r-- | src/sdl_gfx.mk | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/sdl_gfx.mk b/src/sdl_gfx.mk new file mode 100644 index 0000000..e3ff8ff --- /dev/null +++ b/src/sdl_gfx.mk @@ -0,0 +1,31 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := sdl_gfx +$(PKG)_IGNORE := +$(PKG)_CHECKSUM := 34e8963188e4845557468a496066a8fa60d5f563 +$(PKG)_SUBDIR := SDL_gfx-$($(PKG)_VERSION) +$(PKG)_FILE := SDL_gfx-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := http://www.ferzkopp.net/Software/SDL_gfx-2.0/$($(PKG)_FILE) +$(PKG)_DEPS := gcc sdl + +define $(PKG)_UPDATE +# thanks debian/watch for the inspiration! + wget -q -O- 'http://www.ferzkopp.net/joomla/content/view/19/14/' | \ + $(SED) -n 's,.*/joomla/\.\./Software/SDL_gfx\-2\.0/SDL_gfx-\([0-9][^"]*\)\.tar.*,\1,p' + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --disable-shared \ + --prefix='$(PREFIX)/$(TARGET)' \ + --with-sdl-prefix='$(PREFIX)/$(TARGET)' + $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= + + '$(TARGET)-gcc' \ + -W -Wall -Werror -ansi -pedantic \ + '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-sdl_gfx.exe' \ + `'$(TARGET)-pkg-config' SDL_gfx --cflags --libs` +endef |