mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
multimedia/musikcube: Fix build on 13+ by properly linking to base OpenSSL
Reported by: fallout
This commit is contained in:
parent
0c83b29884
commit
089d935ab1
@ -34,10 +34,12 @@ GH_ACCOUNT= clangen
|
||||
.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 <bsd.port.mk>
|
||||
|
@ -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)
|
Loading…
Reference in New Issue
Block a user