Files
haikuports/dev-libs/libigloo/libigloo-0.9.2.recipe
OscarL 160f22f5aa libigloo: build fix when not using RAMFS workdirs (as in builders). (#12243)
See: https://github.com/haikuports/haikuporter/issues/325.

Also: added libtoolize as depedency, as build was still failing
without it for Begasus, despite it working fine for me on two different
installs (beta5 and a "clean" nighly). No idea what the issue might be.
2025-04-25 07:05:34 +00:00

82 lines
1.9 KiB
Bash

SUMMARY="A generic C framework developed and used by the Icecast project"
DESCRIPTION="libigloo is a new generic C framework for the Icecast project.
It should replace the code their existing projects share currently (known as “common/”) over time. \
It will both provide a more uniform as well as clean, and modern interface to their shared code \
base."
HOMEPAGE="https://icecast.org/"
COPYRIGHT="2018-2024 Philipp Schafft"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://downloads.xiph.org/releases/igloo/libigloo-$portVersion.tar.gz"
CHECKSUM_SHA256="21896c2e4cb72a463250f8a7c1287d53a4b5882f438d296ca062a851a06942f8"
SOURCE_FILENAME="libigloo-v$portVersion.tar.gz"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="0.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libigloo$secondaryArchSuffix = $portVersion
lib:libigloo$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:librhash$secondaryArchSuffix
"
PROVIDES_devel="
libigloo${secondaryArchSuffix}_devel = $portVersion
devel:libigloo$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libigloo$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:librhash$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoreconf
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix # not needed for me, but fails without it for Begasus.
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
# This should not be needed (./configure works without them if workdirs are in RAMFS).
# See https://github.com/haikuports/haikuporter/issues/325
autoreconf
runConfigure ./configure \
--enable-static=no
make
}
INSTALL()
{
make install
# cleanup
rm -f $libDir/libigloo.la
prepareInstalledDevelLib \
libigloo
fixPkgconfig
packageEntries devel \
$developDir
}
TEST()
{
make check
}