aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-04-09 14:56:07 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-04-09 14:56:07 +0000
commitc705a1d65164bb5c9359290ba6cb1aa9518de8be (patch)
tree99e07047150df3ef28ca1ed37c4e0ef88990d3ca /testing
parent8fd2992d5f2ded9e2396dc5fc618a7a1671305cd (diff)
downloadaports-c705a1d65164bb5c9359290ba6cb1aa9518de8be.tar.bz2
aports-c705a1d65164bb5c9359290ba6cb1aa9518de8be.tar.xz
testing/ptlib: new aport
Portable Tools Library http://www.opalvoip.org/
Diffstat (limited to 'testing')
-rw-r--r--testing/ptlib/APKBUILD66
-rw-r--r--testing/ptlib/ptlib-fixcamcrash.patch30
2 files changed, 96 insertions, 0 deletions
diff --git a/testing/ptlib/APKBUILD b/testing/ptlib/APKBUILD
new file mode 100644
index 0000000000..ef50ff4a16
--- /dev/null
+++ b/testing/ptlib/APKBUILD
@@ -0,0 +1,66 @@
+# Contributor: Mika Havela
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=ptlib
+pkgver=2.10.10
+pkgrel=0
+pkgdesc="Portable Tools Library"
+url="http://www.opalvoip.org/"
+arch="all"
+license="MPLv1.0"
+depends=""
+depends_dev="expat-dev openssl-dev sdl-dev alsa-lib-dev"
+makedepends="$depends_dev boost-dev v4l-utils-dev flex bison"
+install=""
+subpackages="$pkgname-dev"
+source="http://download.gnome.org/sources/ptlib/2.10/ptlib-$pkgver.tar.xz
+ ptlib-fixcamcrash.patch"
+
+_builddir="$srcdir"/ptlib-$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 \
+ --disable-static \
+ --enable-plugins \
+ --enable-alsa \
+ --disable-oss \
+ --enable-v4l2 \
+ --disable-avc \
+ --disable-v4l \
+ --disable-pulse \
+ --disable-resolver \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+dev() {
+ default_dev
+ mkdir -p "$subpkgdir"/usr/share
+ mv "$pkgdir"/usr/share/ptlib "$subpkgdir"/usr/share/
+}
+
+md5sums="1fd609e25f101393bb7e42fbf874c174 ptlib-2.10.10.tar.xz
+5a727140c59bcd71c2f41a70821e8917 ptlib-fixcamcrash.patch"
+sha256sums="7fcaabe194cbd3bc0b370b951dffd19cfe7ea0298bfff6aecee948e97f3207e4 ptlib-2.10.10.tar.xz
+9d24ce87ae71b738b1744955bd0516a3b849b2fbb573e266b77046b41803f1a1 ptlib-fixcamcrash.patch"
+sha512sums="9b1490fa7c5c29b9295d560313b457c61091d0ddc8241f40e080acbfbb80bac685d3b2ad81d3c13628ad2816bebc142ac80de536c4cfb8cd48bfb514c0d8a820 ptlib-2.10.10.tar.xz
+d0809d3b1b90cba41543e69e574c98a011d5e88181d98c42ea005ecf0a1f39c86f76be9360e11c4227c6f5157e49532468c6bcce633e28225d052a124204c35c ptlib-fixcamcrash.patch"
diff --git a/testing/ptlib/ptlib-fixcamcrash.patch b/testing/ptlib/ptlib-fixcamcrash.patch
new file mode 100644
index 0000000000..10c6dd79f4
--- /dev/null
+++ b/testing/ptlib/ptlib-fixcamcrash.patch
@@ -0,0 +1,30 @@
+--- ptlib-2.10.10/plugins/vidinput_v4l2/vidinput_v4l2.cxx.orig 2013-02-20 02:12:05.000000000 +0000
++++ ptlib-2.10.10/plugins/vidinput_v4l2/vidinput_v4l2.cxx 2013-03-08 00:07:18.812865388 +0000
+@@ -30,9 +30,9 @@
+ * Contributor(s): Guilhem Tardy (gtardy@salyens.com)
+ * Nicola Orru' <nigu@itadinanta.it>
+ *
+- * $Revision: 27739 $
+- * $Author: rjongbloed $
+- * $Date: 2012-05-30 18:49:09 -0500 (Wed, 30 May 2012) $
++ * $Revision: 29220 $
++ * $Author: ededu $
++ * $Date: 2013-03-07 18:22:08 +0000 (Thu, 07 Mar 2013) $
+ */
+
+ #pragma implementation "vidinput_v4l2.h"
+@@ -219,9 +219,11 @@
+ canSetFrameRate = videoStreamParm.parm.capture.capability & V4L2_CAP_TIMEPERFRAME;
+ if (canSetFrameRate) {
+ if (videoStreamParm.parm.capture.timeperframe.numerator == 0) {
+- PTRACE(1,"PVidInDev\tnumerator is zero and denominator is " << videoStreamParm.parm.capture.timeperframe.denominator << ", driver bug??");
+- }
+- PVideoDevice::SetFrameRate (videoStreamParm.parm.capture.timeperframe.denominator / videoStreamParm.parm.capture.timeperframe.numerator);
++ PTRACE(1,"PVidInDev\tDriver/webcam bug: numerator is zero and denominator is " << videoStreamParm.parm.capture.timeperframe.denominator << ", I assume it cannot set frame rate");
++ canSetFrameRate = PFalse;
++ } else
++ PVideoDevice::SetFrameRate (videoStreamParm.parm.capture.timeperframe.denominator / videoStreamParm.parm.capture.timeperframe.numerator);
++
+ }
+ }
+