diff options
Diffstat (limited to 'src/libbluray.mk')
-rw-r--r-- | src/libbluray.mk | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/libbluray.mk b/src/libbluray.mk new file mode 100644 index 0000000..bc8c572 --- /dev/null +++ b/src/libbluray.mk @@ -0,0 +1,33 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := libbluray +$(PKG)_IGNORE := +$(PKG)_VERSION := 0.5.0 +$(PKG)_CHECKSUM := 1a9c61daefc31438f9165e7681c563d0524b2d3e +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $($(PKG)_SUBDIR).tar.bz2 +$(PKG)_URL := ftp://ftp.videolan.org/pub/videolan/libbluray/$($(PKG)_VERSION)/$($(PKG)_FILE) +$(PKG)_DEPS := gcc freetype libxml2 + +define $(PKG)_UPDATE + $(WGET) -q -O- 'http://www.videolan.org/developers/libbluray.html' | \ + $(SED) -n 's,.*libbluray-\([0-9][^<]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + $(MXE_CONFIGURE_OPTS) \ + --disable-examples \ + --with-freetype \ + --with-libxml2 \ + --disable-bdjava + $(MAKE) -C '$(1)' -j '$(JOBS)' LDFLAGS='-no-undefined' + $(MAKE) -C '$(1)' -j 1 install + + '$(TARGET)-gcc' \ + -W -Wall -Werror -ansi -pedantic \ + '$(1)/src/examples/sound_dump.c' -o '$(PREFIX)/$(TARGET)/bin/test-libbluray.exe' \ + `'$(TARGET)-pkg-config' libbluray --cflags --libs` +endef |