mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-15 16:39:03 +08:00
00553d0269
* [elfutils] add new port * update * Update ports/elfutils/configure.ac.patch Fix missing ZSTD linkage * Update ports/elfutils/portfile.cmake Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> * add eflutils on osx on CI skiplist Co-authored-by: wangli28 <wangli28@beyondsoft.com> Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>
53 lines
2.0 KiB
CMake
53 lines
2.0 KiB
CMake
vcpkg_from_git(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
URL https://sourceware.org/git/elfutils
|
|
REF 25d048684a82f9ba701c6939b7f28c3543bb7991 #elfutils-0.182
|
|
|
|
PATCHES configure.ac.patch
|
|
)
|
|
|
|
vcpkg_find_acquire_program(FLEX)
|
|
get_filename_component(FLEX_DIR "${FLEX}" DIRECTORY )
|
|
vcpkg_add_to_path(PREPEND "${FLEX_DIR}")
|
|
vcpkg_find_acquire_program(BISON)
|
|
get_filename_component(BISON_DIR "${BISON}" DIRECTORY )
|
|
vcpkg_add_to_path(PREPEND "${BISON_DIR}")
|
|
|
|
vcpkg_configure_make(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
AUTOCONFIG
|
|
OPTIONS --disable-debuginfod
|
|
--enable-libdebuginfod=dummy
|
|
--with-zlib
|
|
--with-bzlib
|
|
--with-lzma
|
|
--with-zstd
|
|
--enable-maintainer-mode
|
|
OPTIONS_RELEASE
|
|
ac_cv_null_dereference=no # deactivating Werror due to null dereferences since NDEBUG is passed and asserts thus disabled/removed
|
|
)
|
|
|
|
vcpkg_install_make()
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libdebuginfod.pc" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libdebuginfod.pc") #--disable-debuginfod
|
|
vcpkg_fixup_pkgconfig(SYSTEM_LIBRARIES pthread)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/locale)
|
|
|
|
# Remove files with wrong linkage
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
set(_lib_suffix "${VCPKG_TARGET_SHARED_LIBRARY_SUFFIX}")
|
|
else()
|
|
set(_lib_suffix "${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}")
|
|
endif()
|
|
file(GLOB_RECURSE TO_REMOVE "${CURRENT_PACKAGES_DIR}/lib/*${_lib_suffix}" "${CURRENT_PACKAGES_DIR}/debug/lib/*${_lib_suffix}")
|
|
file(REMOVE ${TO_REMOVE})
|
|
|
|
# # Handle copyright
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static OR NOT VCPKG_TARGET_IS_WINDOWS)
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
endif()
|