summaryrefslogtreecommitdiffstats
path: root/package/freetype
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-04-26 06:26:14 +0000
committerEric Andersen <andersen@codepoet.org>2005-04-26 06:26:14 +0000
commitdfba3cfed987daba1cf8f2e80286127afce7e651 (patch)
treef3822606cb3f07472eee73f4c853c462c171dbb7 /package/freetype
parentd17c8983f2923e1dd9b3c626e697733874f3151d (diff)
downloadbuildroot-novena-dfba3cfed987daba1cf8f2e80286127afce7e651.tar.gz
buildroot-novena-dfba3cfed987daba1cf8f2e80286127afce7e651.zip
http://bugs.uclibc.org/view.php?id=189
Diffstat (limited to 'package/freetype')
-rw-r--r--package/freetype/Config.in6
-rw-r--r--package/freetype/freetype.mk60
2 files changed, 66 insertions, 0 deletions
diff --git a/package/freetype/Config.in b/package/freetype/Config.in
new file mode 100644
index 000000000..f3ce268e0
--- /dev/null
+++ b/package/freetype/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_FREETYPE
+ bool "freetype"
+ default n
+ help
+
+ http://www.freetype.org/
diff --git a/package/freetype/freetype.mk b/package/freetype/freetype.mk
new file mode 100644
index 000000000..23a0b8f8b
--- /dev/null
+++ b/package/freetype/freetype.mk
@@ -0,0 +1,60 @@
+#############################################################
+#
+# freetype
+#
+#############################################################
+FREETYPE_VERSION:=2.1.9
+FREETYPE_SOURCE:=freetype-$(FREETYPE_VERSION).tar.bz2
+FREETYPE_SITE:=http://telia.dl.sourceforge.net/sourceforge/freetype
+FREETYPE_CAT:=bzcat
+FREETYPE_DIR:=$(BUILD_DIR)/freetype-$(FREETYPE_VERSION)
+
+$(DL_DIR)/$(FREETYPE_SOURCE):
+ $(WGET) -P $(DL_DIR) $(FREETYPE_SITE)/$(FREETYPE_SOURCE)
+
+freetype-source: $(DL_DIR)/$(FREETYPE_SOURCE)
+
+$(FREETYPE_DIR)/.unpacked: $(DL_DIR)/$(FREETYPE_SOURCE)
+ $(FREETYPE_CAT) $(DL_DIR)/$(FREETYPE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(FREETYPE_DIR)/.unpacked
+
+$(FREETYPE_DIR)/.configured: $(FREETYPE_DIR)/.unpacked
+ (cd $(FREETYPE_DIR); \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS) " \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr );
+ touch $(FREETYPE_DIR)/.configured
+
+$(FREETYPE_DIR)/.compiled: $(FREETYPE_DIR)/.configured
+ $(MAKE) -C $(FREETYPE_DIR)
+ touch $(FREETYPE_DIR)/.compiled
+
+$(STAGING_DIR)/usr/lib/libfreetype.so: $(FREETYPE_DIR)/.compiled
+ $(MAKE) -C $(FREETYPE_DIR) DESTDIR=$(STAGING_DIR) install
+ touch -c $(STAGING_DIR)/lib/libfreetype.so
+
+$(TARGET_DIR)/usr/lib/libfreetype.so: $(STAGING_DIR)/usr/lib/libfreetype.so
+ cp -dpf $(STAGING_DIR)/usr/lib/libfreetype.so* $(TARGET_DIR)/usr/lib/
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libfreetype.so
+
+freetype: uclibc $(TARGET_DIR)/usr/lib/libfreetype.so
+
+freetype-clean:
+ $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(FREETYPE_DIR) uninstall
+ -$(MAKE) -C $(FREETYPE_DIR) clean
+
+freetype-dirclean:
+ rm -rf $(FREETYPE_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_FREETYPE)),y)
+TARGETS+=freetype
+endif