icecast, fix running as root, move PATCH and libnetwork check to configure.in, remove secondary architecture (#4479)

This commit is contained in:
Schrijvers Luc
2019-12-23 11:06:12 +01:00
committed by GitHub
parent 11342c5b91
commit 57b0a0188f
2 changed files with 87 additions and 38 deletions

View File

@@ -24,64 +24,58 @@ if [ "$effectiveTargetArchitecture" = x86_gcc2 ]; then
icecast-$portVersion-gcc2.patchset"
fi
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
ARCHITECTURES="x86_gcc2 x86_64"
GLOBAL_WRITABLE_FILES="settings/icecast.xml keep-old"
PROVIDES="
icecast$secondaryArchSuffix = $portVersion
cmd:icecast$secondaryArchSuffix = $portVersion
icecast = $portVersion
cmd:icecast = $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
haiku
lib:libcurl
lib:libnghttp2
lib:libogg
lib:libspeex
lib:libssl
lib:libtheora
lib:libvorbis
lib:libxml2
lib:libxslt
lib:libz
"
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
haiku_devel
devel:libcurl
devel:libnghttp2
devel:libogg
devel:libspeex
devel:libssl
devel:libtheora
devel:libvorbis
devel:libxml2
devel:libxslt
devel:libz
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:gcc
cmd:ld
cmd:libtoolize
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:pkg_config
"
defineDebugInfoPackage icecast$secondaryArchSuffix \
defineDebugInfoPackage icecast \
$binDir/icecast
PATCH()
{
echo "AC_CONFIG_MACRO_DIRS([m4])" >> configure.in
}
BUILD()
{
export LIBS="-lnetwork"
autoreconf -vfi
runConfigure ./configure
make $jobArgs