blob: 2a6d7f0ee7211721c65fba9cc09576b4479b9dec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libbluray
pkgver=0.6.2
pkgrel=0
pkgdesc="a library designed for Blu-Ray Discs playback"
url="http://www.videolan.org/developers/libbluray.html"
arch="all"
license="LGPL"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://download.videolan.org/pub/videolan/libbluray/$pkgver/libbluray-$pkgver.tar.bz2"
_builddir="$srcdir"/libbluray-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
# uclibc needs _BSD_SOURCE to provide strdup() from string.h
# glibc (since 2.12) does this with _POSIX_C_SOURCE >= 200809L too
# and this seems to be what libbluray assumes
export CFLAGS="$CFLAGS -D_BSD_SOURCE"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--without-libxml2 \
--without-freetype \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
}
md5sums="f4d2f2cab53f976cbb22cbae069057bd libbluray-0.6.2.tar.bz2"
sha256sums="8ca410c8a4a1e2e8344014a67e2c908182cff3e04ece4e3b9ef196cf6bca5cd0 libbluray-0.6.2.tar.bz2"
sha512sums="20fbc5f34d7d025efaac1b6398c18b94b603a52bfb6dd0f021059d3bd4c3cf785e715698cd09e5d1c97a7ed11bbd146b29aa363650620eef1efca08053fc033a libbluray-0.6.2.tar.bz2"
|