freebsd-ports/audio/ncmpcpp/Makefile

56 lines
1.4 KiB
Makefile
Raw Normal View History

# $FreeBSD$
PORTNAME= ncmpcpp
DISTVERSION= 0.8.2
PORTREVISION= 12
CATEGORIES= audio
MASTER_SITES= https://ncmpcpp.rybczak.net/stable/
MAINTAINER= yamagi@yamagi.org
COMMENT= Ncurses mpd client, clone of ncmpc with some new features
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libmpdclient.so:audio/libmpdclient \
libfftw3.so:math/fftw3 \
libicudata.so:devel/icu \
libicuuc.so:devel/icu \
libboost_filesystem.so:devel/boost-libs \
libcurl.so:ftp/curl
USES= compiler:c++14-lang iconv libtool localbase ncurses:port pkgconfig readline tar:bzip2
GNU_CONFIGURE= yes
USE_GNOME= glib20
audio/ncmpcpp: unbreak with ICU 61 In file included from screens/browser.cpp:27: In file included from ./screens/browser.h:26: ./regex_filter.h:45:22: error: unknown type name 'UnicodeString'; did you mean 'icu::UnicodeString'? static void convert(UnicodeString &s) ^~~~~~~~~~~~~ icu::UnicodeString /usr/local/include/unicode/unistr.h:286:20: note: 'icu::UnicodeString' declared here class U_COMMON_API UnicodeString : public Replaceable ^ In file included from screens/browser.cpp:27: In file included from ./screens/browser.h:26: ./regex_filter.h:61:9: error: unknown type name 'Transliterator'; did you mean 'UTransliterator'? static Transliterator *m_converter; ^~~~~~~~~~~~~~ UTransliterator /usr/local/include/unicode/utrans.h:70:15: note: 'UTransliterator' declared here typedef void* UTransliterator; ^ In file included from screens/browser.cpp:27: In file included from ./screens/browser.h:26: ./regex_filter.h:49:4: error: unknown type name 'ErrorCode'; did you mean 'UErrorCode'? ErrorCode result; ^~~~~~~~~ UErrorCode /usr/local/include/unicode/utypes.h:663:3: note: 'UErrorCode' declared here } UErrorCode; ^ In file included from screens/browser.cpp:27: In file included from ./screens/browser.h:26: ./regex_filter.h:50:18: error: use of undeclared identifier 'Transliterator'; did you mean 'icu::Transliterator'? m_converter = Transliterator::createInstance( ^~~~~~~~~~~~~~ icu::Transliterator /usr/local/include/unicode/translit.h:243:18: note: 'icu::Transliterator' declared here class U_I18N_API Transliterator : public UObject { ^ In file included from screens/browser.cpp:27: In file included from ./screens/browser.h:26: ./regex_filter.h:50:18: error: assigning to 'UTransliterator *' (aka 'void **') from incompatible type 'icu::Transliterator *' m_converter = Transliterator::createInstance( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./regex_filter.h:52:14: error: member reference base type 'UErrorCode' is not a structure or union if (result.isFailure()) ~~~~~~^~~~~~~~~~ ./regex_filter.h:55:26: error: member reference base type 'UErrorCode' is not a structure or union + std::string(result.errorName())); ~~~~~~^~~~~~~~~~ ./regex_filter.h:57:14: error: member reference base type 'UTransliterator' (aka 'void *') is not a structure or union m_converter->transliterate(s); ~~~~~~~~~~~^ ~~~~~~~~~~~~~ ./regex_filter.h:64:1: error: unknown type name 'Transliterator'; did you mean 'UTransliterator'? Transliterator *StripDiacritics::m_converter; ^~~~~~~~~~~~~~ UTransliterator /usr/local/include/unicode/utrans.h:70:15: note: 'UTransliterator' declared here typedef void* UTransliterator; ^ In file included from screens/browser.cpp:27: In file included from ./screens/browser.h:26: ./regex_filter.h:102:14: error: use of undeclared identifier 'UnicodeString'; did you mean 'icu::UnicodeString'? auto us = UnicodeString::fromUTF8( ^~~~~~~~~~~~~ icu::UnicodeString /usr/local/include/unicode/unistr.h:286:20: note: 'icu::UnicodeString' declared here class U_COMMON_API UnicodeString : public Replaceable ^ In file included from screens/browser.cpp:27: In file included from ./screens/browser.h:26: ./regex_filter.h:103:5: error: use of undeclared identifier 'StringPiece' StringPiece(convertString<char, CharT>::apply(s))); ^ screens/browser.cpp:737:16: note: in instantiation of function template specialization 'Regex::search<char>' requested here return Regex::search(itemToString(item), rx, Config.ignore_diacritics); ^ https://ssl.icu-project.org/trac/changeset/40705 PR: 227042 Reported by: antoine (via exp-run)
2018-04-04 10:27:21 +02:00
CPPFLAGS+= -DU_USING_ICU_NAMESPACE=1
LDFLAGS+= -lpthread
CONFIGURE_ENV= BOOST_LIB_SUFFIX=""
OPTIONS_DEFINE= CLOCK DOCS OUTPUTS TAGLIB UTF8 VISUALIZER
OPTIONS_DEFAULT= CLOCK OUTPUTS TAGLIB UTF8 VISUALIZER
CLOCK_DESC= clock-screen support
TAGLIB_DESC= taglib support
OUTPUTS_DESC= Enable outputs screen
VISUALIZER_DESC= Enable music visualizer screen
PLIST_FILES= bin/ncmpcpp \
man/man1/ncmpcpp.1.gz
PORTDOCS= AUTHORS COPYING NEWS bindings config
CLOCK_CONFIGURE_ENABLE= clock
UTF8_CONFIGURE_ENABLE= unicode
TAGLIB_LIB_DEPENDS= libtag.so:audio/taglib
TAGLIB_CONFIGURE_WITH= taglib
OUTPUTS_CONFIGURE_ENABLE= outputs
VISUALIZER_BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:math/fftw3
VISUALIZER_CONFIGURE_ENABLE= visualizer
2009-09-12 23:36:04 +02:00
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/ncmpcpp ${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.mk>