mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 02:28:59 +08:00
4935f12b6d
* take changes from fontconfig pr * [farmhash] add autoconf * [freexl] add autoconf * [healpix] add autoconf * [libb2] add autoconf * [libwandio] add autoconf and patch * more autoconf * [x264] fix windows build issues * minimal cleanup * [libwandio] some fixes * [vcpkg/scripts/make] add include to C/CXX flags correctly set machine flags for linker * remove unnecessary comments part 1 * cleanup part 2 * cleanup * remove unnecessary code * [pbc] fix osx regressions * [lzokay] format manifest * try to copy sources to fix build issues * add autoconfig to force updated configure scripts * bump port versions of openmpi and ocilib * added lib paths back into vcpkg_build_make because they are probably required * Use CPP flags add quotes around restoring of ENV add LIB and LIBPATH correctly * Apply suggestions from code review Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com> * Apply more changes forom CR - remove mingw make - add doc for missing options - introduce two new macros for backup/restore of env vars * fix wrong variables. * use the list macro instead of the single var macro * also use it at the top Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com> Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com>
44 lines
1.6 KiB
CMake
44 lines
1.6 KiB
CMake
set(HEALPIX_VER 3.50)
|
|
set(HEALPIX_PACK_NAME ${HEALPIX_VER}_2018Dec10)
|
|
|
|
vcpkg_from_sourceforge(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO healpix
|
|
REF Healpix_${HEALPIX_VER}
|
|
FILENAME "Healpix_${HEALPIX_PACK_NAME}.tar.gz"
|
|
SHA512 29fe680d757bd94651bf029654257cb67286643aad510df4c2f0b06245174411376ec1beca64feebfac14a6fc0194525170635842916d79dcaddeddd9ac6f6c7
|
|
)
|
|
|
|
vcpkg_configure_make(
|
|
AUTOCONFIG
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PROJECT_SUBPATH src/cxx
|
|
COPY_SOURCE
|
|
OPTIONS
|
|
--with-libcfitsio-include=${CURRENT_INSTALLED_DIR}/include/cfitsio
|
|
--with-libcfitsio-lib=${CURRENT_INSTALLED_DIR}/lib
|
|
)
|
|
|
|
vcpkg_build_make(BUILD_TARGET compile_all)
|
|
#vcpkg_fixup_pkgconfig()
|
|
|
|
# Install manually because healpix has no install target
|
|
set(OBJ_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/auto")
|
|
file(GLOB_RECURSE HEALPIX_LIBS ${OBJ_DIR}/lib/*)
|
|
file(INSTALL ${HEALPIX_LIBS} DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
file(GLOB_RECURSE HEALPIX_INCLUDES ${OBJ_DIR}/include/*)
|
|
file(INSTALL ${HEALPIX_INCLUDES} DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
|
|
|
file(GLOB_RECURSE HEALPIX_TOOLS ${OBJ_DIR}/bin/*)
|
|
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()
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|