blob: 582204f7e891d4bd62e8bbdec7a9f6229f3c292f (
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
|
# Maintainer: Karl-Felix Glatzer <karl.glatzer@gmx.de>
pkgname=mingw-w64-libbluray
pkgver=1.3.4
pkgrel=1
pkgdesc='Library to access Blu-Ray disks for video playback (mingw-w64)'
arch=('any')
url='http://www.videolan.org/developers/libbluray.html'
license=('LGPL2.1')
depends=('mingw-w64-crt' 'mingw-w64-fontconfig' 'mingw-w64-freetype2' 'mingw-w64-libxml2')
options=(!strip !buildflags !libtool staticlibs)
makedepends=('mingw-w64-configure' 'mingw-w64-gcc' 'mingw-w64-pkg-config' 'git')
#makedepends=('apache-ant' 'java-environment' 'git' 'mingw-w64-configure' 'mingw-w64-gcc' 'mingw-w64-pkg-config')
#optdepends=('java-runtime: BD-J library')
_tag=bb5bc108ec695889855f06df338958004ff289ef
source=(
git+https://code.videolan.org/videolan/libbluray.git#tag=${_tag}
git+https://code.videolan.org/videolan/libudfread.git
)
sha256sums=(
SKIP
SKIP
)
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
prepare() {
cd libbluray
for submodule in contrib/libudfread; do
git submodule init ${submodule}
git config submodule.${submodule}.url ../${submodule#*/}
git -c protocol.file.allow=always submodule update ${submodule}
done
autoreconf -fiv
}
build() {
for _arch in ${_architectures}; do
mkdir -p ${srcdir}/libbluray/build-${_arch} && cd ${srcdir}/libbluray/build-${_arch}
${_arch}-configure \
--disable-bdjava-jar
make
done
}
package() {
for _arch in ${_architectures}; do
cd ${srcdir}/libbluray/build-${_arch}
make DESTDIR="$pkgdir" install
${_arch}-strip -s ${pkgdir}/usr/${_arch}/bin/*.exe
${_arch}-strip -x -g ${pkgdir}/usr/${_arch}/bin/*.dll
${_arch}-strip -g ${pkgdir}/usr/${_arch}/lib/*.a
done
}
# vim:set ts=2 sw=2 et:
|