mxe/src/harfbuzz.mk

30 lines
928 B
Makefile
Raw Normal View History

2012-11-12 22:07:23 +00:00
# This file is part of MXE.
# See index.html for further information.
PKG := harfbuzz
$(PKG)_IGNORE :=
2014-02-01 11:19:36 +00:00
$(PKG)_VERSION := 0.9.26
$(PKG)_CHECKSUM := 0963768b8ee1f575c5a20828eefb101be6eaae6f
2012-11-12 22:07:23 +00:00
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
2012-11-14 09:53:53 +00:00
$(PKG)_URL := http://www.freedesktop.org/software/$(PKG)/release/$($(PKG)_FILE)
$(PKG)_DEPS := gcc glib cairo freetype icu4c
2012-11-12 22:07:23 +00:00
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://cgit.freedesktop.org/harfbuzz/refs/tags' | \
$(SED) -n "s,.*<a href='[^']*/tag/?id=[^0-9]*\\([0-9][^']*\\)'.*,\\1,p" | \
$(SORT) -V | \
tail -1
2012-11-12 22:07:23 +00:00
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build="`config.guess`" \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared \
--enable-static \
LIBS='-lstdc++'
$(MAKE) -C '$(1)' -j '$(JOBS)' install
2012-11-12 22:07:23 +00:00
endef