diff -Nurd libical-3.0.16.orig/CMakeLists.txt libical-3.0.16/CMakeLists.txt --- libical-3.0.16.orig/CMakeLists.txt 2022-10-17 16:53:57.000000000 -0400 +++ libical-3.0.16/CMakeLists.txt 2023-03-01 04:26:31.000000000 -0500 @@ -199,12 +199,6 @@ if(NOT "$ENV{ICU_BASE}" STREQUAL "") #support the old ICU_BASE env set(ICU_ROOT $ENV{ICU_BASE}) endif() -if(NOT "$ENV{ICU_ROOT}") - #Use the homebrew version. MacOS provided ICU doesn't provide development files - if(APPLE) - set(ICU_ROOT "/usr/local/opt/icu4c") - endif() -endif() find_package(ICU COMPONENTS uc i18n) set_package_properties(ICU PROPERTIES TYPE RECOMMENDED @@ -241,12 +235,6 @@ endif() # compile in Berkeley DB support -if(NOT "$ENV{BerkeleyDB_ROOT_DIR}") - if(APPLE) - #Use the homebrew version. Xcode's version doesn't work for us. - set(BerkeleyDB_ROOT_DIR "/usr/local/opt/berkeley-db") - endif() -endif() find_package(BerkeleyDB) set_package_properties(BerkeleyDB PROPERTIES TYPE OPTIONAL diff -Nurd libical-3.0.16.orig/cmake/modules/FindBerkeleyDB.cmake libical-3.0.16/cmake/modules/FindBerkeleyDB.cmake --- libical-3.0.16.orig/cmake/modules/FindBerkeleyDB.cmake 2022-10-17 16:53:57.000000000 -0400 +++ libical-3.0.16/cmake/modules/FindBerkeleyDB.cmake 2023-03-01 04:35:18.000000000 -0500 @@ -62,13 +62,8 @@ endforeach() else() # Paths for anything other than Windows - # Cellar/berkeley-db is for macOS from homebrew installation list(APPEND _BERKELEYDB_PATHS - "/usr" - "/usr/local" - "/usr/local/Cellar/berkeley-db" - "/opt" - "/opt/local" + "@FINKPREFIX@" ) endif()