aboutsummaryrefslogtreecommitdiffstats
path: root/main/sngtc_client
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-08-10 09:08:50 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-08-10 12:46:50 +0000
commit8450d958a87f4aa7d15d8ed99ca1231f0f67a4e2 (patch)
tree33b81fe84cc90304a36521abeb783dc87a8e70da /main/sngtc_client
parent92ac86f2a108bf9ce86968e961359ce72775012c (diff)
downloadaports-8450d958a87f4aa7d15d8ed99ca1231f0f67a4e2.tar.bz2
aports-8450d958a87f4aa7d15d8ed99ca1231f0f67a4e2.tar.xz
main/sngtc_client: moved to main
ref #721
Diffstat (limited to 'main/sngtc_client')
-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