2019-06-21 22:45:40 -07:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2021-02-08 18:18:42 -08:00
|
|
|
URLS "https://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.5.tar.bz2"
|
|
|
|
FILENAME "libftdi1-1.5.tar.bz2"
|
|
|
|
SHA512 c525b2ab6aff9ef9254971ae7d57f3549a36a36875765c48f947d52532814a2a004de1232389d4fe824a8c8ab84277b08427308573476e1da9b7db83db802f6f
|
2019-06-21 22:45:40 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
ARCHIVE ${ARCHIVE}
|
2021-02-08 18:18:42 -08:00
|
|
|
REF 1.5
|
2019-06-21 22:45:40 -07:00
|
|
|
PATCHES
|
2021-02-08 18:18:42 -08:00
|
|
|
libusb-fix.patch
|
|
|
|
libconfuse-fix.patch
|
2019-06-21 22:45:40 -07:00
|
|
|
win32.patch
|
|
|
|
)
|
|
|
|
|
2021-11-05 20:55:49 +01:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/exports.def" DESTINATION "${SOURCE_PATH}/src")
|
2019-06-21 22:45:40 -07:00
|
|
|
|
2021-11-05 20:55:49 +01:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-06-21 22:45:40 -07:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
-DDOCUMENTATION=OFF
|
|
|
|
-DEXAMPLES=OFF
|
|
|
|
-DPYTHON_BINDINGS=OFF
|
|
|
|
-DLINK_PYTHON_LIBRARY=OFF
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Boost=ON
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Libintl=ON
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_PythonLibs=ON
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_PythonInterp=ON
|
2021-02-08 18:18:42 -08:00
|
|
|
-DFTDI_EEPROM=OFF
|
2019-06-21 22:45:40 -07:00
|
|
|
)
|
|
|
|
|
2021-11-05 20:55:49 +01:00
|
|
|
vcpkg_cmake_install()
|
2019-06-21 22:45:40 -07:00
|
|
|
|
2021-11-05 20:55:49 +01:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libftdi1)
|
2019-06-21 22:45:40 -07:00
|
|
|
|
2021-12-02 04:21:52 +01:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2021-11-05 20:55:49 +01:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2019-06-21 22:45:40 -07:00
|
|
|
|
2020-07-30 02:22:12 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
endif()
|
2019-06-21 22:45:40 -07:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
2020-07-30 02:22:12 +08:00
|
|
|
|
2021-11-05 20:55:49 +01:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|