Files
haikuports/media-libs/libdiscid/libdiscid-0.6.2.recipe

68 lines
1.6 KiB
Bash

SUMMARY="A library for creating MusicBrainz and freedb disc IDs from audio CDs"
DESCRIPTION="libdiscid is a C library for creating MusicBrainz and freedb \
disc IDs from audio CDs. It reads a CD's table of contents (TOC) and \
generates an identifier which can be used to lookup the CD at MusicBrainz. \
Additionally, it provides a submission URL for adding the disc ID to the \
database and gathers ISRCs and the MCN (=UPC/EAN) from disc."
HOMEPAGE="http://musicbrainz.org/doc/libdiscid"
COPYRIGHT="2012 Andrew Hawkins"
LICENSE="GNU LGPL v2.1"
REVISION="2"
SOURCE_URI="http://ftp.musicbrainz.org/pub/musicbrainz/libdiscid/libdiscid-$portVersion.tar.gz"
CHECKSUM_SHA256="f9e443ac4c0dd4819c2841fcc82169a46fb9a626352cdb9c7f65dd3624cd31b9"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
libdiscid$secondaryArchSuffix = $portVersion
lib:libdiscid$secondaryArchSuffix = 0.6.2 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libmusicbrainz5$secondaryArchSuffix
"
PROVIDES_devel="
libdiscid${secondaryArchSuffix}_devel = $portVersion
devel:libdiscid$secondaryArchSuffix = 0.6.2 compat >= 0
"
REQUIRES_devel="
libdiscid$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libmusicbrainz5$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:cmp
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libdiscid.la
prepareInstalledDevelLib libdiscid
fixPkgconfig
packageEntries devel \
$developDir
}
TEST()
{
make check
}