summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorIvan Kuten <ivan.kuten@promwad.com>2007-11-16 15:33:46 +0000
committerIvan Kuten <ivan.kuten@promwad.com>2007-11-16 15:33:46 +0000
commitda6c5f95e04daa7a4129ea72977fb1adf3e75818 (patch)
tree364075b8c3d2d44f858bb7e5b4ef0e781352ea71 /package
parenta2bd7e503b310a0f3c402cb4d046c6a525302f1c (diff)
add SDL_ttf package
Diffstat (limited to 'package')
-rw-r--r--package/Config.in1
-rw-r--r--package/sdl_ttf/Config.in6
-rw-r--r--package/sdl_ttf/sdl_ttf.mk79
3 files changed, 86 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index a4b5c15dd..b0a42eeeb 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -304,6 +304,7 @@ source "package/jpeg/Config.in"
source "package/libpng/Config.in"
source "package/libungif/Config.in"
source "package/sdl/Config.in"
+source "package/sdl_ttf/Config.in"
source "package/tiff/Config.in"
comment "busybox graphic applications"
diff --git a/package/sdl_ttf/Config.in b/package/sdl_ttf/Config.in
new file mode 100644
index 000000000..d3f4f0d8b
--- /dev/null
+++ b/package/sdl_ttf/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_SDL_TTF
+ bool "SDL_TTF"
+ default n
+ help
+
+ http://www.libsdl.org/projects/SDL_ttf/
diff --git a/package/sdl_ttf/sdl_ttf.mk b/package/sdl_ttf/sdl_ttf.mk
new file mode 100644
index 000000000..f0a6678c8
--- /dev/null
+++ b/package/sdl_ttf/sdl_ttf.mk
@@ -0,0 +1,79 @@
+#############################################################
+#
+# SDL_ttf
+#
+#############################################################
+SDL_TTF_VERSION:=2.0.9
+SDL_TTF_SOURCE:=SDL_ttf-$(SDL_TTF_VERSION).tar.gz
+SDL_TTF_SITE:=http://www.libsdl.org/projects/SDL_ttf/release/
+SDL_TTF_CAT:=$(ZCAT)
+SDL_TTF_DIR:=$(BUILD_DIR)/SDL_ttf-$(SDL_TTF_VERSION)
+
+$(DL_DIR)/$(SDL_TTF_SOURCE):
+ $(WGET) -P $(DL_DIR) $(SDL_TTF_SITE)/$(SDL_TTF_SOURCE)
+
+sdl_ttf-source: $(DL_DIR)/$(SDL_TTF_SOURCE)
+
+$(SDL_TTF_DIR)/.unpacked: $(DL_DIR)/$(SDL_TTF_SOURCE)
+ $(SDL_TTF_CAT) $(DL_DIR)/$(SDL_TTF_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ $(CONFIG_UPDATE) $(SDL_TTF_DIR)
+ touch $@
+
+$(SDL_TTF_DIR)/.configured: $(SDL_TTF_DIR)/.unpacked
+ (cd $(SDL_TTF_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) \
+ $(TARGET_CONFIGURE_ARGS) \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --exec-prefix=/usr \
+ --bindir=/bin \
+ --sbindir=/sbin \
+ --libdir=/lib \
+ --libexecdir=/lib \
+ --sysconfdir=/etc \
+ --datadir=/share \
+ --localstatedir=/var \
+ --includedir=/include \
+ --mandir=/man \
+ --infodir=/info \
+ --without-x \
+ --with-freetype-prefix=$(STAGING_DIR)/usr \
+ --with-sdl-prefix=$(STAGING_DIR)/usr \
+ )
+ touch $@
+
+$(SDL_TTF_DIR)/.compiled: $(SDL_TTF_DIR)/.configured
+ $(MAKE1) $(TARGET_CONFIGURE_OPTS) \
+ INCLUDE="-I$(STAGING_DIR)/usr/include/SDL" \
+ LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
+ DESTDIR=$(STAGING_DIR)/usr -C $(SDL_TTF_DIR)
+ touch $@
+
+$(STAGING_DIR)/usr/lib/libSDL_ttf.so: $(SDL_TTF_DIR)/.compiled
+ $(MAKE) DESTDIR=$(STAGING_DIR)/usr -C $(SDL_TTF_DIR) install
+ touch -c $@
+
+$(TARGET_DIR)/usr/lib/libSDL_ttf.so: $(STAGING_DIR)/usr/lib/libSDL_ttf.so
+ cp -dpf $(STAGING_DIR)/usr/lib/libSDL_ttf*.so* $(TARGET_DIR)/usr/lib/
+ -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libSDL_ttf.so
+
+SDL sdl_ttf: uclibc $(TARGET_DIR)/usr/lib/libSDL_ttf.so
+
+sdl_ttf-clean:
+ $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(SDL_TTF_DIR) uninstall
+ -$(MAKE) -C $(SDL_TTF_DIR) clean
+
+sdl_ttf-dirclean:
+ rm -rf $(SDL_TTF_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_SDL_TTF)),y)
+TARGETS+=sdl_ttf
+endif