aboutsummaryrefslogtreecommitdiffstats
path: root/main/libbluray/APKBUILD
blob: 9889f77a3ec5dc4b39892f8a9f44e517d18aeb2b (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.5.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="04cf15d0f3581a955d3a2ccb9dc06e9e  libbluray-0.5.0.tar.bz2"
sha256sums="19213e193e1abc5ed2de65edfb539deda1dbf6cc64dfef03e405524c9c6f7216  libbluray-0.5.0.tar.bz2"
sha512sums="bd709a01689bbb03ac291a2544eee93b47d72e065c8ccf825f9fb568ddb339a75a18c721b3c59fd4a8214a0f9b652cbd845bccd9de08248dd4cf61616a77e1dd  libbluray-0.5.0.tar.bz2"