aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdv/APKBUILD
blob: 7ec038b64be2c734639fd649f27f4cbf2ebbee5c (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: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libdv
pkgver=1.0.0
pkgrel=3
pkgdesc="Software decoder for DV format video"
url="http://libdv.sourceforge.net/"
arch="all"
license="LGPLv2+"
depends=
makedepends="gtk+-dev libxv-dev sdl-dev autoconf automake libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="http://downloads.sourceforge.net/libdv/libdv-$pkgver.tar.gz
	libdv-0.104-no-exec-stack.patch
	libdv-1.0.0-dso-linking.patch
	libdv-1.0.0-pic.patch
	libdv-1.0.0-gtk2.patch
	automake.patch
	"

_builddir="$srcdir"/libdv-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	libtoolize && autoreconf
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-pic \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
}

tools() {
	pkgdesc="Basic tools to manipulate Digital Video streams"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

md5sums="f895162161cfa4bb4a94c070a7caa6c7  libdv-1.0.0.tar.gz
e1cf9483fe9efdab5e2326fccbdb7ed5  libdv-0.104-no-exec-stack.patch
9e3a12489495e01ad0ddf5a3ea2cef7f  libdv-1.0.0-dso-linking.patch
4fb792fd927a7abbc0e2ab9a8e96df53  libdv-1.0.0-pic.patch
0498e719e3ed660a97b889b0502a4cb8  libdv-1.0.0-gtk2.patch
435221ff530f32c013a43c473e34b66e  automake.patch"