summaryrefslogtreecommitdiffstats
path: root/src/libxslt.mk
blob: 44f5dba592e1559a1cbcdbcd1d6c3f3704fb256b (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
27
28
# libxslt

PKG            := libxslt
$(PKG)_VERSION := 1.1.24
$(PKG)_SUBDIR  := libxslt-$($(PKG)_VERSION)
$(PKG)_FILE    := libxslt-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://xmlsoft.org/XSLT/
$(PKG)_URL     := ftp://xmlsoft.org/libxslt/$($(PKG)_FILE)
$(PKG)_DEPS    := gcc libxml2 libgcrypt

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

define $(PKG)_BUILD
    cd '$(1)' && ./configure \
        --host='$(TARGET)' \
        --disable-shared \
        --without-debug \
        --prefix='$(PREFIX)/$(TARGET)' \
        --with-libxml-prefix='$(PREFIX)/$(TARGET)' \
        LIBGCRYPT_CONFIG='$(PREFIX)/$(TARGET)/bin/libgcrypt-config' \
        --without-python \
        --without-plugins
    $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef