Add libdvdnav and libdvdread

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
This commit is contained in:
Timothy Gu 2014-03-22 11:51:42 -07:00
parent 14fa184351
commit f819e20549
3 changed files with 93 additions and 0 deletions

View File

@ -1595,6 +1595,14 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
<td class="package">libdvdcss</td>
<td class="website"><a href="http://www.videolan.org/developers/libdvdcss.html">libdvdcss</a></td>
</tr>
<tr>
<td class="package">libdvdread</td>
<td class="website"><a href="https://dvdnav.mplayerhq.hu/">libdvdread</a></td>
</tr>
<tr>
<td class="package">libdvdnav</td>
<td class="website"><a href="https://dvdnav.mplayerhq.hu/">libdvdnav</a></td>
</tr>
<tr>
<td class="package">libevent</td>
<td class="website"><a href="http://libevent.org/">libevent</a></td>

40
src/libdvdnav.mk Normal file
View File

@ -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

45
src/libdvdread.mk Normal file
View File

@ -0,0 +1,45 @@
# This file is part of MXE.
# See index.html for further information.
PKG := libdvdread
$(PKG)_IGNORE :=
$(PKG)_VERSION := 7c74365
$(PKG)_CHECKSUM := 99b12a4147064df85a7e5d6b0f00c00342c520a4
$(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)
# libdvdread supports libdvdcss either by dynamic loading (dlfcn-win32) or
# directly linking to libdvdcss. We directly links to the library here.
$(PKG)_DEPS := gcc libdvdcss
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://github.com/mirror/libdvdread/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,.*libdvdread-\([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) \
--with-libdvdcss \
--disable-apidoc
$(MAKE) -C '$(1)' -j '$(JOBS)' LDFLAGS=-no-undefined
$(MAKE) -C '$(1)' -j 1 install LDFLAGS=-no-undefined
endef