summaryrefslogtreecommitdiffstats
path: root/package/ezxml/ezxml.mk
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-02-24 20:18:00 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-02-24 20:18:00 +0000
commitf1f84ce3af1a80a30f4b89686310c70f584e7c19 (patch)
tree458b5774424eb3845a42dd6ed5513b8708b9357b /package/ezxml/ezxml.mk
parent7cf2be4402003728f5a337580ffd656a5ea33691 (diff)
downloadbuildroot-novena-f1f84ce3af1a80a30f4b89686310c70f584e7c19.tar.gz
buildroot-novena-f1f84ce3af1a80a30f4b89686310c70f584e7c19.zip
ezxml package
Diffstat (limited to 'package/ezxml/ezxml.mk')
-rw-r--r--package/ezxml/ezxml.mk47
1 files changed, 47 insertions, 0 deletions
diff --git a/package/ezxml/ezxml.mk b/package/ezxml/ezxml.mk
new file mode 100644
index 000000000..312c9927e
--- /dev/null
+++ b/package/ezxml/ezxml.mk
@@ -0,0 +1,47 @@
+#############################################################
+#
+# ezxml
+#
+#############################################################
+
+EZXML_VERSION:=0.8.6
+EZXML_SOURCE:=ezxml-$(EZXML_VERSION).tar.gz
+EZXML_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/ezxml/
+EZXML_DIR:=$(BUILD_DIR)/ezxml
+
+$(DL_DIR)/$(EZXML_SOURCE):
+ $(WGET) -P $(DL_DIR) $(EZXML_SITE)/$(EZXML_SOURCE)
+
+$(EZXML_DIR)/.unpacked: $(DL_DIR)/$(EZXML_SOURCE)
+ $(ZCAT) $(DL_DIR)/$(EZXML_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ toolchain/patch-kernel.sh $(EZXML_DIR) package/ezxml/ ezxml-$(EZXML_VERSION)\*.patch
+ touch $@
+
+$(EZXML_DIR)/.configured: $(EZXML_DIR)/.unpacked
+ touch $@
+
+$(EZXML_DIR)/libezxml.a: $(EZXML_DIR)/.configured
+ $(MAKE) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" AR=$(TARGET_AR) \
+ -f GNUmakefile -C $(EZXML_DIR)
+
+$(STAGING_DIR)/usr/lib/libezxml.a: $(EZXML_DIR)/libezxml.a
+ cp $(EZXML_DIR)/ezxml.h $(STAGING_DIR)/usr/include
+ cp $(EZXML_DIR)/libezxml.a $(STAGING_DIR)/usr/lib
+
+ezxml: uclibc $(STAGING_DIR)/usr/lib/libezxml.a
+
+ezxml-source: $(DL_DIR)/$(EZXML_SOURCE)
+
+ezxml-clean:
+ -$(MAKE) -C $(EZXML_DIR) -f GNUmakefile clean
+
+ezxml-dirclean:
+ rm -rf $(EZXML_DIR)
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_EZXML)),y)
+TARGETS+=ezxml
+endif