summaryrefslogtreecommitdiffstats
path: root/src/libdvdnav.mk
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-03-22 18:51:42 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-03-24 01:36:17 (GMT)
commitf819e20549c18065f846476cee0d4c95fc111e7a (patch)
tree7965dbbb826531807421a2e146adee860aafdbf0 /src/libdvdnav.mk
parent14fa184351601d4ab1eff2a6ed4d290fc0bcec23 (diff)
downloadmxe-f819e20549c18065f846476cee0d4c95fc111e7a.zip
mxe-f819e20549c18065f846476cee0d4c95fc111e7a.tar.gz
mxe-f819e20549c18065f846476cee0d4c95fc111e7a.tar.bz2
Add libdvdnav and libdvdread
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/libdvdnav.mk')
-rw-r--r--src/libdvdnav.mk40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/libdvdnav.mk b/src/libdvdnav.mk
new file mode 100644
index 0000000..7e78aea
--- /dev/null
+++ b/src/libdvdnav.mk
@@ -0,0 +1,40 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := libdvdnav
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 4d3753f
+$(PKG)_CHECKSUM := 0717da4d0997cc43417afd58d9fc7ef35711c20e
+$(PKG)_SUBDIR := mirror-$(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := https://github.com/mirror/$(PKG)/tarball/$($(PKG)_VERSION)/$($(PKG)_FILE)
+# Use Git snapshot for now because of its crash and assertion fixes
+# Commented out until new version based on Git is released
+# $(PKG)_VERSION := 4.2.1
+# $(PKG)_CHECKSUM :=
+# $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+# $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
+# $(PKG)_URL := https://dvdnav.mplayerhq.hu/releases/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc libdvdread
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'https://github.com/mirror/libdvdnav/commits/master' | \
+ $(SED) -n 's#.*<span class="sha">\([^<]\{7\}\)[^<]\{3\}<.*#\1#p' | \
+ head -1
+endef
+
+define $(PKG)_UPDATE_RELEASE
+ $(WGET) -q -O- 'https://dvdnav.mplayerhq.hu/releases/' | \
+ $(SED) -n 's,.*libdvdnav-\([0-9][^<]*\)\.tar.*,\1,p' | \
+ grep -v 'alpha\|beta\|rc' | \
+ $(SORT) -V | \
+ tail -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && autoreconf -fi
+ cd '$(1)' && ./configure \
+ $(MXE_CONFIGURE_OPTS)
+ $(MAKE) -C '$(1)' -j '$(JOBS)' LDFLAGS=-no-undefined
+ $(MAKE) -C '$(1)' -j 1 install LDFLAGS=-no-undefined
+endef