blob: 94d6552c48353f42560d64cfcbb143713d72cd74 (
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
60
61
62
63
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=v4l-utils
pkgver=0.8.9
pkgrel=1
pkgdesc="Userspace tools and conversion library for Video 4 Linux"
url="http://freshmeat.net/projects/libv4l"
arch="all"
license="LGPL"
depends=""
makedepends="qt-dev libjpeg-turbo-dev libiconv-dev"
[ "$ALPINE_LIBC" != "eglibc" ] && makedepends="$makedepends argp-standalone"
install=""
subpackages="$pkgname-dev qv4l2"
source="http://linuxtv.org/downloads/v4l-utils/$pkgname-$pkgver.tar.bz2
qv4l2.svg
qv4l2.desktop
"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
sed -i 's|CFLAGS :=|CFLAGS ?=|' \
Make.rules || return 1
if [ "$ALPINE_LIBC" != "eglibc" ]; then
export ARGP_LIBS="-largp"
export ICONV_LIBS="-liconv"
sed -ie 's/\$\^/$\^\ \$(ARGP_LIBS)/' \
utils/decode_tm6000/Makefile || return 1
sed -ie 's/\$\^/$\^\ \$(ARGP_LIBS)/' \
utils/keytable/Makefile || return 1
sed -ie 's/\$\^/$\^\ \$(ARGP_LIBS)/' \
utils/v4l2-sysfs-path/Makefile || return 1
export LDLIBS="$ARGP_LIBS $ICONV_LIBS"
fi
}
build() {
cd "$_builddir"
make PREFIX="/usr" || return 1
}
package() {
cd "$_builddir"
make -j1 PREFIX="/usr" DESTDIR="$pkgdir" install || return 1
install -Dm644 "$srcdir"/qv4l2.desktop \
"$pkgdir"/usr/share/applications/qv4l2.desktop || return 1
install -Dm644 "$srcdir"/qv4l2.svg \
"$pkgdir"/usr/share/icons/hicolor/scalable/apps/qv4l2.svg
}
qv4l2() {
pkgdesc="QT v4l2 test control and streaming test application"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/qv4l2 "$subpkgdir"/usr/bin/ || return 1
mv "$pkgdir"/usr/share "$subpkgdir"/usr/ || return 1
}
md5sums="cc4f34a1494275ed70f76f2a806dca6a v4l-utils-0.8.9.tar.bz2
75ef594ddfe48e48df99c96c2af6b51e qv4l2.svg
b2e51f9663cee1c38a1d99d76a6b529f qv4l2.desktop"
|