aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/sngtc_client/APKBUILD48
-rw-r--r--main/sngtc_client/sngtc_client-dynamic-ortp.patch13
2 files changed, 61 insertions, 0 deletions
diff --git a/main/sngtc_client/APKBUILD b/main/sngtc_client/APKBUILD
new file mode 100644
index 0000000000..d0f9dbf6bd
--- /dev/null
+++ b/main/sngtc_client/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=sngtc_client
+pkgver=1.3.2
+pkgrel=1
+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
+ mkdir -p "$pkgdir"/usr/include/sng_tc
+ cp server/libsngtc/*.h "$pkgdir"/usr/include/sng_tc/
+}
+
+md5sums="6db4f71d2cd798f7802b71300d476e5a sng-tc-linux-1.3.2.i686.tgz
+2c6b702af7ec9adc144823000012336c sngtc_client-dynamic-ortp.patch"
diff --git a/main/sngtc_client/sngtc_client-dynamic-ortp.patch b/main/sngtc_client/sngtc_client-dynamic-ortp.patch
new file mode 100644
index 0000000000..0c873ab0b4
--- /dev/null
+++ b/main/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