0
0
Fork 0
haikuports/media-sound/mpc/musicpc-0.33.recipe

82 lines
1.8 KiB
Bash

SUMMARY="A commandline client for 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.
MPC is a commandline client for Music Player Daemon."
HOMEPAGE="https://www.musicpd.org/"
COPYRIGHT="2003-2019 The Music Player Daemon Project"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://www.musicpd.org/download/mpc/0/mpc-$portVersion.tar.xz"
CHECKSUM_SHA256="4f40ccbe18f5095437283cfc525a97815e983cbfd3a29e48ff610fa4f1bf1296"
SOURCE_DIR="mpc-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
musicpc$secondaryArchSuffix = $portVersion
cmd:mpc$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
glib2$secondaryArchSuffix >= 2
# lib:libiconv$secondaryArchSuffix # not found
# lib:libintl$secondaryArchSuffix
lib:libmpdclient$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
glib2${secondaryArchSuffix}_devel
devel:libcheck$secondaryArchSuffix
# devel:libiconv$secondaryArchSuffix
# devel:libintl$secondaryArchSuffix
devel:libmpdclient$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:meson
cmd:ninja
cmd:pkg_config$secondaryArchSuffix
cmd:sed
"
BUILD()
{
rm -rf build_haiku
mkdir -p build_haiku; cd build_haiku
export LDFLAGS="-lnetwork"
meson --prefix=$prefix \
--libdir=$libDir \
--includedir=$includeDir \
--mandir=$manDir \
--infodir=$infoDir \
-Dtest=true
ninja $jobArgs
}
INSTALL()
{
cd build_haiku
ninja install
mkdir -p $docDir
mv $prefix/share/doc/mpc $docDir
rm -rf $prefix/share
}
TEST()
{
cd build_haiku
ninja test
}