summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Gerhardy <martin.gerhardy@gmail.com>2013-06-25 09:13:31 (GMT)
committerMartin Gerhardy <martin.gerhardy@gmail.com>2013-06-25 09:13:31 (GMT)
commit42222f05de6d7ef835b2fd37c0342a7e97c81a7c (patch)
tree73a9a3b2597cbde0bb325cf4ce2b076c112bf347
parent6658ffd183ee57ceb5ba5dcced8bd4e4f49c557f (diff)
downloadmxe-42222f05de6d7ef835b2fd37c0342a7e97c81a7c.zip
mxe-42222f05de6d7ef835b2fd37c0342a7e97c81a7c.tar.gz
mxe-42222f05de6d7ef835b2fd37c0342a7e97c81a7c.tar.bz2
* added sdl2_ttf
-rw-r--r--index.html5
-rw-r--r--src/sdl2_ttf.mk29
2 files changed, 34 insertions, 0 deletions
diff --git a/index.html b/index.html
index 4139a19..e83879f 100644
--- a/index.html
+++ b/index.html
@@ -2113,6 +2113,11 @@ aptitude -t squeeze-backports install cmake yasm</pre>
<td id="sdl2_mixer-website"><a href="http://www.libsdl.org/">SDL2_mixer</a></td>
</tr>
<tr>
+ <td id="sdl2_ttf-package">sdl2_ttf</td>
+ <td id="sdl2_ttf-version">2.0.12</td>
+ <td id="sdl2_ttf-website"><a href="http://www.libsdl.org/">SDL2_ttf</a></td>
+ </tr>
+ <tr>
<td id="smpeg-package">smpeg</td>
<td id="smpeg-version">0.4.5+cvs20030824</td>
<td id="smpeg-website"><a href="http://icculus.org/smpeg/">smpeg</a></td>
diff --git a/src/sdl2_ttf.mk b/src/sdl2_ttf.mk
new file mode 100644
index 0000000..6890e3f
--- /dev/null
+++ b/src/sdl2_ttf.mk
@@ -0,0 +1,29 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := sdl2_ttf
+$(PKG)_IGNORE :=
+$(PKG)_CHECKSUM := b4067c5bff930ffecdf3f90b45a383621bab4d30
+$(PKG)_SUBDIR := SDL2_ttf-$($(PKG)_VERSION)
+$(PKG)_FILE := SDL2_ttf-$($(PKG)_VERSION).tar.gz
+#$(PKG)_URL := http://www.libsdl.org/projects/SDL_ttf/release/$($(PKG)_FILE)
+$(PKG)_URL := http://www.libsdl.org/tmp/SDL_ttf/release/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc sdl2 freetype
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'http://hg.libsdl.org/SDL_ttf/tags' | \
+ $(SED) -n 's,.*release-\([0-9][^<]*\).*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ echo 'Requires.private: freetype2' >> '$(1)/SDL2_ttf.pc.in'
+ 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