summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-01-16 19:51:03 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-01-16 19:51:03 +0000
commitfd4b8e90ca01f650e25ee832e431bbc8d863ced2 (patch)
tree41156cf92270e475292ea2d782b66f2d708d634f /package
parenta4427ac6c0d88aee9094b71e094964a83825204e (diff)
downloadbuildroot-novena-fd4b8e90ca01f650e25ee832e431bbc8d863ced2.tar.gz
buildroot-novena-fd4b8e90ca01f650e25ee832e431bbc8d863ced2.zip
- prepare a host-freetype target that could be used to build the build-utils
for fontconfig (note that CCexe isn't cached in configure, so just passing it to make later on is enough).
Diffstat (limited to 'package')
-rw-r--r--package/freetype/freetype.mk29
1 files changed, 28 insertions, 1 deletions
diff --git a/package/freetype/freetype.mk b/package/freetype/freetype.mk
index 446532980..aa54145e3 100644
--- a/package/freetype/freetype.mk
+++ b/package/freetype/freetype.mk
@@ -8,6 +8,8 @@ FREETYPE_SOURCE:=freetype-$(FREETYPE_VERSION).tar.bz2
FREETYPE_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/freetype
FREETYPE_CAT:=$(BZCAT)
FREETYPE_DIR:=$(BUILD_DIR)/freetype-$(FREETYPE_VERSION)
+FREETYPE_DIR1:=$(TOOL_BUILD_DIR)/freetype-$(FREETYPE_VERSION)
+FREETYPE_HOST_DIR:=$(TOOL_BUILD_DIR)/freetype-$(FREETYPE_VERSION)-host
$(DL_DIR)/$(FREETYPE_SOURCE):
$(WGET) -P $(DL_DIR) $(FREETYPE_SITE)/$(FREETYPE_SOURCE)
@@ -18,11 +20,11 @@ $(FREETYPE_DIR)/.unpacked: $(DL_DIR)/$(FREETYPE_SOURCE)
$(FREETYPE_CAT) $(DL_DIR)/$(FREETYPE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
touch $(FREETYPE_DIR)/.unpacked
+# freetype for the target
$(FREETYPE_DIR)/.configured: $(FREETYPE_DIR)/.unpacked
(cd $(FREETYPE_DIR); \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) " \
- CCexe="$(HOSTCC)" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
@@ -60,6 +62,31 @@ $(TARGET_DIR)/lib/libfreetype.so: $(STAGING_DIR)/lib/libfreetype.so
cp -dpf $(STAGING_DIR)/lib/libfreetype.so* $(TARGET_DIR)/lib/
-$(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libfreetype.so
+# freetype for the host, needed for build-tools of fontconfig
+
+# great, it can't be built out of tree reliably
+$(FREETYPE_DIR1)/.unpacked: $(DL_DIR)/$(FREETYPE_SOURCE)
+ $(FREETYPE_CAT) $(DL_DIR)/$(FREETYPE_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(FREETYPE_DIR1)/.unpacked
+
+$(FREETYPE_DIR1)/.configured: $(FREETYPE_DIR1)/.unpacked
+ (cd $(FREETYPE_DIR1); \
+ ./configure \
+ CC="$(HOSTCC)" \
+ --prefix="$(FREETYPE_HOST_DIR)" \
+ );
+ touch $(FREETYPE_DIR1)/.configured
+
+$(FREETYPE_DIR1)/.compiled: $(FREETYPE_DIR1)/.configured
+ $(MAKE) CCexe="$(HOSTCC)" -C $(FREETYPE_DIR1)
+ touch $(FREETYPE_DIR1)/.compiled
+
+$(FREETYPE_HOST_DIR)/lib/libfreetype.so: $(FREETYPE_DIR1)/.configured
+ $(MAKE) -C $(FREETYPE_DIR1) install
+ touch -c $@
+
+host-freetype: $(FREETYPE_HOST_DIR)/lib/libfreetype.so
+
freetype: uclibc pkgconfig $(TARGET_DIR)/lib/libfreetype.so
freetype-clean: