blob: 28af3b04b2b2c56a7e1119a8b74011bf96cfd13c (
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
29
30
31
32
33
34
35
36
37
|
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := libass
$(PKG)_WEBSITE := https://code.google.com/p/libass/
$(PKG)_IGNORE :=
# remove autoreconf step after 0.13.1
# https://github.com/libass/libass/issues/209
$(PKG)_VERSION := 0.13.1
$(PKG)_CHECKSUM := 4aa36b1876a61cab46fc9284fee84224b9e2840fe7b3e63d96a8d32574343fe7
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.xz
$(PKG)_URL := https://github.com/libass/libass/releases/download/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc fontconfig freetype fribidi harfbuzz
define $(PKG)_UPDATE
$(WGET) -q -O- "https://api.github.com/repos/libass/libass/releases" | \
grep 'tag_name' | \
$(SED) -n 's,.*tag_name": "\([0-9][^>]*\)".*,\1,p' | \
$(SORT) -Vr | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && $(LIBTOOLIZE) && autoreconf -fi
# fontconfig is only required for legacy XP support
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--enable-fontconfig \
--enable-harfbuzz
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-libass.exe' \
`'$(TARGET)-pkg-config' libass --cflags --libs`
endef
|