summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/harfbuzz.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/harfbuzz.mk b/src/harfbuzz.mk
new file mode 100644
index 0000000..0a322f5
--- /dev/null
+++ b/src/harfbuzz.mk
@@ -0,0 +1,27 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := harfbuzz
+$(PKG)_IGNORE :=
+$(PKG)_CHECKSUM := cf2141c89a293995a0ae89e379884d2a6e89b963
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
+$(PKG)_URL := http://www.freedesktop.org/software/$(PKG)/release/$(PKG)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc glib cairo freetype
+
+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" | \
+ grep -v '^1\.[01234]\.' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --build="`config.guess`" \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ --disable-shared \
+ --enable-static
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install
+endef