icecast: add package

This commit is contained in:
David Martinez 2017-02-16 23:46:45 +01:00 committed by Fredrik Fornwall
parent a6eab5e543
commit 524d5fa08f
2 changed files with 34 additions and 0 deletions

10
packages/icecast/build.sh Normal file
View File

@ -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
}

View File

@ -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);