icecast: add package
authorDavid Martinez <contacto@davidmartinez.net>
Thu, 16 Feb 2017 22:46:45 +0000 (23:46 +0100)
committerFredrik Fornwall <fredrik@fornwall.net>
Fri, 11 Aug 2017 10:45:59 +0000 (12:45 +0200)
packages/icecast/build.sh [new file with mode: 0644]
packages/icecast/thread.c.patch [new file with mode: 0644]

diff --git a/packages/icecast/build.sh b/packages/icecast/build.sh
new file mode 100644 (file)
index 0000000..4c8b9b3
--- /dev/null
@@ -0,0 +1,10 @@
+TERMUX_PKG_HOMEPAGE=http://icecast.org
+TERMUX_PKG_DESCRIPTION="Icecast is a streaming media (audio/video) server"
+TERMUX_PKG_VERSION=2.4.3
+TERMUX_PKG_SRCURL=http://downloads.xiph.org/releases/icecast/icecast-$TERMUX_PKG_VERSION.tar.gz
+TERMUX_PKG_DEPENDS="libcurl, libgnutls, libogg, libvorbis, libxml2, libxslt, openssl"
+TERMUX_PKG_BUILD_IN_SRC=yes
+
+termux_step_pre_configure() {
+    perl -p -i -e "s#/etc/mime.types#$TERMUX_PREFIX/etc/mime.types#" $TERMUX_PKG_SRCDIR/src/cfgfile.c
+}
\ No newline at end of file
diff --git a/packages/icecast/thread.c.patch b/packages/icecast/thread.c.patch
new file mode 100644 (file)
index 0000000..8f6a345
--- /dev/null
@@ -0,0 +1,24 @@
+--- ../../build/icecast/cache/icecast-2.4.3/src/thread/thread.c        2015-12-27 17:46:32.000000000 +0100
++++ ./src/thread/thread.c      2017-01-01 22:52:28.256272825 +0100
+@@ -294,10 +294,10 @@
+         start->thread = thread;
+         pthread_attr_setstacksize (&attr, 512*1024);
+-        pthread_attr_setinheritsched (&attr, PTHREAD_INHERIT_SCHED);
++        //pthread_attr_setinheritsched (&attr, PTHREAD_INHERIT_SCHED);
+         if (detached)
+         {
+-            pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED);
++            //pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED);
+             thread->detached = 1;
+         }
+@@ -651,7 +651,7 @@
+     LOG_INFO4("Added thread %d [%s] started at [%s:%d]", thread->thread_id, thread->name, thread->file, thread->line);
+ #endif
+-    pthread_setcancelstate (PTHREAD_CANCEL_ENABLE, NULL);
++    //pthread_setcancelstate (PTHREAD_CANCEL_ENABLE, NULL);
+     free (start);
+     (start_routine)(real_arg);