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/libxml2
Date: Thu,  6 Mar 2008 10:16:32 -0800 (PST)	[thread overview]
Message-ID: <20080306181632.4CC1B1201F9@busybox.net> (raw)

Author: ninevoltz
Date: 2008-03-06 10:16:30 -0800 (Thu, 06 Mar 2008)
New Revision: 21208

Log:
updated libxml2 makefile

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


Changeset:
Modified: trunk/buildroot/package/libxml2/libxml2.mk
===================================================================
--- trunk/buildroot/package/libxml2/libxml2.mk	2008-03-06 18:16:05 UTC (rev 21207)
+++ trunk/buildroot/package/libxml2/libxml2.mk	2008-03-06 18:16:30 UTC (rev 21208)
@@ -4,107 +4,26 @@
 #
 #############################################################
 
-LIBXML2_VERSION=2.6.29
-LIBXML2_SOURCE=libxml2-sources-$(LIBXML2_VERSION).tar.gz
-LIBXML2_SITE=ftp://xmlsoft.org/libxml2
-LIBXML2_DIR=$(BUILD_DIR)/libxml2-$(LIBXML2_VERSION)
-LIBXML2_CAT:=$(ZCAT)
+LIBXML2_VERSION = 2.6.29
+LIBXML2_SOURCE = libxml2-sources-$(LIBXML2_VERSION).tar.gz
+LIBXML2_SITE = ftp://xmlsoft.org/libxml2
+LIBXML2_AUTORECONF = NO
+LIBXML2_INSTALL_STAGING = YES
+LIBXML2_INSTALL_TARGET = YES
 
-$(DL_DIR)/$(LIBXML2_SOURCE):
-	$(WGET) -P $(DL_DIR) $(LIBXML2_SITE)/$(LIBXML2_SOURCE)
+LIBXML2_CONF_OPT = --target=$(GNU_TARGET_NAME) --host=$(GNU_TARGET_NAME) \
+		--build=$(GNU_HOST_NAME) --prefix=/usr \
+		--exec-prefix=/usr --bindir=/usr/bin \
+		--sbindir=/usr/sbin --libexecdir=/usr/lib \
+		--sysconfdir=/etc --datadir=/usr/share \
+		--localstatedir=/var --mandir=/usr/man \
+		--infodir=/usr/info --includedir=/usr/include \
+		--with-gnu-ld --enable-shared \
+		--enable-static --enable-ipv6=no \
+		--without-debugging --without-python \
+		--without-threads $(DISABLE_NLS) 
 
