summaryrefslogtreecommitdiffstats
path: root/src/libxml2.mk
blob: 0622fcea65232c2735cf0e24e26e3b3ea7dc6065 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# libxml2

PKG            := libxml2
$(PKG)_VERSION := 2.7.3
$(PKG)_SUBDIR  := libxml2-$($(PKG)_VERSION)
$(PKG)_FILE    := libxml2-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.xmlsoft.org/
$(PKG)_URL     := ftp://xmlsoft.org/libxml2/$($(PKG)_FILE)
$(PKG)_DEPS    := gcc

define $(PKG)_UPDATE
    wget -q -O- 'ftp://xmlsoft.org/libxml2/' | \
    $(SED) -n 's,.*LATEST_LIBXML2_IS_\([0-9][^>]*\)</a>.*,\1,p' | \
    head -1
endef

define $(PKG)_BUILD
    $(SED) 's,`uname`,MinGW,g' -i '$(1)/xml2-config.in'
    cd '$(1)' && ./configure \
        --host='$(TARGET)' \
        --disable-shared \
        --without-debug \
        --prefix='$(PREFIX)/$(TARGET)' \
        --without-python
    $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef