Files
haikuports/net-misc/icecast/icecast-2.4.4.recipe
2019-01-21 18:09:45 +01:00

90 lines
2.4 KiB
Bash

SUMMARY="Free server software for streaming multimedia"
DESCRIPTION="Icecast is a streaming media (audio/video) server which \
currently supports Ogg (Vorbis and Theora), Opus, WebM and MP3 streams. \
It can be used to create an Internet radio station or a privately running \
jukebox and many things in between. It is very versatile in that new formats \
can be added relatively easily and supports open standards for communication \
and interaction."
HOMEPAGE="http://www.icecast.org/"
COPYRIGHT="2001-2018 the Icecast team
Jack Moffitt
Michael Smith
oddsock
Karl Heyes
Philipp Schafft
Thomas B. Ruecker
David Richards"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="http://downloads.xiph.org/releases/icecast/icecast-$portVersion.tar.gz"
CHECKSUM_SHA256="49b5979f9f614140b6a38046154203ee28218d8fc549888596a683ad604e4d44"
PATCHES="icecast-$portVersion.patchset"
if [ "$effectiveTargetArchitecture" = x86_gcc2 ]; then
PATCHES+="
icecast-$portVersion-gcc2.patchset"
fi
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
GLOBAL_WRITABLE_FILES="settings/icecast.xml keep-old"
PROVIDES="
icecast$secondaryArchSuffix = $portVersion
cmd:icecast$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
lib:libnghttp2$secondaryArchSuffix
lib:libogg$secondaryArchSuffix
lib:libspeex$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libtheora$secondaryArchSuffix
lib:libvorbis$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
lib:libxslt$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcurl$secondaryArchSuffix
devel:libnghttp2$secondaryArchSuffix
devel:libogg$secondaryArchSuffix
devel:libspeex$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
devel:libtheora$secondaryArchSuffix
devel:libvorbis$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
devel:libxslt$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage icecast$secondaryArchSuffix \
$binDir/icecast
BUILD()
{
export LIBS="-lnetwork"
echo "AC_CONFIG_MACRO_DIRS([m4])" >> configure.in
autoreconf -vfi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
}