opnsense-ports/games/widelands/files/patch-src_CMakeLists.txt
Franco Fichtner 3e3ccf651e */*: sync with upstream
Taken from: FreeBSD
2022-11-03 03:20:27 +01:00

13 lines
554 B
Text

--- src/CMakeLists.txt.orig 2022-10-22 11:51:16 UTC
+++ src/CMakeLists.txt
@@ -77,7 +77,9 @@ else()
# If pkg-config is ever needed to find other libraries, move the include outside the if() block
include(FindPkgConfig)
if(PKG_CONFIG_FOUND)
- pkg_check_modules(MINIZIP minizip)
+ pkg_check_modules(PC_MINIZIP minizip)
+ find_path(MINIZIP_INCLUDE_DIRS NAMES mztools.h PATH_SUFFIXES minizip HINTS ${PC_MINIZIP_INCLUDE_DIRS})
+ find_library(MINIZIP_STATIC_LIBRARIES NAMES minizip HINTS ${PC_MINIZIP_LIBRARY_DIRS})
endif()
endif()