summaryrefslogtreecommitdiff
path: root/package/xerces/xerces.mk
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2007-05-07 03:58:30 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2007-05-07 03:58:30 +0000
commit1f92831170d5be9cb0511f6f9360d3c2daf3d24c (patch)
tree831eb1a20f5213fa08ba2d7b39c932aaefd70449 /package/xerces/xerces.mk
parent0a41ba39e26b08d9a000a917eeccd948e9da12a7 (diff)
Add new packages.
Diffstat (limited to 'package/xerces/xerces.mk')
-rw-r--r--package/xerces/xerces.mk64
1 files changed, 64 insertions, 0 deletions
diff --git a/package/xerces/xerces.mk b/package/xerces/xerces.mk
new file mode 100644
index 000000000..71a7ac27e
--- /dev/null
+++ b/package/xerces/xerces.mk
@@ -0,0 +1,64 @@
+#############################################################
+#
+# xerces
+#
+#############################################################
+XERCES_VERSION:=2.7.0
+XERCES_SOURCE:=xerces-c-src_2_7_0.tar.gz
+XERCES_SITE:=http://www.apache.org/dist/xml/xerces-c/source/
+XERCES_CAT:=$(ZCAT)
+XERCES_DIR:=$(BUILD_DIR)/xerces-c-src_2_7_0
+XERCES_BINARY:=lib/libxerces-c.so.27.0
+
+$(DL_DIR)/$(XERCES_SOURCE):
+ $(WGET) -P $(DL_DIR) $(XERCES_SITE)/$(XERCES_SOURCE)
+
+xerces-source: $(DL_DIR)/$(XERCES_SOURCE)
+
+$(XERCES_DIR)/.unpacked: $(DL_DIR)/$(XERCES_SOURCE)
+ $(XERCES_CAT) $(DL_DIR)/$(XERCES_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+# toolchain/patch-kernel.sh $(XERCES_DIR) package/xerces/ \*.patch*
+ touch $(XERCES_DIR)/.unpacked
+
+$(XERCES_DIR)/.configured: $(XERCES_DIR)/.unpacked
+ (cd $(XERCES_DIR)/src/xercesc; rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) \
+ XERCESCROOT=$(XERCES_DIR) \
+ ./runConfigure -plinux -minmem \
+ -nsocket -tnative -rpthread \
+ -c$(TARGET_CC) -x$(TARGET_CXX) \
+ );
+ touch $(XERCES_DIR)/.configured
+
+$(XERCES_DIR)/$(XERCES_BINARY): $(XERCES_DIR)/.configured
+ $(MAKE) XERCESCROOT=$(XERCES_DIR) -C $(XERCES_DIR)/src/xercesc
+
+$(STAGING_DIR)/$(XERCES_BINARY): $(XERCES_DIR)/$(XERCES_BINARY)
+ $(MAKE) XERCESCROOT=$(XERCES_DIR) PREFIX=$(STAGING_DIR) \
+ -C $(XERCES_DIR)/src/xercesc install
+
+$(TARGET_DIR)/usr/$(XERCES_BINARY): $(STAGING_DIR)/$(XERCES_BINARY)
+ cp -a $(STAGING_DIR)/lib/libxerces-c.so* $(TARGET_DIR)/usr/lib
+ cp -a $(STAGING_DIR)/lib/libxerces-depdom.so* $(TARGET_DIR)/usr/lib
+ $(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libxerces-c.so.27.0
+ $(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libxerces-depdom.so.27.0
+
+xerces: uclibc $(TARGET_DIR)/usr/$(XERCES_BINARY)
+
+xerces-clean:
+ rm -rf $(STAGING_DIR)/include/xercesc
+ rm -f $(STAGING_DIR)/lib/libxerces*
+ rm -f $(TARGET_DIR)/usr/lib/libxerces*
+ -$(MAKE) -C $(XERCES_DIR) clean
+
+xerces-dirclean:
+ rm -rf $(XERCES_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_XERCES)),y)
+TARGETS+=xerces
+endif