Initial import of ices 0.3

Ices version 0 is a source client for streaming MP3 audio to Shoutcast,
Icecast v1 and v2 servers. Due to Perl being shipped on OpenBSD by
default, custom playlist handlers written in Perl are always supported
by this port.

from Moritz Grimm <gtgbr@gmx.net>, cleanup and patches from me

WWW: http://www.icecast.org/
This commit is contained in:
sturm 2003-07-26 11:40:45 +00:00
parent aaeb6284b2
commit 4a80c3f4f4
9 changed files with 259 additions and 0 deletions

47
net/ices/Makefile Normal file
View File

@ -0,0 +1,47 @@
# $OpenBSD: Makefile,v 1.1.1.1 2003/07/26 11:40:45 sturm Exp $
COMMENT= "icecast source for streaming MP3"
DISTNAME= ices-0.3
CATEGORIES= net audio
HOMEPAGE= http://www.icecast.org/
MAINTAINER= Moritz Grimm <gtgbr@gmx.net>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://icecast.org/files/ices/
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --with-docdir=${LOCALBASE}/share/doc/ices \
--with-moddir=${LOCALBASE}/share/examples/ices \
--with-lame=${LOCALBASE} --with-vorbis=${LOCALBASE}
LIB_DEPENDS= mp3lame.0:lame-*:audio/lame,no_x11 \
shout.3::audio/libshout \
xml2.7::textproc/libxml
FLAVORS= python
FLAVOR?=
.if ${FLAVOR:L:Mpython}
PYTHON_VER= 2.2
CONFIGURE_ARGS+=--with-python=${LOCALBASE}/bin/python${PYTHON_VER}
BUILD_DEPENDS+= ${RUN_DEPENDS}
RUN_DEPENDS+= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
.else
CONFIGURE_ARGS+=--without-python
.endif
SEPARATE_BUILD= simple
post-install:
${INSTALL_DATA} ${WRKBUILD}/conf/ices.conf.dist \
${PREFIX}/share/examples/ices/ices.conf.dist
.include <bsd.port.mk>

3
net/ices/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (ices-0.3.tar.gz) = cb7bae83597945e90094a46a9f15bd91
RMD160 (ices-0.3.tar.gz) = ef72ce84656cac1afd6801246204c8a382acd3b7
SHA1 (ices-0.3.tar.gz) = 46a31cd63e6efcf45247f02a91f787bb96a39a9b

View File

@ -0,0 +1,72 @@
$OpenBSD: patch-ltmain_sh,v 1.1.1.1 2003/07/26 11:40:45 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
;;

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_definitions_h,v 1.1.1.1 2003/07/26 11:40:45 sturm Exp $
# breaks signals.h on sparc64
--- src/definitions.h.orig 2003-07-26 13:02:41.000000000 +0200
+++ src/definitions.h 2003-07-26 13:02:55.000000000 +0200
@@ -53,9 +53,6 @@
# define __USE_POSIX
#endif
-#ifndef _POSIX_C_SOURCE
-#define _POSIX_C_SOURCE 199506L
-#endif
/* This for freebsd (needed on 3.2 at least) */
#ifdef SOMEBSD

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-src_in_vorbis_c,v 1.1.1.1 2003/07/26 11:40:45 sturm Exp $
--- src/in_vorbis.c.orig 2003-07-26 13:05:41.000000000 +0200
+++ src/in_vorbis.c 2003-07-26 13:09:17.000000000 +0200
@@ -44,7 +44,7 @@ typedef struct {
} ices_vorbis_in_t;
/* -- static prototypes -- */
-static int ices_vorbis_readpcm (input_stream_t* self, size_t len,
+static ssize_t ices_vorbis_readpcm (input_stream_t* self, size_t len,
int16_t* left, int16_t* right);
static int ices_vorbis_close (input_stream_t* self);
static void in_vorbis_parse (input_stream_t* self);
@@ -133,7 +133,7 @@ ices_vorbis_open (input_stream_t* self,
return 0;
}
-static int
+static ssize_t
ices_vorbis_readpcm (input_stream_t* self, size_t olen, int16_t* left,
int16_t* right)
{

24
net/ices/pkg/DEINSTALL Normal file
View File

@ -0,0 +1,24 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.1.1.1 2003/07/26 11:40:45 sturm Exp $
#
# ORBit de-installation
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_FILE=${SYSCONFDIR}/ices.conf
if [ -f $CONFIG_FILE ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| this step as root:"
echo "|"
echo "| rm -f $CONFIG_FILE"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
fi
exit 0

8
net/ices/pkg/DESCR Normal file
View File

@ -0,0 +1,8 @@
Ices version 0 is a source client for streaming MP3 audio to Shoutcast,
Icecast v1 and v2 servers. Due to Perl being shipped on OpenBSD by
default, custom playlist handlers written in Perl are always supported
by this port.
Flavor:
python - support custom playlist handlers written in Python

61
net/ices/pkg/INSTALL Normal file
View File

@ -0,0 +1,61 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1.1.1 2003/07/26 11:40:45 sturm Exp $
#
# Pre/post-installation setup of ices
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_FILE=${SYSCONFDIR}/ices.conf
SAMPLE_CONFIG_FILE=$PREFIX/share/examples/ices/ices.conf.dist
do_notice()
{
echo
echo "+---------------"
echo "| The existing $1 configuration file, $CONFIG_FILE,"
echo "| has NOT been changed. You may want to compare it to the"
echo "| current sample file, $SAMPLE_CONFIG_FILE,"
echo "| and update your configuration as needed."
echo "+---------------"
echo
}
do_install()
{
install -o root -g wheel -m 644 $SAMPLE_CONFIG_FILE $CONFIG_FILE
echo
echo "+---------------"
echo "| The $1 configuration file, $CONFIG_FILE,"
echo "| has been installed. Please view this file and change"
echo "| the configuration to meet your needs."
echo "+---------------"
echo
}
# verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
if [ -f $CONFIG_FILE ]; then
do_notice $1
else
do_install $1
fi
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

9
net/ices/pkg/PLIST Normal file
View File

@ -0,0 +1,9 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/07/26 11:40:45 sturm Exp $
bin/ices
man/man1/ices.1
share/doc/ices/icesmanual.html
share/examples/ices/ices.conf.dist
share/examples/ices/ices.pm.dist
share/examples/ices/ices.py.dist
@dirrm share/examples/ices
@dirrm share/doc/ices