• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/xerces/xerces.mk
"Steven J. Hill""Steven J. Hill" committed 1f92831170d07 May 2007
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
#############################################################
2
#
3
# xerces
4
#
5
#############################################################
6
XERCES_VERSION:=2.7.0
7
XERCES_SOURCE:=xerces-c-src_2_7_0.tar.gz
8
XERCES_SITE:=http://www.apache.org/dist/xml/xerces-c/source/
9
XERCES_CAT:=$(ZCAT)
10
XERCES_DIR:=$(BUILD_DIR)/xerces-c-src_2_7_0
11
XERCES_BINARY:=lib/libxerces-c.so.27.0
12
​
13
$(DL_DIR)/$(XERCES_SOURCE):
14
     $(WGET) -P $(DL_DIR) $(XERCES_SITE)/$(XERCES_SOURCE)
15
​
16
xerces-source: $(DL_DIR)/$(XERCES_SOURCE)
17
​
18
$(XERCES_DIR)/.unpacked: $(DL_DIR)/$(XERCES_SOURCE)
19
    $(XERCES_CAT) $(DL_DIR)/$(XERCES_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
20
#   toolchain/patch-kernel.sh $(XERCES_DIR) package/xerces/ \*.patch*
21
    touch $(XERCES_DIR)/.unpacked
22
​
23
$(XERCES_DIR)/.configured: $(XERCES_DIR)/.unpacked
24
    (cd $(XERCES_DIR)/src/xercesc; rm -rf config.cache; \
25
        $(TARGET_CONFIGURE_OPTS) \
26
        XERCESCROOT=$(XERCES_DIR) \
27
        ./runConfigure -plinux -minmem \
28
        -nsocket -tnative -rpthread \
29
        -c$(TARGET_CC) -x$(TARGET_CXX) \
30
    );
31
    touch $(XERCES_DIR)/.configured
32
​
33
$(XERCES_DIR)/$(XERCES_BINARY): $(XERCES_DIR)/.configured
34
    $(MAKE) XERCESCROOT=$(XERCES_DIR) -C $(XERCES_DIR)/src/xercesc
35
​
36
$(STAGING_DIR)/$(XERCES_BINARY): $(XERCES_DIR)/$(XERCES_BINARY)
37
    $(MAKE) XERCESCROOT=$(XERCES_DIR) PREFIX=$(STAGING_DIR) \
38
        -C $(XERCES_DIR)/src/xercesc install
39
​
40
$(TARGET_DIR)/usr/$(XERCES_BINARY): $(STAGING_DIR)/$(XERCES_BINARY)
41
    cp -a $(STAGING_DIR)/lib/libxerces-c.so* $(TARGET_DIR)/usr/lib
42
    cp -a $(STAGING_DIR)/lib/libxerces-depdom.so* $(TARGET_DIR)/usr/lib
43
    $(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libxerces-c.so.27.0
44
    $(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libxerces-depdom.so.27.0
45
​
46
xerces: uclibc $(TARGET_DIR)/usr/$(XERCES_BINARY)
47
​
48
xerces-clean:
49
    rm -rf $(STAGING_DIR)/include/xercesc
50
    rm -f $(STAGING_DIR)/lib/libxerces*
51
    rm -f $(TARGET_DIR)/usr/lib/libxerces*
52
    -$(MAKE) -C $(XERCES_DIR) clean
53
​
54
xerces-dirclean:
55
    rm -rf $(XERCES_DIR)
56
​
57
#############################################################
58
#
59
# Toplevel Makefile options
60
#
61
#############################################################
62
ifeq ($(strip $(BR2_PACKAGE_XERCES)),y)
63
TARGETS+=xerces
64
endif
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.