Files
haikuports/media-sound/ncmpcpp/ncmpcpp-0.8.1.recipe
2017-10-27 14:26:59 +02:00

109 lines
2.9 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.
NCMPCPP is an ncurses based commandline client for Music Player Daemon."
HOMEPAGE="https://rybczak.net/ncmpcpp/"
COPYRIGHT="2008-2017 The NCMPCPP Project"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/arybczak/ncmpcpp/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="228d54abbf68a971487331da36fe948e9912e8bb112526fcdcef827a6e7383ab"
SOURCE_DIR="ncmpcpp-$portVersion"
ARCHITECTURES="!x86_gcc2 x86 x86_64 ?arm ?ppc"
SECONDARY_ARCHITECTURES="x86"
if [ "$targetArchitecture" != x86_gcc2 ]; then
commandBinDir=$binDir
else
commandBinDir=$prefix/bin
fi
PROVIDES="
ncmpcpp$secondaryArchSuffix = $portVersion
cmd:ncmpcpp
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libboost_filesystem$secondaryArchSuffix
lib:libboost_system$secondaryArchSuffix
lib:libboost_locale$secondaryArchSuffix
lib:libboost_program_options$secondaryArchSuffix
lib:libboost_regex$secondaryArchSuffix
lib:libboost_thread$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
lib:libfftw3$secondaryArchSuffix
lib:libicui18n$secondaryArchSuffix
lib:libmpdclient$secondaryArchSuffix
lib:libncursesw$secondaryArchSuffix >= 6
lib:libreadline$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libtag$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libboost_filesystem$secondaryArchSuffix
devel:libboost_system$secondaryArchSuffix
devel:libboost_locale$secondaryArchSuffix
devel:libboost_program_options$secondaryArchSuffix
devel:libboost_regex$secondaryArchSuffix
devel:libboost_thread$secondaryArchSuffix
devel:libcurl$secondaryArchSuffix
devel:libfftw3$secondaryArchSuffix
devel:libicui18n$secondaryArchSuffix
devel:libmpdclient$secondaryArchSuffix
devel:libncursesw$secondaryArchSuffix >= 6
devel:libreadline$secondaryArchSuffix
devel:libtag$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoreconf
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:grep
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:ranlib$secondaryArchSuffix
cmd:sed
cmd:strip$secondaryArchSuffix
"
USER_SETTINGS_FILES="
settings/ncmpcpp directory
settings/ncmpcpp/lyrics directory
settings/ncmpcpp/config
settings/ncmpcpp/error.log
"
BUILD()
{
export CFLAGS="-D_BSD_SOURCE"
export LDFLAGS="-lnetwork -lbsd"
autoreconf -vfi
runConfigure ./configure \
--enable-outputs \
--enable-visualizer \
--enable-clock
make $jobArgs
}
INSTALL()
{
sed -i -e "s,\$(prefix)/share/doc/\$(PACKAGE),$docDir,g" Makefile doc/Makefile
sed -i -e "s,\${prefix}/share,$dataDir,g" Makefile doc/Makefile
make install
strip$secondaryArchSuffix $binDir/ncmpcpp
}