mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
* cmake/debuginfo: Mass fix packages with broken debuginfo * rtl_sdr: Fix trailing whitespace * meson/debuginfo: Mass fix packages with broken debuginfo * clean up conflicts --------- Co-authored-by: Luc Schrijvers <begasus@gmail.com>
84 lines
2.2 KiB
Bash
84 lines
2.2 KiB
Bash
SUMMARY="A Qt C++ library for the Last.fm webservices"
|
|
DESCRIPTION="liblastfm is a collection of libraries to help you integrate Last.fm services into \
|
|
your rich desktop software. It is officially supported software developed by Last.fm staff."
|
|
HOMEPAGE="https://github.com/lastfm/liblastfm"
|
|
COPYRIGHT="2009-2015 lastfm contributors"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/lastfm/liblastfm/archive/refs/tags/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="f61f0daa384e081a8f2bd2f7a2148babff22696e5b72ecdac86940a10100b1c8"
|
|
PATCHES="fix_gcc11_ftbfs.patch"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
|
|
|
|
PROVIDES="
|
|
liblastfm$secondaryArchSuffix = $portVersion
|
|
lib:liblastfm5$secondaryArchSuffix = $libVersionCompat
|
|
lib:liblastfm_fingerprint5$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libfftw3$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5DBus$secondaryArchSuffix
|
|
lib:libQt5Network$secondaryArchSuffix
|
|
lib:libQt5Xml$secondaryArchSuffix
|
|
lib:libsamplerate$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
liblastfm${secondaryArchSuffix}_devel = $portVersion
|
|
devel:liblastfm5$secondaryArchSuffix = $libVersionCompat
|
|
devel:liblastfm_fingerprint5$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
liblastfm$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libfftw3$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libsamplerate$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
|
|
"
|
|
|
|
defineDebugInfoPackage liblastfm$secondaryArchSuffix \
|
|
$libDir/liblastfm5.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
$cmakeDirArgs \
|
|
-DBUILD_WITH_QT4:BOOL=OFF -Wno-dev
|
|
make -Cbuild $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -Cbuild install
|
|
|
|
prepareInstalledDevelLibs \
|
|
liblastfm5 \
|
|
liblastfm_fingerprint5
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
# 50% tests passed, 1 tests failed out of 2 (compared values are not the same)
|
|
ctest --test-dir build --output-on-failure
|
|
}
|