mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
NCMPCPP: new recipe (#943)
This commit is contained in:
108
media-sound/ncmpcpp/ncmpcpp-0.7.7.recipe
Normal file
108
media-sound/ncmpcpp/ncmpcpp-0.7.7.recipe
Normal file
@@ -0,0 +1,108 @@
|
||||
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-2016 The NCMPCPP Project"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/arybczak/ncmpcpp/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="0d726c886b3e0b63d5f126e3b21ab67a9234e3046c42c591622059659befad67"
|
||||
SOURCE_DIR="ncmpcpp-$portVersion"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64 ?arm ?ppc"
|
||||
SECONDARY_ARCHITECTURES="!x86_gcc2 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
|
||||
}
|
||||
Reference in New Issue
Block a user