mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 16:07:50 +08:00
27c6c94202
* update all 16 configure_make ports * add make wrappers for msvc * improve make builds * fix relativ path errors on linux (and osx?) * revisit all 16 portfiles again * remove trace from install * fix relative build path issues. * bump control of the 16 configure ports * never forget .... real linux is case sensitive .... * Revert "bump control of the 16 configure ports" This reverts commit40d6d81c01
. * Revert "Revert "bump control of the 16 configure ports"" This reverts commit9c9851ddfc
. * bump control again for real ci rebuild * add copy_source * remove message * pass parameters to vcpkg_build_make * fix healpix build. * fix libmagic regression * fix libwandio regression * pfring changes regression fix? (cannot test in wsl) * ws change to retrigger CI * fix libpq regression * fix libudns regression * add share/pkgconfig to PKG_CONFIG_PATH * cleanup of deprecated options * cleanup docs * Revert "bump control again for real ci rebuild" This reverts commitb4bc18edc2
. * shared binaries on linux should stay in lib. Only dlls are mvoed to bin * move pkgconfig check and add message about missing system packages * added autopoint as a build requirement * fix prerun shell working dir. * a few fixes from the x windows pr - add libpath setting - fixed pkgconfig search on windows platforms - fixed autopoint msys package on windows * fix release prefix * minimal cleanup and ws changes to trigger true CI rebuild * fix tcl by upgrading * remove unnecessary rename * fix pfring? can't test in WSL. Linux kernel headers required. * fix lowercase in patch * fix libwandio * remove x264 from fail list * replace wrappers with wrappers from automake * update make ports * remove unnecessary message * refactor vcpkg_configure_make * [tcl] remove stray ? * [farmhash] fix build * [freexl] ws change to retrigger ci build * [x264] add pthread as a dependency * [vcpkg/scripts] add ignore flag correctly * [sdl] fix vcpkg_fixup_pkgconfig call * [farmhash/freexl] delete configure and recreate it. * [libudns] remove trailing ? * [freexl] use empty build target * [freexl] add system library; remove previous change * Update ports/x264/portfile.cmake Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * [libwandio] remove unncessary comment Co-authored-by: dan-shaw <51385773+dan-shaw@users.noreply.github.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
91 lines
3.3 KiB
CMake
91 lines
3.3 KiB
CMake
set(FREEXL_VERSION_STR "1.0.4")
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "http://www.gaia-gis.it/gaia-sins/freexl-sources/freexl-${FREEXL_VERSION_STR}.tar.gz"
|
|
FILENAME "freexl-${FREEXL_VERSION_STR}.tar.gz"
|
|
SHA512 d72561f7b82e0281cb211fbf249e5e45411a7cdd009cfb58da3696f0a0341ea7df210883bfde794be28738486aeb4ffc67ec2c98fd2acde5280e246e204ce788
|
|
)
|
|
|
|
if (VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_extract_source_archive_ex(
|
|
ARCHIVE ${ARCHIVE}
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
PATCHES
|
|
fix-makefiles.patch
|
|
fix-sources.patch
|
|
)
|
|
|
|
set(LIBS_ALL_DBG
|
|
"\"${CURRENT_INSTALLED_DIR}/debug/lib/libiconv.lib\" \
|
|
\"${CURRENT_INSTALLED_DIR}/debug/lib/libcharset.lib\""
|
|
)
|
|
set(LIBS_ALL_REL
|
|
"\"${CURRENT_INSTALLED_DIR}/lib/libiconv.lib\" \
|
|
\"${CURRENT_INSTALLED_DIR}/lib/libcharset.lib\""
|
|
)
|
|
|
|
vcpkg_install_nmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS_DEBUG
|
|
INSTALLED_ROOT="${CURRENT_INSTALLED_DIR}/debug"
|
|
INST_DIR="${CURRENT_PACKAGES_DIR}/debug"
|
|
"LINK_FLAGS=/debug"
|
|
"LIBS_ALL=${LIBS_ALL_DBG}"
|
|
OPTIONS_RELEASE
|
|
INSTALLED_ROOT="${CURRENT_INSTALLED_DIR}"
|
|
INST_DIR="${CURRENT_PACKAGES_DIR}"
|
|
"LINK_FLAGS="
|
|
"LIBS_ALL=${LIBS_ALL_REL}"
|
|
)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/freexl RENAME copyright)
|
|
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/freexl_i.lib)
|
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/freexl_i.lib)
|
|
else()
|
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/freexl.lib)
|
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/freexl.lib)
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/freexl_i.lib ${CURRENT_PACKAGES_DIR}/lib/freexl.lib)
|
|
endif()
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/freexl_i.lib ${CURRENT_PACKAGES_DIR}/debug/lib/freexl.lib)
|
|
endif()
|
|
endif()
|
|
|
|
elseif (CMAKE_HOST_UNIX OR CMAKE_HOST_APPLE) # Build in UNIX
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
ARCHIVE ${ARCHIVE}
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
)
|
|
file(REMOVE_RECURSE "${SOURCE_PATH}/configure")
|
|
vcpkg_configure_make(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS_DEBUG
|
|
INSTALLED_ROOT="${CURRENT_INSTALLED_DIR}"
|
|
"LINK_FLAGS=/debug"
|
|
"CL_FLAGS=${CL_FLAGS_DBG}"
|
|
"LIBS_ALL=${LIBS_ALL_DBG}"
|
|
OPTIONS_RELEASE
|
|
INSTALLED_ROOT="${CURRENT_INSTALLED_DIR}"
|
|
"LINK_FLAGS="
|
|
"CL_FLAGS=${CL_FLAGS_REL}"
|
|
"LIBS_ALL=${LIBS_ALL_REL}"
|
|
)
|
|
|
|
vcpkg_install_make()
|
|
vcpkg_fixup_pkgconfig(SYSTEM_LIBRARIES m)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/freexl RENAME copyright)
|
|
|
|
else()# Other build system
|
|
message(FATAL_ERROR "Unsupported build system.")
|
|
endif()
|
|
|
|
message(STATUS "Packaging ${TARGET_TRIPLET} done")
|