aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-08-10 07:27:30 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-08-10 07:27:30 +0000
commit8fe786916ffaf91d2d0edab20ca3868c0bdd9554 (patch)
treecad9cc6dad36ccb37e7069955b0a3a18b696a594
parent3c3d049b38e95a2de1c4f79dc80f83fa16984d18 (diff)
downloadaports-8fe786916ffaf91d2d0edab20ca3868c0bdd9554.tar.bz2
aports-8fe786916ffaf91d2d0edab20ca3868c0bdd9554.tar.xz
testing/sngtc_client: new aport
Sangoma Media Transcode client and lib http://wiki.sangoma.com/Transcoding-distributed-install
-rw-r--r--testing/sngtc_client/APKBUILD46
-rw-r--r--testing/sngtc_client/sngtc_client-dynamic-ortp.patch13
2 files changed, 59 insertions, 0 deletions
diff --git a/testing/sngtc_client/APKBUILD b/testing/sngtc_client/APKBUILD
new file mode 100644
index 0000000000..cb1a48f281
--- /dev/null
+++ b/testing/sngtc_client/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=sngtc_client
+pkgver=1.3.2
+pkgrel=0
+pkgdesc="Sangoma Media Transcode client and lib"
+url="http://wiki.sangoma.com/Transcoding-distributed-install"
+arch="all"
+license="LGPL"
+depends=""
+makedepends="ortp-dev"
+install=""
+subpackages="$pkgname-dev"
+# they ship firmware updater and server lib as precompiled closed source
+# thats why the source package holds <arch>. The client code appears to
+# be equal on both i686 an x86_64 so we just pick i686 package for all
+# our archs.
+source="ftp://ftp.sangoma.com/linux/transcoding/sng-tc-linux-$pkgver.i686.tgz
+ sngtc_client-dynamic-ortp.patch"
+
+_builddir="$srcdir"/sng-tc-linux-$pkgver.i686
+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
+ # use dynamic ortp from system
+ rm -r client/sngtc_client/*ortp*
+}
+
+build() {
+ cd "$_builddir"
+ make libsngtc libsngtc_node sngtc_client || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" libsngtc_node-install sngtc_client-install || return 1
+}
+
+md5sums="6db4f71d2cd798f7802b71300d476e5a sng-tc-linux-1.3.2.i686.tgz
+2c6b702af7ec9adc144823000012336c sngtc_client-dynamic-ortp.patch"
diff --git a/testing/sngtc_client/sngtc_client-dynamic-ortp.patch b/testing/sngtc_client/sngtc_client-dynamic-ortp.patch
new file mode 100644
index 0000000000..0c873ab0b4
--- /dev/null
+++ b/testing/sngtc_client/sngtc_client-dynamic-ortp.patch
@@ -0,0 +1,13 @@
+diff --git a/client/sngtc_client/Makefile b/client/sngtc_client/Makefile
+index cd8550e..77f891e 100644
+--- a/client/sngtc_client/Makefile
++++ b/client/sngtc_client/Makefile
+@@ -18,7 +18,7 @@ LDFLAGS += -L. -L../../lib
+ .PHONY: all
+ all: $(toolname)
+
+-$(toolname): sngtc_client.o libortp.a
++$(toolname): sngtc_client.o
+ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS)
+
+ .PHONY: clean