2020-03-04 13:25:24 -08:00
|
|
|
set(HEALPIX_VER 3.50)
|
|
|
|
set(HEALPIX_PACK_NAME ${HEALPIX_VER}_2018Dec10)
|
|
|
|
|
2020-06-27 06:06:30 +08:00
|
|
|
vcpkg_from_sourceforge(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO healpix
|
|
|
|
REF Healpix_${HEALPIX_VER}
|
2020-03-04 13:25:24 -08:00
|
|
|
FILENAME "Healpix_${HEALPIX_PACK_NAME}.tar.gz"
|
|
|
|
SHA512 29fe680d757bd94651bf029654257cb67286643aad510df4c2f0b06245174411376ec1beca64feebfac14a6fc0194525170635842916d79dcaddeddd9ac6f6c7
|
2020-10-17 02:05:12 -07:00
|
|
|
PATCHES fix-dependency.patch
|
2020-03-04 13:25:24 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_make(
|
2020-08-13 22:32:55 +02:00
|
|
|
AUTOCONFIG
|
2020-03-04 13:25:24 -08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PROJECT_SUBPATH src/cxx
|
2020-05-21 19:46:07 +02:00
|
|
|
COPY_SOURCE
|
2020-03-04 13:25:24 -08:00
|
|
|
OPTIONS
|
|
|
|
--with-libcfitsio-include=${CURRENT_INSTALLED_DIR}/include/cfitsio
|
|
|
|
--with-libcfitsio-lib=${CURRENT_INSTALLED_DIR}/lib
|
|
|
|
)
|
|
|
|
|
2020-05-21 19:46:07 +02:00
|
|
|
vcpkg_build_make(BUILD_TARGET compile_all)
|
|
|
|
#vcpkg_fixup_pkgconfig()
|
2020-03-04 13:25:24 -08:00
|
|
|
|
2020-05-21 19:46:07 +02:00
|
|
|
# Install manually because healpix has no install target
|
|
|
|
set(OBJ_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/auto")
|
2020-03-04 13:25:24 -08:00
|
|
|
file(GLOB_RECURSE HEALPIX_LIBS ${OBJ_DIR}/lib/*)
|
2020-05-21 19:46:07 +02:00
|
|
|
file(INSTALL ${HEALPIX_LIBS} DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
|
2020-03-04 13:25:24 -08:00
|
|
|
|
|
|
|
file(GLOB_RECURSE HEALPIX_INCLUDES ${OBJ_DIR}/include/*)
|
2020-05-21 19:46:07 +02:00
|
|
|
file(INSTALL ${HEALPIX_INCLUDES} DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
2020-03-04 13:25:24 -08:00
|
|
|
|
|
|
|
file(GLOB_RECURSE HEALPIX_TOOLS ${OBJ_DIR}/bin/*)
|
2020-05-21 19:46:07 +02:00
|
|
|
file(INSTALL ${HEALPIX_TOOLS} DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
|
|
|
|
|
|
|
if(EXISTS "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/")
|
|
|
|
set(OBJ_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/auto")
|
|
|
|
file(GLOB_RECURSE HEALPIX_LIBS ${OBJ_DIR}/lib/*)
|
|
|
|
file(INSTALL ${HEALPIX_LIBS} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
|
|
|
endif()
|
2020-03-04 13:25:24 -08:00
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|