mxe/src/libxslt.mk

34 lines
1.0 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2008-11-08 19:19:22 +00:00
PKG := libxslt
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.1.28
2012-11-21 09:51:00 +00:00
$(PKG)_CHECKSUM := 4df177de629b2653db322bfb891afa3c0d1fa221
$(PKG)_SUBDIR := libxslt-$($(PKG)_VERSION)
$(PKG)_FILE := libxslt-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := ftp://xmlsoft.org/libxslt/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libxml2 libgcrypt
2008-11-08 19:19:22 +00:00
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://git.gnome.org/browse/libxslt/refs/tags' | \
grep '<a href=' | \
$(SED) -n "s,.*<a href='[^']*/tag/?id=v\\([0-9][^']*\\)'.*,\\1,p" | \
2008-11-08 19:19:22 +00:00
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
2012-11-21 09:51:00 +00:00
--build="`config.guess`" \
2008-11-08 19:19:22 +00:00
--disable-shared \
--without-debug \
--prefix='$(PREFIX)/$(TARGET)' \
--with-libxml-prefix='$(PREFIX)/$(TARGET)' \
--without-python \
--without-plugins
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef
$(PKG)_BUILD_SHARED =