aboutsummaryrefslogtreecommitdiffstats
path: root/testing/opal
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:57:59 +0000
commit39da6f39be491ea8925932ed5f681dcd1deb7f3e (patch)
tree693ab961273781c0f9669c3a9ccd9d4caf6865a8 /testing/opal
parentc705a1d65164bb5c9359290ba6cb1aa9518de8be (diff)
downloadaports-39da6f39be491ea8925932ed5f681dcd1deb7f3e.tar.bz2
aports-39da6f39be491ea8925932ed5f681dcd1deb7f3e.tar.xz
testing/opal: new aport
Open Phone Abstraction Library http://www.opalvoip.org/
Diffstat (limited to 'testing/opal')
-rw-r--r--testing/opal/APKBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/opal/APKBUILD b/testing/opal/APKBUILD
new file mode 100644
index 0000000000..b10462bfe7
--- /dev/null
+++ b/testing/opal/APKBUILD
@@ -0,0 +1,55 @@
+# Contributor: Mika Havela
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=opal
+pkgver=3.10.10
+pkgrel=0
+pkgdesc="Open Phone Abstraction Library"
+url="http://www.opalvoip.org/"
+arch="all"
+license="MPLv1.0"
+depends=""
+depends_dev="openssl-dev ptlib-dev speex-dev"
+makedepends="$depends_dev sdl-dev libtheora-dev"
+install=""
+subpackages="$pkgname-dev"
+source="http://download.gnome.org/sources/opal/3.10/opal-$pkgver.tar.xz"
+
+_builddir="$srcdir"/opal-$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
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+dev() {
+ default_dev
+ mkdir -p "$subpkgdir"/usr/share/opal/make
+ install -m644 "$_builddir"/opal_defs.mak \
+ "$_builddir"/opal_inc.mak \
+ "$subpkgdir"/usr/share/opal/make
+}
+
+md5sums="6efa1b4c5e0ad6460019b4c6df0898d7 opal-3.10.10.tar.xz"
+sha256sums="f208985003461b2743575eccac13ad890b3e5baac35b68ddef17162460aff864 opal-3.10.10.tar.xz"
+sha512sums="b72a058e001b5bf69de64467e6fc90280ec83bf31f46fa9f504e921b4702450f8732c7df333b9677e04cf1d33d27efbe22056211da94b879e013f5d7bcaa8465 opal-3.10.10.tar.xz"