From: ulf at uclibc.org <ulf@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package: libxml2
Date: Mon, 16 Jul 2007 13:13:25 -0700 (PDT) [thread overview]
Message-ID: <20070716201325.607F6A685B@busybox.net> (raw)
Author: ulf
Date: 2007-07-16 13:13:22 -0700 (Mon, 16 Jul 2007)
New Revision: 19113
Log:
Add libxml2 package
Added:
trunk/buildroot/package/libxml2/
trunk/buildroot/package/libxml2/Config.in
trunk/buildroot/package/libxml2/libxml2.mk
Modified:
trunk/buildroot/package/Config.in
Changeset:
Modified: trunk/buildroot/package/Config.in
===================================================================
--- trunk/buildroot/package/Config.in 2007-07-16 19:03:46 UTC (rev 19112)
+++ trunk/buildroot/package/Config.in 2007-07-16 20:13:22 UTC (rev 19113)
@@ -68,6 +68,7 @@
source "package/libfloat/Config.in"
source "package/liblockfile/Config.in"
source "package/libsysfs/Config.in"
+source "package/libxml2/Config.in"
source "package/lockfile-progs/Config.in"
source "package/lsof/Config.in"
source "package/ltp-testsuite/Config.in"
Added: trunk/buildroot/package/libxml2/Config.in
===================================================================
--- trunk/buildroot/package/libxml2/Config.in (rev 0)
+++ trunk/buildroot/package/libxml2/Config.in 2007-07-16 20:13:22 UTC (rev 19113)
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LIBXML2
+ bool "libxml2"
+ default n
+ help
+ XML C Parser
+ Requires WCHAR
+
+ ftp://xmlsoft.org/libxml2
Added: trunk/buildroot/package/libxml2/libxml2.mk
===================================================================
--- trunk/buildroot/package/libxml2/libxml2.mk (rev 0)
+++ trunk/buildroot/package/libxml2/libxml2.mk 2007-07-16 20:13:22 UTC (rev 19113)
@@ -0,0 +1,77 @@
+#############################################################
+#
+# libxml2
+#
+#############################################################
+
+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)
+
+$(DL_DIR)/$(LIBXML2_SOURCE):
+ $(WGET) -P $(DL_DIR) $(LIBXML2_SITE)/$(LIBXML2_SOURCE)
+
+$(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 \
+ --sysconfdir=/etc \
+ --enable-shared \
+ $(DISABLE_NLS) \
+ );
+ touch $(LIBXML2_DIR)/.configured
+
+$(LIBXML2_DIR)/libxml2.la: $(LIBXML2_DIR)/.configured
+ rm -f $@
+ $(MAKE) CC=$(TARGET_CC) -C $(LIBXML2_DIR)
+
+$(STAGING_DIR)/usr/lib/libxml2.so: $(LIBXML2_DIR)/libxml2.la
+ $(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBXML2_DIR) install
+
+$(TARGET_DIR)/usr/lib/libxml2.so: $(STAGING_DIR)/usr/lib/libxml2.so
+ cp -dpf $(STAGING_DIR)/usr/lib/libxml2.so* $(TARGET_DIR)/usr/lib/
+ $(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libxml2.so*
+
+$(TARGET_DIR)/usr/lib/libxml2.a: $(STAGING_DIR)/usr/lib/libxml2.so
+ mkdir -p $(TARGET_DIR)/usr/include
+ cp -dpf $(STAGING_DIR)/usr/lib/libxml2.*a $(TARGET_DIR)/usr/lib/
+# cp -dpf $(STAGING_DIR)/usr/include/mad.h $(TARGET_DIR)/usr/include/
+
+libxml2: uclibc $(TARGET_DIR)/usr/lib/libxml2.so
+
+libxml2-headers: $(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)
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LIBXML2)),y)
+TARGETS+=libxml2
+endif
+ifeq ($(strip $(BR2_PACKAGE_LIBXML2_TARGET_HEADERS)),y)
+TARGETS+=libxml2-headers
+endif
reply other threads:[~2007-07-16 20:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20070716201325.607F6A685B@busybox.net \
--to=ulf@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