diff options
Diffstat (limited to 'ports/ccfits')
| -rw-r--r-- | ports/ccfits/CONTROL | 3 | ||||
| -rw-r--r-- | ports/ccfits/fix-dependency.patch | 15 | ||||
| -rw-r--r-- | ports/ccfits/portfile.cmake | 4 |
3 files changed, 20 insertions, 2 deletions
diff --git a/ports/ccfits/CONTROL b/ports/ccfits/CONTROL index 02234c94e..4fbc3ad80 100644 --- a/ports/ccfits/CONTROL +++ b/ports/ccfits/CONTROL @@ -1,5 +1,6 @@ Source: ccfits -Version: 2.5-5 +Version: 2.5 +Port-Version: 6 Homepage: https://heasarc.gsfc.nasa.gov/fitsio/ccfits Description: CCfits is an object oriented interface to the cfitsio library. It is designed to make the capabilities of cfitsio available to programmers working in C++. Build-Depends: cfitsio diff --git a/ports/ccfits/fix-dependency.patch b/ports/ccfits/fix-dependency.patch new file mode 100644 index 000000000..15cffeb4e --- /dev/null +++ b/ports/ccfits/fix-dependency.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d72ae85..405d96b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -22,8 +22,8 @@ ENDIF() + + #add_subdirectory (src) + +-find_package(CFITSIO REQUIRED) +-INCLUDE_DIRECTORIES(${CFITSIO_INCLUDE_DIR}) ++find_package(unofficial-cfitsio CONFIG REQUIRED) ++set(CFITSIO_LIBRARY cfitsio) + + SET (LIB_TYPE STATIC) + IF (BUILD_SHARED_LIBS) diff --git a/ports/ccfits/portfile.cmake b/ports/ccfits/portfile.cmake index 6c33b383b..2071e4af8 100644 --- a/ports/ccfits/portfile.cmake +++ b/ports/ccfits/portfile.cmake @@ -7,7 +7,9 @@ vcpkg_download_distfile(ARCHIVE vcpkg_extract_source_archive_ex( ARCHIVE ${ARCHIVE} OUT_SOURCE_PATH SOURCE_PATH - PATCHES dll_exports.patch + PATCHES + dll_exports.patch + fix-dependency.patch ) vcpkg_configure_cmake( |
