1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/math/plplot/files/patch-cmake_modules_FindQHULL.cmake
Thierry Thomas e9a96e3df8 math/plplot: switch to Qhull8
Patch borrowed from
52479b8830/

PR:		261280
2022-02-18 19:44:54 +01:00

49 lines
2.2 KiB
CMake

--- cmake/modules/FindQHULL.cmake.orig 2019-06-01 23:24:33 UTC
+++ cmake/modules/FindQHULL.cmake
@@ -1,44 +1 @@
-# Find qhull header and library.
-#
-
-# This module defines the following uncached variables:
-# QHULL_FOUND, if false, do not try to use qhull.
-# QHULL_INCLUDE_DIRS, where to find libqhull/qhull_a.h OR qhull/qhull_a.h.
-# HAS_LIBQHULL_INCLUDE
-# if true use the libqhull/qhull_a.h form of header,
-# if false use the qhull/qhull_a.h form of header.
-# QHULL_LIBRARIES, the libraries to link against to use the qhull library
-# QHULL_LIBRARY_DIRS, the directory where the qhull library is found.
-
-include(FindPackageHandleStandardArgs)
-
-# Look preferentially for the libqhull form of header directory since
-# that is what is supplied by upstream qhull, and if the user is
-# finding a local install of the upstream library below, he wants to
-# access that same upstream version of the headers to be consistent.
-find_file(QHULL_HEADER_FILE NAMES libqhull/qhull_a.h qhull/qhull_a.h)
-if(QHULL_HEADER_FILE)
- # message(STATUS "QHULL_HEADER_FILE = ${QHULL_HEADER_FILE}")
- if(QHULL_HEADER_FILE MATCHES "libqhull")
- set(HAS_LIBQHULL_INCLUDE ON)
- else(QHULL_HEADER_FILE MATCHES "libqhull")
- set(HAS_LIBQHULL_INCLUDE OFF)
- endif(QHULL_HEADER_FILE MATCHES "libqhull")
- # Determine grandparent directory of header file
- get_filename_component(QHULL_INCLUDE_DIRS ${QHULL_HEADER_FILE} DIRECTORY)
- get_filename_component(QHULL_INCLUDE_DIRS ${QHULL_INCLUDE_DIRS} DIRECTORY)
-elseif(NOT QHULL_HEADER_FILE AND NOT QHULL_FIND_QUIETLY)
- message(STATUS "Neither qhull/qhull_a.h header nor libqhull/qhull_a.h could be found")
-endif(QHULL_HEADER_FILE)
-
-find_library(QHULL_LIBRARY qhull)
-if( QHULL_LIBRARY )
- get_filename_component(QHULL_LIBRARY_DIRS ${QHULL_LIBRARY} DIRECTORY)
- set(QHULL_LIBRARIES ${QHULL_LIBRARY})
-elseif(NOT QHULL_LIBRARY AND NOT QHULL_FIND_QUIETLY)
- message(STATUS "qhull library could not be found")
-endif(QHULL_LIBRARY)
-
-find_package_handle_standard_args(QHULL
- REQUIRED_VARS QHULL_INCLUDE_DIRS QHULL_LIBRARIES QHULL_LIBRARY_DIRS
- )
+# Removed (See https://sourceforge.net/p/plplot/plplot/ci/52479b8830ee02900b41fe3ec947aed6b1841a48/)