svn commit: r561888 - in head/multimedia/musikcube: . files
Yuri Victorovich
yuri at FreeBSD.org
Mon Jan 18 00:36:23 UTC 2021
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 at 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 at 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)
More information about the svn-ports-head
mailing list