ports/sysutils/cpu-x/files/patch-src_CMakeLists.txt
Alexey Dokuchaev d34780a648 Update `sysutils/cpu-x' to version 3.2.0.
Reported by:	portscout
2018-02-01 17:11:32 +00:00

17 lines
509 B
Text

--- src/CMakeLists.txt.orig 2016-10-25 18:42:03 UTC
+++ src/CMakeLists.txt
@@ -37,7 +37,13 @@ endif(WITH_GTK)
# NCurses
if(WITH_NCURSES)
- pkg_check_modules(NCURSES ncursesw)
+ # Assume ncurses from the base on FreeBSD
+ if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
+ set(NCURSES_FOUND 1)
+ set(NCURSES_LIBRARIES "-l:libncursesw.so")
+ else()
+ pkg_check_modules(NCURSES ncursesw)
+ endif()
if(NCURSES_FOUND)
include_directories(${NCURSES_INCLUDE_DIRS})
link_directories(${NCURSES_LIBRARY_DIRS})