1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-25 22:50:32 -04:00
ports/sysutils/cpu-x/files/patch-src_CMakeLists.txt
Alexey Dokuchaev 069eee7c18 Add a port of CPU-X, a free software that gathers information about CPU,
motherboard, and more on one's system, similar to CPU-Z for Windows.

Because GitHub releases (tarballs) are not fetched with correct modification
time, set TIMESTAMP to 1477420923 which corresponds to commit f10b0d4 tagged
as this release.
2016-11-14 02:05:29 +00:00

17 lines
507 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 ncurses)
+ # 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 ncurses)
+ endif()
if(NCURSES_FOUND)
include_directories(${NCURSES_INCLUDE_DIRS})
link_directories(${NCURSES_LIBRARY_DIRS})