-$(LIBXML2_DIR)/.unpacked: $(DL_DIR)/$(LIBXML2_SOURCE)
-	$(LIBXML2_CAT) $(DL_DIR)/$(LIBXML2_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
-	touch $(LIBXML2_DIR)/.unpacked
 
-$(LIBXML2_DIR)/.configured: $(LIBXML2_DIR)/.unpacked
-	(cd $(LIBXML2_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=/usr/bin \
-		--sbindir=/usr/sbin \
-		--libexecdir=/usr/lib \
-		--sysconfdir=/etc \
-		--datadir=/usr/share \
-		--localstatedir=/var \
-		--mandir=/usr/man \
-		--infodir=/usr/info \
-		--includedir=/usr/include \
-		--with-gnu-ld \
-		--enable-shared \
-		--enable-static \
-		--enable-ipv6=no \
-		--without-debugging \
-		--without-python \
-		--without-threads \
-		$(DISABLE_NLS) \
-	)
-	touch $(LIBXML2_DIR)/.configured
+LIBXML2_DEPENDENCIES = uclibc 
 
-$(STAGING_DIR)/usr/lib/libxml2.so: $(LIBXML2_DIR)/.configured
-	$(MAKE) CC=$(TARGET_CC) -C $(LIBXML2_DIR)
-	$(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBXML2_DIR) install
-	rm -f $(STAGING_DIR)/usr/lib/libxml2.la
-	$(SED) 's:prefix=/usr:prefix=$(STAGING_DIR)/usr:' \
-		-e 's:includedir=/usr/include:includedir=$(STAGING_DIR)/usr/include:' \
-		$(STAGING_DIR)/usr/bin/xml2-config
-
-$(TARGET_DIR)/usr/lib/libxml2.so: $(STAGING_DIR)/usr/lib/libxml2.so
-	mkdir -p $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/lib
-	cp -dpf $(STAGING_DIR)/usr/lib/libxml2.so* $(TARGET_DIR)/usr/lib/
-	$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libxml2.so*
-
-$(TARGET_DIR)/usr/lib/libxml2.a: $(STAGING_DIR)/usr/lib/libxml2.so
-	cp -dpf $(STAGING_DIR)/usr/lib/libxml2.*a $(TARGET_DIR)/usr/lib/
-
-libxml2: uclibc $(TARGET_DIR)/usr/lib/libxml2.so libxml2-headers
-
-$(STAGING_DIR)/usr/include/libxml2: $(TARGET_DIR)/usr/lib/libxml2.so
-	cp -af $(LIBXML2_DIR)/include/libxml $(STAGING_DIR)/usr/include/libxml2
-	touch -c $@
-
-$(TARGET_DIR)/usr/include/libxml2: libxml2-headers
-	cp -af $(LIBXML2_DIR)/usr/include/libxml2 $(TARGET_DIR)/usr/include/libxml2
-	touch -c $@
-
-$(TARGET_DIR)/usr/include/libxml: libxml2-headers
-	ln -s libxml2/libxml $(LIBXML2_DIR)/usr/include/libxml
-	touch -c $@
-
-libxml2-headers: $(STAGING_DIR)/usr/include/libxml2
-
-libxml2-target-headers: $(TARGET_DIR)/usr/include/libxml2 \
-	$(TARGET_DIR)/usr/include/libxml2 \
-	$(TARGET_DIR)/usr/lib/libxml2.a
-
-libxml2-source: $(DL_DIR)/$(LIBXML2_SOURCE)
-
-libxml2-clean:
-	@if [ -d $(LIBXML2_DIR)/Makefile ]; then \
-		$(MAKE) -C $(LIBXML2_DIR) clean; \
-	fi
-	rm -f $(STAGING_DIR)/usr/lib/libxml2.*
-	rm -f $(TARGET_DIR)/usr/lib/libxml2.*
-
-
-libxml2-dirclean:
-	rm -rf $(LIBXML2_DIR)
-
-.PHONY: libxml2-headers libxml2-target-headers
-#############################################################
-#
-# Toplevel Makefile options
-#
-#############################################################
-ifeq ($(strip $(BR2_PACKAGE_LIBXML2)),y)
-TARGETS+=libxml2
-endif
-ifeq ($(strip $(BR2_PACKAGE_LIBXML2_TARGET_HEADERS)),y)
-TARGETS+=libxml2-target-headers
-endif
+$(eval $(call AUTOTARGETS,package,libxml2))

             reply	other threads:[~2008-03-06 18:16 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-06 18:16 ninevoltz at uclibc.org [this message]
2008-03-07  0:09 ` [Buildroot] svn commit: trunk/buildroot/package/libxml2 Ulf Samuelsson
  -- strict thread matches above, loose matches on Subject: below --
2009-01-27 15:02 jacmet at uclibc.org
2008-10-10 14:41 laird at uclibc.org
2008-08-28 10:56 laird at uclibc.org
2008-08-28 11:37 ` Bernhard Reutner-Fischer
2008-08-24  7:48 jacmet at uclibc.org
2008-08-23 13:08 jacmet at uclibc.org
2008-08-23 13:08 jacmet at uclibc.org
2008-08-23 13:08 jacmet at uclibc.org
2008-08-23 13:08 jacmet at uclibc.org
2008-06-30 13:16 jacmet at uclibc.org
2008-06-20 21:45 jacmet at uclibc.org
2007-09-23 14:23 ulf at uclibc.org
2007-08-19 20:59 ulf at uclibc.org
2007-08-07 17:28 ulf at uclibc.org
2007-07-24 14:12 ulf at uclibc.org
2007-07-17 15:17 ulf 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=20080306181632.4CC1B1201F9@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