mxe/src/libass.mk

34 lines
1.0 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 :=
2012-10-17 10:55:50 +01:00
$(PKG)_CHECKSUM := 6ebc6c4762c95c5abb96db33289b81780a4fbda6
2011-04-03 20:58:28 +01:00
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.xz
2011-04-03 20:58:28 +01:00
$(PKG)_URL := http://libass.googlecode.com/files/$($(PKG)_FILE)
$(PKG)_DEPS := gcc freetype fontconfig fribidi
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 \
--host='$(TARGET)' \
2012-10-17 10:55:50 +01:00
--build="`config.guess`" \
2011-04-03 20:58:28 +01:00
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared \
--disable-enca \
--enable-fontconfig
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