Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: ninevoltz at uclibc.org <ninevoltz@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/freetype
Date: Fri, 25 Apr 2008 09:45:49 -0700 (PDT)	[thread overview]
Message-ID: <20080425164549.A09BC3C78E@busybox.net> (raw)

Author: ninevoltz
Date: 2008-04-25 09:45:49 -0700 (Fri, 25 Apr 2008)
New Revision: 21861

Log:
Change freetype makefile to fix $(STAGING_DIR)/usr/bin/freetype-config

Modified:
   trunk/buildroot/package/freetype/freetype.mk


Changeset:
Modified: trunk/buildroot/package/freetype/freetype.mk
===================================================================
--- trunk/buildroot/package/freetype/freetype.mk	2008-04-25 16:45:27 UTC (rev 21860)
+++ trunk/buildroot/package/freetype/freetype.mk	2008-04-25 16:45:49 UTC (rev 21861)
@@ -4,23 +4,61 @@
 #
 #############################################################
 FREETYPE_VERSION = $(strip $(subst ",, $(BR2_FREETYPE_VERSION)))
-FREETYPE_SOURCE = freetype-$(FREETYPE_VERSION).tar.bz2
+FREETYPE_NAME = freetype-$(FREETYPE_VERSION)
+FREETYPE_DIR = $(BUILD_DIR)/$(FREETYPE_NAME)
 FREETYPE_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/freetype
-FREETYPE_AUTORECONF = NO
-FREETYPE_INSTALL_STAGING = YES
-FREETYPE_INSTALL_TARGET = YES
-FREETYPE_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
+FREETYPE_SOURCE:=$(FREETYPE_NAME).tar.bz2
+FREETYPE_DESTDIR:=$(STAGING_DIR)/usr/lib
+FREETYPE_CAT:=$(BZCAT)
 
-FREETYPE_CONF_OPT = --target=$(GNU_TARGET_NAME) --host=$(GNU_TARGET_NAME) \
+$(DL_DIR)/$(FREETYPE_SOURCE):
+	 $(WGET) -P $(DL_DIR) $(FREETYPE_SITE)/$(FREETYPE_SOURCE)
+
+$(FREETYPE_DIR)/.unpacked: $(DL_DIR)/$(FREETYPE_SOURCE)
+	$(FREETYPE_CAT) $(DL_DIR)/$(FREETYPE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+	toolchain/patch-kernel.sh $(FREETYPE_DIR) package/freetype/ \*.patch
+	$(CONFIG_UPDATE) $(FREETYPE_DIR)
+	touch $@
+
+$(FREETYPE_DIR)/.configured: $(FREETYPE_DIR)/.unpacked
+	(cd $(FREETYPE_DIR) && \
+		$(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=/usr/bin \
 		--sbindir=/usr/sbin --libdir=/usr/lib \
 		--libexecdir=/usr/lib --sysconfdir=/etc \
 		--datadir=/usr/share --localstatedir=/var \
 		--includedir=/usr/include --mandir=/usr/man \
-		--infodir=/usr/info 
+		--infodir=/usr/info \ )
+	touch $@
 
-FREETYPE_MAKE_OPT = CCexe="$(HOSTCC)"
-FREETYPE_DEPENDENCIES = uclibc pkgconfig
+$(FREETYPE_DIR)/.compiled: $(FREETYPE_DIR)/.configured
+	$(MAKE) CCexe="$(HOSTCC)" -C $(FREETYPE_DIR)
+	touch $@
 
-$(eval $(call AUTOTARGETS,package,freetype))
\ No newline at end of file
+$(FREETYPE_DIR)/.installed: $(FREETYPE_DIR)/.compiled
+	$(MAKE) DESTDIR=$(STAGING_DIR) -C $(FREETYPE_DIR) install
+	$(MAKE) DESTDIR=$(TARGET_DIR) -C $(FREETYPE_DIR) install
+	$(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" $(STAGING_DIR)/usr/lib/libfreetype.la
+	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/freetype-config
+	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/freetype-config
+	$(SED) "s,^includedir=.*,includedir=\'$(STAGING_DIR)/usr/include\',g" $(STAGING_DIR)/usr/bin/freetype-config
+	$(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" $(STAGING_DIR)/usr/bin/freetype-config
+	touch $@
+
+freetype: uclibc pkgconfig $(FREETYPE_DIR)/.installed
+
+freetype-clean:
+	-$(MAKE) -C $(FREETYPE_DIR) clean
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_FREETYPE)),y)
+TARGETS+=freetype
+endif
\ No newline at end of file

             reply	other threads:[~2008-04-25 16:45 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-25 16:45 ninevoltz at uclibc.org [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-01-24 10:20 [Buildroot] svn commit: trunk/buildroot/package/freetype jacmet at uclibc.org
2009-01-24  8:31 jacmet at uclibc.org
2009-01-16  9:02 laird at uclibc.org
2009-01-08  8:27 jacmet at uclibc.org
2008-12-08 13:42 jacmet at uclibc.org
2008-12-08  4:43 hamish at uclibc.org
2008-11-11 11:33 laird at uclibc.org
2009-01-24  8:28 ` Peter Korsgaard
2008-11-10 21:43 hartleys
2008-10-09 12:50 laird at uclibc.org
2008-09-05  1:03 hamish at uclibc.org
2008-09-05  9:52 ` Peter Korsgaard
2008-09-05 12:53   ` Hamish Moffatt
2008-09-05 18:31     ` Peter Korsgaard
2008-09-06  4:22       ` Hamish Moffatt
2008-09-05 17:44   ` danieljlaird at hotmail.com
2008-07-17 13:20 jacmet at uclibc.org
2008-07-04  2:57 correa at uclibc.org
2008-07-05 19:08 ` Peter Korsgaard
2008-05-22 21:30 ulf at uclibc.org
2008-03-06 18:10 ninevoltz at uclibc.org
2007-11-16 10:16 vanokuten at uclibc.org
2007-09-23  9:55 ulf at uclibc.org
2007-08-14  6:28 ulf at uclibc.org
2007-01-16 19:51 aldot at uclibc.org
2007-01-10 23:54 andersen at uclibc.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080425164549.A09BC3C78E@busybox.net \
    --to=ninevoltz@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox