mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
93 lines
2.3 KiB
Bash
93 lines
2.3 KiB
Bash
SUMMARY="An advanced CDDA reader with error correction"
|
|
DESCRIPTION="This is a port of xiph.org's cdda paranoia \
|
|
https://www.xiph.org/paranoia/ to use libcdio for CDROM access. By doing \
|
|
this, cdparanoia runs on platforms other than GNU/Linux."
|
|
HOMEPAGE="https://www.gnu.org/software/libcdio/"
|
|
COPYRIGHT="2012-2017 Rocky Bernstein
|
|
Monty
|
|
Robert Kaush"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="4"
|
|
SOURCE_URI="https://github.com/rocky/libcdio-paranoia/archive/release-10.2+0.94+2.tar.gz"
|
|
CHECKSUM_SHA256="6cbd80c19bd79002e8a6b4d52c3379e822b84d83614087d2f9ff10d400c58e83"
|
|
SOURCE_FILENAME="libcdio-paranoia-10.2+0.94+2.tar.gz"
|
|
SOURCE_DIR="libcdio-paranoia-release-10.2-0.94-2"
|
|
if [ $effectiveTargetArchitecture = x86_gcc2 ]; then
|
|
PATCHES="libcdio_paranoia-10.2_0.94_2.patchset"
|
|
fi
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
libVersion="2.0.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libcdio_paranoia$secondaryArchSuffix = $portVersion
|
|
cmd:cd_paranoia$secondaryArchSuffix
|
|
lib:libcdio_cdda$secondaryArchSuffix = $libVersionCompat
|
|
lib:libcdio_paranoia$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcdio$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libcdio_paranoia${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libcdio_cdda$secondaryArchSuffix = $libVersionCompat
|
|
devel:libcdio_paranoia$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libcdio_paranoia$secondaryArchSuffix == $portVersion base
|
|
devel:libcdio$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcdio$secondaryArchSuffix >= 18
|
|
devel:libiconv$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage libcdio_paranoia$secondaryArchSuffix \
|
|
"$binDir"/cd-paranoia \
|
|
"$libDir"/libcdio_cdda.so.$libVersion \
|
|
"$libDir"/libcdio_paranoia.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./autogen.sh
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/lib*.la
|
|
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
rm -rf $documentationDir
|
|
fi
|
|
|
|
prepareInstalledDevelLibs libcdio_cdda libcdio_paranoia
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|