libdiscid, remove old bep file, create new working recipe (#1310)

This commit is contained in:
Schrijvers Luc
2017-05-01 05:18:20 +02:00
committed by waddlesplash
parent 42fd3574ba
commit a3d17be901
2 changed files with 67 additions and 30 deletions

View File

@@ -1,30 +0,0 @@
DESCRIPTION="Client library to create MusicBrainz enabled tagging applications"
HOMEPAGE="http://musicbrainz.org/doc/libdiscid"
SOURCE_URI="http://ftp.musicbrainz.org/pub/musicbrainz/libdiscid/libdiscid-0.3.0.tar.gz"
REVISION="1"
STATUS_HAIKU="broken"
DEPEND=""
CHECKSUM_MD5="17e51260062b7583e5981c82cf618127"
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
BUILD()
{
cd libdiscid-0.3.0
cmake .
make
}
INSTALL()
{
cd libdiscid-0.3.0
make install
}
TEST()
{
cd libdiscid-0.3.0
make test
}
LICENSE="GNU LGPL v2.1"
COPYRIGHT="2012 Andrew Hawkins"

View File

@@ -0,0 +1,67 @@
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="1"
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
}