diff --git a/multimedia/musikcube/Makefile b/multimedia/musikcube/Makefile index a2cba8a2b404..972802b10e6e 100644 --- a/multimedia/musikcube/Makefile +++ b/multimedia/musikcube/Makefile @@ -1,42 +1,44 @@ PORTNAME= musikcube DISTVERSION= 0.96.6 CATEGORIES= multimedia audio MAINTAINER= yuri@FreeBSD.org COMMENT= Terminal-based music player, audio engine, metadata indexer, server LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE.txt LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \ libboost_system.so:devel/boost-libs \ libcurl.so:ftp/curl \ libev.so:devel/libev \ libfaad.so:audio/faad \ libFLAC.so:audio/flac \ libmicrohttpd.so:www/libmicrohttpd \ libmp3lame.so:audio/lame \ libogg.so:audio/libogg \ libsndio.so:audio/sndio \ libtag.so:audio/taglib \ libvorbis.so:audio/libvorbis USES= cmake:noninja compiler:c++14-lang pkgconfig ssl USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= clangen .include .if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079 USES+= ncurses CMAKE_ARGS= -DNCURSES_DISABLE_LIB_SUFFIXES=false +CMAKE_ON= FREEBSD_USE_BASE_NCURSES .else USES+= ncurses:port CFLAGS+= -I${LOCALBASE}/include/ncurses CMAKE_ARGS= -DNCURSES_DISABLE_LIB_SUFFIXES=true +CMAKE_OFF= FREEBSD_USE_BASE_NCURSES .endif .include diff --git a/multimedia/musikcube/files/patch-src_musikcube_CMakeLists.txt b/multimedia/musikcube/files/patch-src_musikcube_CMakeLists.txt new file mode 100644 index 000000000000..db22da097189 --- /dev/null +++ b/multimedia/musikcube/files/patch-src_musikcube_CMakeLists.txt @@ -0,0 +1,23 @@ +--- src/musikcube/CMakeLists.txt.orig 2021-04-21 04:51:30 UTC ++++ src/musikcube/CMakeLists.txt +@@ -103,10 +103,18 @@ if (CMAKE_SYSTEM_NAME MATCHES "Darwin") + else() + find_package(PkgConfig) + if (${NCURSES_DISABLE_LIB_SUFFIXES} MATCHES "true") +- pkg_check_modules(NCURSES REQUIRED ncurses panel) ++ if (FREEBSD_USE_BASE_NCURSES) ++ set(NCURSES_LIBRARIES ncurses panel) ++ else() ++ pkg_check_modules(NCURSES REQUIRED ncurses panel) ++ endif() + message(STATUS "[ncurses] using library names without 'w' prefix") + else() +- pkg_check_modules(NCURSES REQUIRED ncursesw panelw) ++ if (FREEBSD_USE_BASE_NCURSES) ++ set(NCURSES_LIBRARIES ncursesw panelw) ++ else() ++ pkg_check_modules(NCURSES REQUIRED ncursesw panelw) ++ endif() + message(STATUS "[ncurses] using library names with 'w' prefix") + endif() + target_link_libraries(musikcube ${musikcube_LINK_LIBS} ${NCURSES_LIBRARIES} musikcore)