Add package libdvdcss

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
This commit is contained in:
Timothy Gu 2013-10-27 17:11:38 -07:00
parent 06afcb8bba
commit 4faed86b05
2 changed files with 32 additions and 0 deletions

View File

@ -1525,6 +1525,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
<td class="package">libdnet</td>
<td class="website"><a href="http://libdnet.sourceforge.net/">libdnet</a></td>
</tr>
<tr>
<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">libevent</td>
<td class="website"><a href="http://libevent.org/">libevent</a></td>

28
src/libdvdcss.mk Normal file
View File

@ -0,0 +1,28 @@
# This file is part of MXE.
# See index.html for further information.
PKG := libdvdcss
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.2.13
$(PKG)_CHECKSUM := 1a4a5e55c7529da46386c1c333340eee2c325a77
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.bz2
$(PKG)_URL := http://download.videolan.org/pub/libdvdcss/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://download.videolan.org/pub/libdvdcss/last/' | \
$(SED) -n 's,.*libdvdcss-\([0-9][^<]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build="`config.guess`" \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared \
--disable-doc
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
endef