summaryrefslogtreecommitdiffstats
path: root/src/sdl_ttf.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdl_ttf.mk')
-rw-r--r--src/sdl_ttf.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/sdl_ttf.mk b/src/sdl_ttf.mk
new file mode 100644
index 0000000..8a0cd5a
--- /dev/null
+++ b/src/sdl_ttf.mk
@@ -0,0 +1,26 @@
+# SDL_ttf
+# http://libsdl.org/projects/SDL_ttf/
+
+PKG := sdl_ttf
+$(PKG)_VERSION := 2.0.9
+$(PKG)_SUBDIR := SDL_ttf-$($(PKG)_VERSION)
+$(PKG)_FILE := SDL_ttf-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := http://libsdl.org/projects/SDL_ttf/release/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc sdl freetype
+
+define $(PKG)_UPDATE
+ wget -q -O- 'http://libsdl.org/projects/SDL_ttf/' | \
+ $(SED) -n 's,.*SDL_ttf-\([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)' \
+ --disable-sdltest \
+ --with-freetype-prefix='$(PREFIX)/$(TARGET)'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+endef