mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-02 21:18:51 +02:00
76 lines
1.7 KiB
Bash
76 lines
1.7 KiB
Bash
SUMMARY="Library for handling cover art for audio files"
|
|
DESCRIPTION="
|
|
Development library geared towards developers who wish to add cover art \
|
|
capabilites to their applications."
|
|
HOMEPAGE="http://musicbrainz.org/doc/libcoverart"
|
|
COPYRIGHT="2012 Andrew Hawkins"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="3"
|
|
SOURCE_URI="https://github.com/downloads/metabrainz/libcoverart/libcoverart-1.0.0.tar.gz"
|
|
CHECKSUM_SHA256="e4cb78939003a4b5e5c4db68e42e86fbbbea5e69d3166b43ca01a7065916a121"
|
|
SOURCE_DIR="libcoverart-{PROJECT_VERSION}"
|
|
PATCHES="libcoverart-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 ?x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
libcoverart$secondaryArchSuffix = $portVersion
|
|
lib:libcoverart$secondaryArchSuffix = 0.0.1 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libjansson$secondaryArchSuffix
|
|
lib:libneon$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libcoverart${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libcoverart$secondaryArchSuffix = 0.0.1 compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
libcoverart$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
devel:libjansson$secondaryArchSuffix
|
|
devel:libneon$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build && cd build
|
|
cmake .. -DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=$prefix \
|
|
-DCMAKE_INSTALL_BINDIR=$binDir \
|
|
-DCMAKE_INSTALL_LIBDIR=$libDir \
|
|
-DCMAKE_INSTALL_INCLUDEDIR=$includeDir -L
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
|
|
prepareInstalledDevelLib libcoverart
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cd build/tests
|
|
./test
|
|
./ctest
|
|
}
|