summaryrefslogtreecommitdiff
path: root/repo/libavc1394
diff options
context:
space:
mode:
Diffstat (limited to 'repo/libavc1394')
-rw-r--r--repo/libavc1394/argp.patch11
-rw-r--r--repo/libavc1394/automake.patch10
-rw-r--r--repo/libavc1394/libavc1394.xibuild38
3 files changed, 59 insertions, 0 deletions
diff --git a/repo/libavc1394/argp.patch b/repo/libavc1394/argp.patch
new file mode 100644
index 0000000..9c86a62
--- /dev/null
+++ b/repo/libavc1394/argp.patch
@@ -0,0 +1,11 @@
+--- ./configure.in.orig
++++ ./configure.in
+@@ -11,6 +11,8 @@
+
+ AC_HEADER_STDC
+ AC_CHECK_HEADERS(sys/time.h sys/types.h unistd.h string.h netinet/in.h stdio.h)
++AC_SEARCH_LIBS([argp_usage], [argp], [],
++ [AC_MSG_ERROR([argp not found. Consider installing argp-standalone])])
+ PKG_CHECK_MODULES(LIBRAW1394, libraw1394 >= 1.0.0)
+
+ #set the libtool shared library version numbers
diff --git a/repo/libavc1394/automake.patch b/repo/libavc1394/automake.patch
new file mode 100644
index 0000000..9bb6280
--- /dev/null
+++ b/repo/libavc1394/automake.patch
@@ -0,0 +1,10 @@
+--- ./configure.in.orig 2012-12-31 19:52:37.126761564 +0000
++++ ./configure.in 2012-12-31 19:52:55.096923632 +0000
+@@ -1,6 +1,6 @@
+ AC_INIT(Makefile.am)
+ AM_INIT_AUTOMAKE(libavc1394, 0.5.4)
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADER(config.h)
+ AM_MAINTAINER_MODE
+
+ AC_PROG_CC
diff --git a/repo/libavc1394/libavc1394.xibuild b/repo/libavc1394/libavc1394.xibuild
new file mode 100644
index 0000000..a86b076
--- /dev/null
+++ b/repo/libavc1394/libavc1394.xibuild
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+NAME="libavc1394"
+DESC="Audio/Video Control library for IEEE-1394 devices"
+
+MAKEDEPS="libraw1394 libtool automake autoconf argp-standalone"
+
+PKG_VER=0.5.4
+SOURCE="https://downloads.sourceforge.net/libavc1394/libavc1394-$PKG_VER.tar.gz"
+
+ADDITIONAL="
+argp.patch
+automake.patch
+"
+
+prepare() {
+ apply_patches
+ autoreconf -fi
+}
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+}
+