aboutsummaryrefslogtreecommitdiff
path: root/ports/cfitsio
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-03-23 06:53:43 -0700
committerRobert Schumacher <roschuma@microsoft.com>2018-03-23 15:11:17 -0700
commit0595f955cc7bdecb807ab3d04404298a805ec4b6 (patch)
tree637281021fc6eaf7918e94a9eddc7d926d01ef33 /ports/cfitsio
parent7c6dc9543d13bd4793cd9051f876666c6bb370c0 (diff)
downloadvcpkg-0595f955cc7bdecb807ab3d04404298a805ec4b6.tar.gz
vcpkg-0595f955cc7bdecb807ab3d04404298a805ec4b6.zip
[paho-mqtt][cfitsio][ccfits] Reduce conflicts in headers (unistd.h, etc)
Diffstat (limited to 'ports/cfitsio')
-rw-r--r--ports/cfitsio/CONTROL2
-rw-r--r--ports/cfitsio/portfile.cmake17
2 files changed, 12 insertions, 7 deletions
diff --git a/ports/cfitsio/CONTROL b/ports/cfitsio/CONTROL
index b25eb8026..7c50b295d 100644
--- a/ports/cfitsio/CONTROL
+++ b/ports/cfitsio/CONTROL
@@ -1,3 +1,3 @@
Source: cfitsio
-Version: 3.410-1
+Version: 3.410-2
Description: Library of C and Fortran subroutines for reading and writing data files in FITS (Flexible Image Transport System) data format
diff --git a/ports/cfitsio/portfile.cmake b/ports/cfitsio/portfile.cmake
index 2490beb80..e9caf61d1 100644
--- a/ports/cfitsio/portfile.cmake
+++ b/ports/cfitsio/portfile.cmake
@@ -15,14 +15,19 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
# Remove duplicate include files
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/include/unistd.h)
+
+# cfitsio uses very common names for its headers, so they must be moved to a subdirectory
+file(RENAME ${CURRENT_PACKAGES_DIR}/include ${CURRENT_PACKAGES_DIR}/cfitsio)
+file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include)
+file(RENAME ${CURRENT_PACKAGES_DIR}/cfitsio ${CURRENT_PACKAGES_DIR}/include/cfitsio)
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
- # move DLLs to bin directories for dynamic builds
- file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/bin)
- file(RENAME ${CURRENT_PACKAGES_DIR}/lib/cfitsio.dll ${CURRENT_PACKAGES_DIR}/bin/cfitsio.dll)
- file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug/bin)
- file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/cfitsio.dll ${CURRENT_PACKAGES_DIR}/debug/bin/cfitsio.dll)
+ # move DLLs to bin directories for dynamic builds
+ file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/bin)
+ file(RENAME ${CURRENT_PACKAGES_DIR}/lib/cfitsio.dll ${CURRENT_PACKAGES_DIR}/bin/cfitsio.dll)
+ file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug/bin)
+ file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/cfitsio.dll ${CURRENT_PACKAGES_DIR}/debug/bin/cfitsio.dll)
endif()
# Handle copyright