mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
74
media-libs/libmpdclient/libmpdclient-2.12.recipe
Normal file
74
media-libs/libmpdclient/libmpdclient-2.12.recipe
Normal file
@@ -0,0 +1,74 @@
|
||||
SUMMARY="A library for interfacing Music Player Daemon"
|
||||
DESCRIPTION="Music Player Daemon (MPD) is a flexible, powerful, server-side application \
|
||||
for playing music. Through plugins and libraries it can play a variety \
|
||||
of sound files while being controlled by its network protocol."
|
||||
HOMEPAGE="http://www.musicpd.org/"
|
||||
COPYRIGHT="2003-2017 The Music Player Daemon Project"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/MusicPlayerDaemon/libmpdclient/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="ad9803595cb1cba3f8e89e65d7890a5f1859752cadd9fceb350ceae66b9f288c"
|
||||
PATCHES="libmpdclient-$portVersion.patchset" #already upstreamed
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
PROVIDES="
|
||||
libmpdclient$secondaryArchSuffix = $portVersion
|
||||
lib:libmpdclient$secondaryArchSuffix = 2.0.12 compat >= 2
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libmpdclient${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libmpdclient$secondaryArchSuffix = 2.0.12 compat >= 2
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libmpdclient$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:doxygen
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:meson
|
||||
cmd:ninja
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
rm -rf build_haiku || true
|
||||
mkdir -p build_haiku; cd build_haiku
|
||||
|
||||
export LDFLAGS="-lnetwork"
|
||||
meson --prefix=$prefix \
|
||||
--libdir=$libDir \
|
||||
--includedir=$includeDir
|
||||
|
||||
ninja $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build_haiku
|
||||
ninja install
|
||||
|
||||
mkdir -p $docDir
|
||||
mv $prefix/share/doc/libmpdclient/* $docDir
|
||||
rm -rf $prefix/share || true
|
||||
|
||||
# prepare devel/lib
|
||||
prepareInstalledDevelLibs libmpdclient
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
Reference in New Issue
Block a user