summaryrefslogtreecommitdiffstats
path: root/main/v4l-utils/APKBUILD
blob: 0bb818ac0f560f834b61e32e9f9815e5c71c4603 (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
# Contributor: Leonardo Arena <rnalrd@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=v4l-utils
pkgver=0.8.3
pkgrel=0
pkgdesc="Userspace tools and conversion library for Video 4 Linux"
url="http://freshmeat.net/projects/libv4l"
arch="all"
license="LGPL"
depends=""
depends_dev="qt-dev"
makedepends=""
install=""
subpackages="$pkgname-dev"
source="http://linuxtv.org/downloads/v4l-utils/$pkgname-$pkgver.tar.bz2"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
        cd "$_builddir"
        sed -i 's|CFLAGS :=|CFLAGS ?=|' Make.rules
	# TODO: make a proper patch insted of this hugly hack
	# uclibc does not have argp.h
	# http://www.spinics.net/lists/linux-media/msg28619.html
	rm -rf utils/decode_tm6000 utils/keytable
	sed -i 's/decode_tm6000 //g' utils/Makefile
	sed -i 's/keytable //g' utils/Makefile
}

build() {
        cd "$_builddir"
        make PREFIX="/usr" || return 1
}

package() {
        cd "$_builddir"
        make PREFIX="/usr" DESTDIR="$pkgdir" install || return 1
}

md5sums="f25ad639717d7411a58f10a9e378d7db  v4l-utils-0.8.3.tar.bz2"