aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdc1394/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/libdc1394/APKBUILD')
-rw-r--r--main/libdc1394/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/main/libdc1394/APKBUILD b/main/libdc1394/APKBUILD
new file mode 100644
index 0000000000..c9cc65944f
--- /dev/null
+++ b/main/libdc1394/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libdc1394
+pkgver=2.1.3
+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"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://downloads.sourceforge.net/project/libdc1394/libdc1394-2/libdc1394-$pkgver.tar.gz"
+
+_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 --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
+}
+
+md5sums="d8b2cbfae1b329fdeaa638da80427334 libdc1394-2.1.3.tar.gz"