ports/sysutils/cpu-x/files/patch-src_CMakeLists.txt
Alexey Dokuchaev 5d0d0f023e sysutils/cpu-x: the port had been updated and improved (+)
- Update to the latest version 4.5.2 and chase that very long
  new upstream name; adjust LICENSE (it's GPLv3 or later)
- Garbage-collect no longer needed `post-patch' target
- Allow to disable NLS due to low quality of some translations
  and unbreak the port's build in this case
- Disable GLFW, Vulkan, and OpenCL for now: on FreeBSD, they
  only provide those components' version numbers because the
  adjacent support code is Linux-specific

PR:		269981
Reported by:	portscout
2023-03-17 10:25:48 +00:00

26 lines
699 B
Text

--- src/CMakeLists.txt.orig 2022-11-12 17:27:40 UTC
+++ src/CMakeLists.txt
@@ -23,7 +23,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})
@@ -37,7 +43,7 @@ endif(WITH_NCURSES)
# Gettext
if(Intl_FOUND)
- include_directories(${CMAKE_BINARY_DIR}/po)
+ include_directories(${Intl_INCLUDE_DIRS})
endif(Intl_FOUND)
# Libcpuid