blob: 2e16600864596c46aab5b8db443ff2c381ce0ea4 (
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
59
|
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libbluray
pkgver=0.4.0
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"
update_config_sub || return 1
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="c7a1cc71cb9747f93122ec650d4ae933 libbluray-0.4.0.tar.bz2"
sha256sums="63a3218d69f179f4834ef3b48bfa95268ad62c302ff38bfc052e2fc6916ae3f8 libbluray-0.4.0.tar.bz2"
sha512sums="7f9a7c017c400b7d4290635860a8440110a91dcf21966fd0352ecc212b9ff579d6a5c7a8adc729904540120916c249b90f58adee023416c60c210434dff73df5 libbluray-0.4.0.tar.bz2"
|