aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdc1394/APKBUILD
blob: a70c511330ab5010c4f2f9172e2613918ab3e33f (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libdc1394
pkgver=2.2.5
pkgrel=0
pkgdesc="High level programming interface to control IEEE 1394 based cameras"
url="http://damien.douxchamps.net/ieee1394/libdc1394/"
arch="all"
license="LGPL"
depends=
depends_dev="libusb-dev libraw1394-dev"
makedepends="$depends_dev linux-headers"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/project/libdc1394/libdc1394-2/$pkgver/libdc1394-$pkgver.tar.gz
	0001-Fix-build-with-musl-libc.patch
	"

builddir="$srcdir"/libdc1394-$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
}

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

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

# there is on ly one tool and its only 4k...
#tools() {
#	pkgdesc="Tools to use with $pkgname"
#	replaces="$pkgname"
#	mkdir -p "$subpkgdir"/usr/
#	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
#}

md5sums="01acfcde2cc85863b0acb90dcffa1659  libdc1394-2.2.5.tar.gz
ab577e13d2efb2e426c726965989c6be  0001-Fix-build-with-musl-libc.patch"
sha256sums="350cc8d08aee5ffc4e1f3049e2e1c2bc6660642d424595157da97ab5b1263337  libdc1394-2.2.5.tar.gz
f58f9c7177d2713959f2e8b9c9bb02124027d3fd17137f2191f65373a88dece2  0001-Fix-build-with-musl-libc.patch"
sha512sums="4a02560b7b2db7199b91c35786cb9d5af51398795fc1b7f0cb577d3563b27c0d03d407fa472d9756a2f87b658350a55d29c16fef401a74f835ba86e25214d13c  libdc1394-2.2.5.tar.gz
7ce7c49941ca1240f9a93492aea77681ca8c29911cc7f9be90708b05a3c5993d3aac2b550c3d5c3e7e4f7a5203850dbbedf77f6a715525aaea366fce7e767cc6  0001-Fix-build-with-musl-libc.patch"