summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/Config.in1
-rw-r--r--package/sdl2_ttf/Config.in9
-rw-r--r--package/sdl2_ttf/sdl2_ttf.hash2
-rw-r--r--package/sdl2_ttf/sdl2_ttf.mk17
4 files changed, 29 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 5be20532fc..da7b8555e3 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -265,6 +265,7 @@ comment "Graphic libraries"
source "package/sdl2/Config.in"
source "package/sdl2_gfx/Config.in"
source "package/sdl2_image/Config.in"
+ source "package/sdl2_ttf/Config.in"
comment "Other GUIs"
source "package/qt/Config.in"
diff --git a/package/sdl2_ttf/Config.in b/package/sdl2_ttf/Config.in
new file mode 100644
index 0000000000..cb77059ae0
--- /dev/null
+++ b/package/sdl2_ttf/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_SDL2_TTF
+ bool "SDL2_TTF"
+ depends on BR2_PACKAGE_SDL2
+ select BR2_PACKAGE_FREETYPE
+ help
+ SDL2_ttf is a sample TrueType font library. It allows you to
+ use TrueType fonts in your SDL2 applications.
+
+ http://www.libsdl.org/projects/SDL_ttf/
diff --git a/package/sdl2_ttf/sdl2_ttf.hash b/package/sdl2_ttf/sdl2_ttf.hash
new file mode 100644
index 0000000000..515189afd9
--- /dev/null
+++ b/package/sdl2_ttf/sdl2_ttf.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 34db5e20bcf64e7071fe9ae25acaa7d72bdc4f11ab3ce59acc768ab62fe39276 SDL2_ttf-2.0.14.tar.gz
diff --git a/package/sdl2_ttf/sdl2_ttf.mk b/package/sdl2_ttf/sdl2_ttf.mk
new file mode 100644
index 0000000000..71c5bc7a44
--- /dev/null
+++ b/package/sdl2_ttf/sdl2_ttf.mk
@@ -0,0 +1,17 @@
+################################################################################
+#
+# sdl2_ttf
+#
+################################################################################
+
+SDL2_TTF_VERSION = 2.0.14
+SDL2_TTF_SOURCE = SDL2_ttf-$(SDL2_TTF_VERSION).tar.gz
+SDL2_TTF_SITE = http://www.libsdl.org/projects/SDL_ttf/release
+SDL2_TTF_LICENSE = zlib
+SDL2_TTF_LICENSE_FILES = COPYING.txt
+SDL2_TTF_INSTALL_STAGING = YES
+SDL2_TTF_DEPENDENCIES = sdl2 freetype host-pkgconf
+SDL2_TTF_CONF_ENV = \
+ FREETYPE_CONFIG=$(STAGING_DIR)/usr/bin/freetype-config
+
+$(eval $(autotools-package))
OpenPOWER on IntegriCloud