You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/harfbuzz.mk

30 lines
1.0 KiB

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := harfbuzz
7 years ago
$(PKG)_WEBSITE := https://wiki.freedesktop.org/www/Software/HarfBuzz/
$(PKG)_DESCR := HarfBuzz
$(PKG)_IGNORE :=
5 years ago
$(PKG)_VERSION := 2.4.0
$(PKG)_CHECKSUM := 9035005903da74667d28bb181986e879e11da3d5986722759fa145cca781ead6
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
7 years ago
$(PKG)_URL := https://www.freedesktop.org/software/$(PKG)/release/$($(PKG)_FILE)
$(PKG)_DEPS := cc cairo freetype-bootstrap glib icu4c
define $(PKG)_UPDATE
7 years ago
$(WGET) -q -O- 'https://cgit.freedesktop.org/harfbuzz/refs/tags' | \
$(SED) -n "s,.*<a href='[^']*/tag/?h=[^0-9]*\\([0-9.]*\\)'.*,\\1,p" | \
$(SORT) -V | \
tail -1
endef
define $(PKG)_BUILD
# mman-win32 is only a partial implementation
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
ac_cv_header_sys_mman_h=no \
CXXFLAGS='-std=c++11' \
LIBS='-lstdc++'
$(MAKE) -C '$(1)' -j '$(JOBS)' install
endef