summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2013-10-28 00:11:38 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2013-11-10 18:07:36 (GMT)
commit4faed86b0521553de0d7b039028fa7044bb0ab71 (patch)
tree55c564622430b0edf1046c9ef08b35854baa1a88
parent06afcb8bba439193921f862192703e9ea203aae5 (diff)
downloadmxe-4faed86b0521553de0d7b039028fa7044bb0ab71.zip
mxe-4faed86b0521553de0d7b039028fa7044bb0ab71.tar.gz
mxe-4faed86b0521553de0d7b039028fa7044bb0ab71.tar.bz2
Add package libdvdcss
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
-rw-r--r--index.html4
-rw-r--r--src/libdvdcss.mk28
2 files changed, 32 insertions, 0 deletions
diff --git a/index.html b/index.html
index 04fbc51..767570f 100644
--- a/index.html
+++ b/index.html
@@ -1526,6 +1526,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
<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>
</tr>
diff --git a/src/libdvdcss.mk b/src/libdvdcss.mk
new file mode 100644
index 0000000..cf8f069
--- /dev/null
+++ b/src/libdvdcss.mk
@@ -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