diff options
author | Martin Lambers <marlam@marlam.de> | 2011-04-03 19:58:28 (GMT) |
---|---|---|
committer | Martin Lambers <marlam@marlam.de> | 2011-04-03 19:58:28 (GMT) |
commit | a905ff3273e553f619bd3e1615d909c57ea374fa (patch) | |
tree | 3c3d6f322dd73f9611c082d655410bfa73ae0641 | |
parent | 2b34fc14ddeaf27de82f3fbb42c58ed9edc03a7e (diff) | |
download | mxe-a905ff3273e553f619bd3e1615d909c57ea374fa.zip mxe-a905ff3273e553f619bd3e1615d909c57ea374fa.tar.gz mxe-a905ff3273e553f619bd3e1615d909c57ea374fa.tar.bz2 |
new package: libass
-rw-r--r-- | src/libass-test.c | 11 | ||||
-rw-r--r-- | src/libass.mk | 36 |
2 files changed, 47 insertions, 0 deletions
diff --git a/src/libass-test.c b/src/libass-test.c new file mode 100644 index 0000000..3f09044 --- /dev/null +++ b/src/libass-test.c @@ -0,0 +1,11 @@ +/* This file is part of mingw-cross-env. */ +/* See doc/index.html for further information. */ + +#include <ass/ass.h> + +int main(void) +{ + ASS_Library *handle = ass_library_init(); + ass_library_done(handle); + return 0; +} diff --git a/src/libass.mk b/src/libass.mk new file mode 100644 index 0000000..dcd46fa --- /dev/null +++ b/src/libass.mk @@ -0,0 +1,36 @@ +# This file is part of mingw-cross-env. +# See doc/index.html for further information. + +# libass +PKG := libass +$(PKG)_IGNORE := +$(PKG)_VERSION := 0.9.11 +$(PKG)_CHECKSUM := 6f69f6c4474c649de4fd7913b050bfd4cf8110cb +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 +$(PKG)_WEBSITE := http://code.google.com/p/libass/ +$(PKG)_URL := http://libass.googlecode.com/files/$($(PKG)_FILE) +$(PKG)_DEPS := gcc freetype fontconfig + +define $(PKG)_UPDATE + wget -q -O- 'http://code.google.com/p/libass/downloads/list?sort=-uploaded' | \ + $(SED) -n 's,.*libass-\([0-9][^<]*\)\.tar.bz2,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --prefix='$(PREFIX)/$(TARGET)' \ + --disable-shared \ + --disable-png \ + --disable-enca \ + --enable-fontconfig + $(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 |