aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-03-08 18:52:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-03-09 11:49:45 +0000
commit99e9bed6ff072c149bcc06fd87c5b2f1cb9544d2 (patch)
treef07b5ddce4dbd6f58f6d96781bdf33cd495cfa5b
parentd5f85af2db88b05ed7788296b9c7358b05b8d0dc (diff)
downloadaports-99e9bed6ff072c149bcc06fd87c5b2f1cb9544d2.tar.bz2
aports-99e9bed6ff072c149bcc06fd87c5b2f1cb9544d2.tar.xz
main/libdc1394: new aport
High level programming interface to control IEEE 1394 based cameras http://damien.douxchamps.net/ieee1394/libdc1394/
-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"