Initial import of libshout 2.0
Libshout is a library for communicating with and sending data to an icecast server. It handles the socket connection, the timing of the data, and prevents bad data from getting to the icecast server. With just a few lines of code, a programmer can easily turn any application into a streaming source for an icecast server. Libshout also allows developers who want a specific feature set (database access, request taking) to concentrate on that feature set, instead of worrying about how server communication works. from Moritz Grimm <gtgbr@gmx.net>, cleanup and patches from me WWW: http://www.icecast.org/
This commit is contained in:
parent
649f804830
commit
aaeb6284b2
29
net/libshout/Makefile
Normal file
29
net/libshout/Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2003/07/26 11:38:50 sturm Exp $
|
||||
|
||||
COMMENT= "library for communicating with an icecast server"
|
||||
|
||||
DISTNAME= libshout-2.0
|
||||
CATEGORIES= net audio
|
||||
|
||||
HOMEPAGE= http://www.icecast.org/
|
||||
|
||||
MAINTAINER= Moritz Grimm <gtgbr@gmx.net>
|
||||
|
||||
# LGPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= http://icecast.org/files/libshout/
|
||||
|
||||
LIB_DEPENDS= vorbis.2,vorbisenc.2,vorbisfile.3::audio/libvorbis
|
||||
|
||||
CONFIGURE_STYLE=gnu
|
||||
CONFIGURE_ARGS= ${CONFIGURE_SHARED} --disable-pkgconfig
|
||||
|
||||
SEPARATE_BUILD= simple
|
||||
|
||||
FAKE_FLAGS= docdir='${PREFIX}/share/examples/libshout'
|
||||
|
||||
.include <bsd.port.mk>
|
3
net/libshout/distinfo
Normal file
3
net/libshout/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (libshout-2.0.tar.gz) = 627f3eede05b2237bee1369e4a95143c
|
||||
RMD160 (libshout-2.0.tar.gz) = 1526622afb97a90057fce266b28f90e6de1038b3
|
||||
SHA1 (libshout-2.0.tar.gz) = 06e7843bc3d61670f5c6dd80d0bd8cea5fabeeab
|
72
net/libshout/patches/patch-ltmain_sh
Normal file
72
net/libshout/patches/patch-ltmain_sh
Normal file
@ -0,0 +1,72 @@
|
||||
$OpenBSD: patch-ltmain_sh,v 1.1.1.1 2003/07/26 11:38:50 sturm Exp $
|
||||
--- ltmain.sh.orig 2003-07-26 08:00:32.000000000 +0200
|
||||
+++ ltmain.sh 2003-07-26 08:03:26.000000000 +0200
|
||||
@@ -1060,6 +1060,17 @@ compiler."
|
||||
continue
|
||||
;;
|
||||
|
||||
+ -pthread)
|
||||
+ case $host in
|
||||
+ *-*-openbsd*)
|
||||
+ deplibs="$deplibs $arg"
|
||||
+ ;;
|
||||
+ *)
|
||||
+ continue
|
||||
+ ;;
|
||||
+ esac
|
||||
+ ;;
|
||||
+
|
||||
-module)
|
||||
module=yes
|
||||
continue
|
||||
@@ -1496,6 +1507,9 @@ compiler."
|
||||
fi
|
||||
continue
|
||||
;;
|
||||
+ -pthread)
|
||||
+ continue
|
||||
+ ;;
|
||||
%DEPLIBS%)
|
||||
alldeplibs=yes
|
||||
continue
|
||||
@@ -4451,40 +4465,6 @@ relink_command=\"$relink_command\""
|
||||
# Exit here if they wanted silent mode.
|
||||
test "$show" = ":" && exit 0
|
||||
|
||||
- echo "----------------------------------------------------------------------"
|
||||
- echo "Libraries have been installed in:"
|
||||
- for libdir in $libdirs; do
|
||||
- echo " $libdir"
|
||||
- done
|
||||
- echo
|
||||
- echo "If you ever happen to want to link against installed libraries"
|
||||
- echo "in a given directory, LIBDIR, you must either use libtool, and"
|
||||
- echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
|
||||
- echo "flag during linking and do at least one of the following:"
|
||||
- if test -n "$shlibpath_var"; then
|
||||
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
|
||||
- echo " during execution"
|
||||
- fi
|
||||
- if test -n "$runpath_var"; then
|
||||
- echo " - add LIBDIR to the \`$runpath_var' environment variable"
|
||||
- echo " during linking"
|
||||
- fi
|
||||
- if test -n "$hardcode_libdir_flag_spec"; then
|
||||
- libdir=LIBDIR
|
||||
- eval flag=\"$hardcode_libdir_flag_spec\"
|
||||
-
|
||||
- echo " - use the \`$flag' linker flag"
|
||||
- fi
|
||||
- if test -n "$admincmds"; then
|
||||
- echo " - have your system administrator run these commands:$admincmds"
|
||||
- fi
|
||||
- if test -f /etc/ld.so.conf; then
|
||||
- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
|
||||
- fi
|
||||
- echo
|
||||
- echo "See any operating system documentation about shared libraries for"
|
||||
- echo "more information, such as the ld(1) and ld.so(8) manual pages."
|
||||
- echo "----------------------------------------------------------------------"
|
||||
exit 0
|
||||
;;
|
||||
|
35
net/libshout/patches/patch-src_avl_avl_c
Normal file
35
net/libshout/patches/patch-src_avl_avl_c
Normal file
@ -0,0 +1,35 @@
|
||||
$OpenBSD: patch-src_avl_avl_c,v 1.1.1.1 2003/07/26 11:38:50 sturm Exp $
|
||||
--- src/avl/avl.c.orig 2003-07-26 09:07:59.000000000 +0200
|
||||
+++ src/avl/avl.c 2003-07-26 09:10:35.000000000 +0200
|
||||
@@ -987,11 +987,11 @@ avl_verify_balance (avl_node * node)
|
||||
long lh = avl_verify_balance (node->left);
|
||||
long rh = avl_verify_balance (node->right);
|
||||
if ((rh - lh) != AVL_GET_BALANCE(node)) {
|
||||
- fprintf (stderr, "invalid balance at node %d\n", (int) node->key);
|
||||
+ fprintf (stderr, "invalid balance at node %ld\n", (long) node->key);
|
||||
exit(1);
|
||||
}
|
||||
if (((lh - rh) > 1) || ((lh - rh) < -1)) {
|
||||
- fprintf (stderr, "unbalanced at node %d\n", (int) node->key);
|
||||
+ fprintf (stderr, "unbalanced at node %ld\n", (long) node->key);
|
||||
exit(1);
|
||||
}
|
||||
return (1 + AVL_MAX (lh, rh));
|
||||
@@ -1002,7 +1002,7 @@ static void
|
||||
avl_verify_parent (avl_node * node, avl_node * parent)
|
||||
{
|
||||
if (node->parent != parent) {
|
||||
- fprintf (stderr, "invalid parent at node %d\n", (int) node->key);
|
||||
+ fprintf (stderr, "invalid parent at node %ld\n", (long) node->key);
|
||||
exit(1);
|
||||
}
|
||||
if (node->left) {
|
||||
@@ -1027,7 +1027,7 @@ avl_verify_rank (avl_node * node)
|
||||
num_right = avl_verify_rank (node->right);
|
||||
}
|
||||
if (AVL_GET_RANK (node) != num_left + 1) {
|
||||
- fprintf (stderr, "invalid rank at node %d\n", (int) node->key);
|
||||
+ fprintf (stderr, "invalid rank at node %ld\n", (long) node->key);
|
||||
exit (1);
|
||||
}
|
||||
return (num_left + num_right + 1);
|
12
net/libshout/patches/patch-src_thread_thread_c
Normal file
12
net/libshout/patches/patch-src_thread_thread_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_thread_thread_c,v 1.1.1.1 2003/07/26 11:38:50 sturm Exp $
|
||||
--- src/thread/thread.c.orig 2003-07-26 09:11:53.000000000 +0200
|
||||
+++ src/thread/thread.c 2003-07-26 09:14:07.000000000 +0200
|
||||
@@ -548,7 +548,7 @@ void thread_rwlock_unlock_c(rwlock_t *rw
|
||||
pthread_rwlock_unlock(&rwlock->sys_rwlock);
|
||||
}
|
||||
|
||||
-void thread_exit_c(int val, int line, char *file)
|
||||
+void thread_exit_c(long val, int line, char *file)
|
||||
{
|
||||
thread_type *th = thread_self();
|
||||
|
12
net/libshout/patches/patch-src_thread_thread_h
Normal file
12
net/libshout/patches/patch-src_thread_thread_h
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_thread_thread_h,v 1.1.1.1 2003/07/26 11:38:50 sturm Exp $
|
||||
--- src/thread/thread.h.orig 2003-07-26 09:14:12.000000000 +0200
|
||||
+++ src/thread/thread.h 2003-07-26 09:14:58.000000000 +0200
|
||||
@@ -163,7 +163,7 @@ void thread_rwlock_rlock_c(rwlock_t *rwl
|
||||
void thread_rwlock_wlock_c(rwlock_t *rwlock, int line, char *file);
|
||||
void thread_rwlock_unlock_c(rwlock_t *rwlock, int line, char *file);
|
||||
void thread_rwlock_destroy(rwlock_t *rwlock);
|
||||
-void thread_exit_c(int val, int line, char *file);
|
||||
+void thread_exit_c(long val, int line, char *file);
|
||||
|
||||
/* sleeping */
|
||||
void thread_sleep(unsigned long len);
|
15
net/libshout/pkg/DESCR
Normal file
15
net/libshout/pkg/DESCR
Normal file
@ -0,0 +1,15 @@
|
||||
Libshout is a library for communicating with and sending data to an
|
||||
icecast server. It handles the socket connection, the timing of the
|
||||
data, and prevents bad data from getting to the icecast server.
|
||||
|
||||
With just a few lines of code, a programmer can easily turn any
|
||||
application into a streaming source for an icecast server. Libshout
|
||||
also allows developers who want a specific feature set (database
|
||||
access, request taking) to concentrate on that feature set, instead of
|
||||
worrying about how server communication works.
|
||||
|
||||
Please refer to the api reference and example code to start learning
|
||||
how to use libshout in your own code. See
|
||||
${PREFIX}/include/shout/shout.h and
|
||||
${PREFIX}/share/examples/libshout/example.c
|
||||
for details.
|
3
net/libshout/pkg/PFRAG.shared
Normal file
3
net/libshout/pkg/PFRAG.shared
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2003/07/26 11:38:50 sturm Exp $
|
||||
lib/libshout.so.3.0
|
||||
DYNLIBDIR(%D/lib)
|
13
net/libshout/pkg/PLIST
Normal file
13
net/libshout/pkg/PLIST
Normal file
@ -0,0 +1,13 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/07/26 11:38:50 sturm Exp $
|
||||
bin/shout-config
|
||||
include/shout/shout.h
|
||||
lib/libshout.a
|
||||
lib/libshout.la
|
||||
share/aclocal/shout.m4
|
||||
@comment share/examples/libshout/COPYING
|
||||
@comment share/examples/libshout/README
|
||||
share/examples/libshout/example.c
|
||||
%%SHARED%%
|
||||
@dirrm share/examples/libshout
|
||||
@comment @dirrm share/aclocal
|
||||
@dirrm include/shout
|
Loading…
Reference in New Issue
Block a user