Date: Mon, 18 Jan 2021 00:36:22 +0000 (UTC) From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r561888 - in head/multimedia/musikcube: . files Message-ID: <202101180036.10I0aM0l048093@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yuri Date: Mon Jan 18 00:36:22 2021 New Revision: 561888 URL: https://svnweb.freebsd.org/changeset/ports/561888 Log: multimedia/musikcube: ncurses base/port selection based on OPSYS/OSVERSION PR: 249572 Submitted by: my-roaming-data@outlook.com Added: head/multimedia/musikcube/files/ head/multimedia/musikcube/files/patch-src_musikcube_CMakeLists.txt (contents, props changed) Modified: head/multimedia/musikcube/Makefile Modified: head/multimedia/musikcube/Makefile ============================================================================== --- head/multimedia/musikcube/Makefile Sun Jan 17 23:32:21 2021 (r561887) +++ head/multimedia/musikcube/Makefile Mon Jan 18 00:36:22 2021 (r561888) @@ -2,6 +2,7 @@ PORTNAME= musikcube DISTVERSION= 0.96.3 +PORTREVISION= 1 CATEGORIES= multimedia audio MAINTAINER= yuri@FreeBSD.org @@ -23,12 +24,22 @@ LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \ libtag.so:audio/taglib \ libvorbis.so:audio/libvorbis -USES= cmake:noninja compiler:c++14-lang ncurses:port pkgconfig ssl +USES= cmake:noninja compiler:c++14-lang pkgconfig ssl + USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= clangen CMAKE_ARGS= -DNCURSES_LIBRARIES="cursesw;tinfow;panelw" + +.include <bsd.port.options.mk> + +.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079 +USES+= ncurses +.else +USES+= ncurses:port +CFLAGS+= -I${LOCALBASE}/include/ncurses +.endif .include <bsd.port.mk> Added: head/multimedia/musikcube/files/patch-src_musikcube_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/musikcube/files/patch-src_musikcube_CMakeLists.txt Mon Jan 18 00:36:22 2021 (r561888) @@ -0,0 +1,11 @@ +--- src/musikcube/CMakeLists.txt.orig 2021-01-17 23:53:19 UTC ++++ src/musikcube/CMakeLists.txt +@@ -83,7 +83,7 @@ set_target_properties(musikcube PROPERTIES LINK_FLAGS + + if (CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD") + find_package(PkgConfig) +- pkg_check_modules(NCURSES REQUIRED ncursesw panelw) ++ pkg_check_modules(NCURSES ncursesw panelw) + target_link_libraries(musikcube ${musikcube_LINK_LIBS} ${NCURSES_LIBRARIES} musikcore) + else() + target_link_libraries(musikcube ${musikcube_LINK_LIBS} curses panel musikcore)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101180036.10I0aM0l048093>