aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sdl2_ttf
diff options
context:
space:
mode:
authorAmatCoder <amatcoder@gmail.com>2015-06-12 14:11:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-06-12 14:54:03 +0000
commitd5f2c4683c41dd846c66f0c42b3cf5cbdb60c8eb (patch)
tree55d95fe1c4faf3beb9380ecf75bad4758837f3b1 /testing/sdl2_ttf
parentbb305df1ae68528306e3e24865657f23a6e71c60 (diff)
downloadaports-d5f2c4683c41dd846c66f0c42b3cf5cbdb60c8eb.tar.bz2
aports-d5f2c4683c41dd846c66f0c42b3cf5cbdb60c8eb.tar.xz
testing/sdl2_ttf: new aport
http://www.libsdl.org/projects/SDL_ttf A library which allows you to use TrueType fonts in your SDL applications
Diffstat (limited to 'testing/sdl2_ttf')
-rw-r--r--testing/sdl2_ttf/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/sdl2_ttf/APKBUILD b/testing/sdl2_ttf/APKBUILD
new file mode 100644
index 0000000000..4170fab5d2
--- /dev/null
+++ b/testing/sdl2_ttf/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: August Klein <amatcoder@gmail.com>
+# Maintainer: August Klein <amatcoder@gmail.com>
+pkgname=sdl2_ttf
+pkgver=2.0.12
+pkgrel=0
+_pkgname=SDL2_ttf
+pkgdesc="A library which allows you to use TrueType fonts in your SDL applications"
+url="http://www.libsdl.org/projects/SDL_ttf/"
+arch="all"
+license="zlib"
+depends=""
+depends_dev="freetype-dev sdl2-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev"
+source="http://www.libsdl.org/projects/SDL_ttf/release/$_pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$_pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ update_config_sub
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="79787216b56cb4707f39d538f2225e00 SDL2_ttf-2.0.12.tar.gz"
+sha256sums="8728605443ea1cca5cad501dc34dc0cb15135d1e575551da6d151d213d356f6e SDL2_ttf-2.0.12.tar.gz"
+sha512sums="2dfd7d9a87d86b0446e52c78dcf4c45dba747256ff9cb4cc010818eac725410f5a1a781e6695ca0bcead756c70519d8d5b4df6c1b2935085e0356d9b4d7844fa SDL2_ttf-2.0.12.tar.gz"