Index: head/audio/ncmpcpp/Makefile =================================================================== --- head/audio/ncmpcpp/Makefile (revision 393423) +++ head/audio/ncmpcpp/Makefile (revision 393424) @@ -1,67 +1,68 @@ # $FreeBSD$ PORTNAME= ncmpcpp PORTVERSION= 0.6.5 +PORTREVISION= 1 CATEGORIES= audio MASTER_SITES= http://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:${PORTSDIR}/audio/libmpdclient \ libfftw3.so:${PORTSDIR}/math/fftw3 \ libboost_filesystem.so:${PORTSDIR}/devel/boost-libs USES= compiler:c++11-lib iconv libtool ncurses pkgconfig tar:bzip2 GNU_CONFIGURE= yes USE_GNOME= glib20 CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -lpthread -L${LOCALBASE}/lib CONFIGURE_ENV= BOOST_LIB_SUFFIX="" OPTIONS_DEFINE= CURL CLOCK DOCS OUTPUTS TAGLIB UTF8 VISUALIZER OPTIONS_DEFAULT= CURL CLOCK OUTPUTS TAGLIB UTF8 VISUALIZER CURL_DESC= Enable fetching lyrics from the Internet 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 CURL_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl CURL_CONFIGURE_WITH= curl CLOCK_CONFIGURE_ENABLE= clock UTF8_CONFIGURE_ENABLE= unicode TAGLIB_LIB_DEPENDS= libtag.so:${PORTSDIR}/audio/taglib TAGLIB_CONFIGURE_WITH= taglib OUTPUTS_CONFIGURE_ENABLE= outputs VISUALIZER_BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:${PORTSDIR}/math/fftw3 VISUALIZER_CONFIGURE_ENABLE= visualizer .include .if ${NCURSESBASE} == /usr # no need to use ncurses-config if we use ncurses from the base system CONFIGURE_ARGS+= NCURSES_CONFIG=/usr/bin/true .endif post-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/ncmpcpp ${STAGEDIR}${PREFIX}/bin/ .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/NEWS ${WRKSRC}/AUTHORS ${WRKSRC}/COPYING ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/bindings ${WRKSRC}/doc/config ${STAGEDIR}${DOCSDIR}/ .endif .include Index: head/audio/ncmpcpp/files/patch-src__status.cpp =================================================================== --- head/audio/ncmpcpp/files/patch-src__status.cpp (revision 393423) +++ head/audio/ncmpcpp/files/patch-src__status.cpp (revision 393424) @@ -1,11 +1,11 @@ ---- src/status.cpp_orig 2014-11-16 09:21:55.651181899 +0100 -+++ src/status.cpp 2014-11-16 09:21:59.233203196 +0100 +--- src/status.cpp.orig 2015-07-05 02:18:34 UTC ++++ src/status.cpp @@ -21,6 +21,8 @@ #include #include #include +#include +#include #include "browser.h" #include "charset.h" Index: head/audio/ncmpcpp/files/patch-src_mpdpp.cpp =================================================================== --- head/audio/ncmpcpp/files/patch-src_mpdpp.cpp (nonexistent) +++ head/audio/ncmpcpp/files/patch-src_mpdpp.cpp (revision 393424) @@ -0,0 +1,29 @@ +--- src/mpdpp.cpp.orig 2015-07-05 02:18:34 UTC ++++ src/mpdpp.cpp +@@ -38,6 +38,8 @@ Connection::Connection() : m_connection( + m_port(6600), + m_timeout(15) + { ++ std::random_device rd; ++ m_gen.seed(rd()); + } + + Connection::~Connection() +@@ -504,7 +506,7 @@ bool Connection::AddRandomTag(mpd_tag_ty + } + else + { +- std::random_shuffle(tags.begin(), tags.end()); ++ std::shuffle(tags.begin(), tags.end(), m_gen); + auto it = tags.begin(); + for (size_t i = 0; i < number && it != tags.end(); ++i) + { +@@ -544,7 +546,7 @@ bool Connection::AddRandomSongs(size_t n + } + else + { +- std::random_shuffle(files.begin(), files.end()); ++ std::shuffle(files.begin(), files.end(), m_gen); + StartCommandsList(); + auto it = files.begin(); + for (size_t i = 0; i < number && it != files.end(); ++i, ++it) Property changes on: head/audio/ncmpcpp/files/patch-src_mpdpp.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/audio/ncmpcpp/files/patch-src_mpdpp.h =================================================================== --- head/audio/ncmpcpp/files/patch-src_mpdpp.h (nonexistent) +++ head/audio/ncmpcpp/files/patch-src_mpdpp.h (revision 393424) @@ -0,0 +1,19 @@ +--- src/mpdpp.h.orig 2015-07-05 02:18:34 UTC ++++ src/mpdpp.h +@@ -23,6 +23,7 @@ + + #include + #include ++#include + #include + #include + +@@ -277,6 +278,8 @@ private: + std::string m_password; + + mpd_tag_type m_searched_field; ++ ++ std::mt19937 m_gen; + }; + + } Property changes on: head/audio/ncmpcpp/files/patch-src_mpdpp.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property