mxe/src/libass.mk

33 lines
1.1 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.
2011-04-03 20:58:28 +01:00
PKG := libass
$(PKG)_IGNORE :=
2015-10-09 00:53:22 +01:00
$(PKG)_VERSION := 0.13.0
$(PKG)_CHECKSUM := e0071a3b2e95411c8d474014678368e3f0b852f7d663e0564b344e7335eb0671
2011-04-03 20:58:28 +01:00
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.xz
2015-02-18 22:01:33 +00:00
$(PKG)_URL := https://github.com/libass/libass/releases/download/$($(PKG)_VERSION)/$($(PKG)_FILE)
2015-09-23 08:41:16 +01:00
$(PKG)_DEPS := gcc fontconfig freetype fribidi harfbuzz
2011-04-03 20:58:28 +01:00
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://code.google.com/p/libass/downloads/list?sort=-uploaded' | \
$(SED) -n 's,.*libass-\([0-9][^<]*\)\.tar.*,\1,p' | \
2011-04-03 20:58:28 +01:00
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
2013-12-15 13:53:50 +00:00
$(MXE_CONFIGURE_OPTS) \
--disable-enca \
2013-01-19 19:15:29 +00:00
--enable-fontconfig \
--enable-harfbuzz
2011-04-03 20:58:28 +01:00
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libass.exe' \
`'$(TARGET)-pkg-config' libass --cflags --libs`
endef