blob: 4643660b4e9ae2291d15ffe06363bd1e2d2712d5 (
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
|
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=omxplayer
pkgver=0.20131216
_commitid=b34143cb3e678453ccae968d3a65c0cb5a34333e
pkgrel=0
pkgdesc="Commandline OMX player for Raspberry Pi"
url="https://github.com/popcornmix/omxplayer"
arch="armhf"
license="GPLv2"
depends=""
makedepends="raspberrypi-dev ffmpeg-dev pcre-dev boost-dev freetype-dev dbus-dev"
install=""
subpackages="$pkgname-doc"
source="omxplayer-$pkgver.tar.gz::https://github.com/popcornmix/omxplayer/archive/$_commitid.tar.gz
use-system-libs.patch
"
_srcdir="$srcdir"/$pkgname-$_commitid
prepare() {
local i
cd "$_srcdir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_srcdir"
cat <<EOF > Makefile.include
INCLUDES:=-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux
INCLUDES+=$(pkg-config --cflags freetype2 dbus-1)
LDFLAGS:=-L/opt/vc/lib -Wl,-rpath,/opt/vc/lib
LDFLAGS+=$(pkg-config --libs freetype2 dbus-1)
EOF
make
}
package() {
cd "$_srcdir"
make dist DIST="$pkgdir" || return 1
rm -rf "$pkgdir"/usr/lib/omxplayer
}
md5sums="ae722a186555168545c61c5f1b10be53 omxplayer-0.20131216.tar.gz
f012acde48e989a13fbd9351cb8bcf11 use-system-libs.patch"
sha256sums="efac24685bfb142c2fae4ff5ebed824d6b6d03e01491044bbe558880b31ae1be omxplayer-0.20131216.tar.gz
242c0efdbea973c9623e0ff861d19a842a055aef17884fbbcb87388b31767ed5 use-system-libs.patch"
sha512sums="f61c9c4188c4001fa683ce574b5229c40d54bf0afed33d70ed7eae1ff1b8308880c208a67b65d071b419690b66601dcce6cab6799f7134994d43d27375df9f77 omxplayer-0.20131216.tar.gz
84d184d499f5bc8326aa41bec70eff99855afedd726aacfc962ac5b9b9afed92cfd61a9d9b2f21e2f2af887b1c38cd1fc025a0ec6fd73eafcaf3c7b9d90ef857 use-system-libs.patch"
|