ports/devel/libcrossguid/files/patch-CMakeLists.txt
Daniel Engberg ddc0332a1c devel/libcrossguid: Update to latest commit and switch to CMake
The current version is very old and requires a lot of hacking, update
to latest commit as the latest release was back in 2017 and switch
to CMake. This update also includes following commit from 3rd party
repo for performance:
23a8c007a6

PR:		253531
Approved by:	mentors (implicit), Mickael Maillot (maintainer timeout, 9+ months)
Differential Revision:	https://reviews.freebsd.org/D33415
2021-12-23 22:21:00 +01:00

20 lines
923 B
Text

--- CMakeLists.txt.orig 2019-05-29 15:36:34 UTC
+++ CMakeLists.txt
@@ -64,7 +64,7 @@ if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURC
set(CROSSGUID_ARCHIVE_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}")
set(CROSSGUID_FRAMEWORK_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}")
- set(CROSSGUID_CMAKE_CONFIG_INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/crossguid/cmake")
+ set(CROSSGUID_CMAKE_CONFIG_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/crossguid/")
set(CROSSGUID_ADDITIONAL_FILES_INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/crossguid")
# Install target
@@ -75,7 +75,7 @@ if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURC
FRAMEWORK DESTINATION ${CROSSGUID_FRAMEWORK_INSTALL_DIR})
# Install headers
- install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/"
+ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/crossguid/"
DESTINATION ${CROSSGUID_INC_INSTALL_DIR})
# Make cmake config files for all targets