mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 07:01:37 +08:00
6784c97c22
* Fix dependencies * Fix osx build * Update versions
32 lines
1.1 KiB
CMake
32 lines
1.1 KiB
CMake
set(LIBDC1394_VER "2.2.6")
|
|
|
|
vcpkg_from_sourceforge(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO libdc1394/libdc1394-2
|
|
REF "${LIBDC1394_VER}"
|
|
FILENAME "libdc1394-${LIBDC1394_VER}.tar.gz"
|
|
SHA512 2d60ed1054da67d8518e870193b60c1d79778858f48cc6487e252de00cc57a08548515d41914a37d0227d29e158d68892c290f83930ffd95f4a483dce5aa3d25
|
|
PATCHES
|
|
fix-macosx.patch
|
|
)
|
|
|
|
vcpkg_configure_make(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
"--disable-examples"
|
|
ac_cv_lib_raw1394_raw1394_channel_modify=no
|
|
ac_cv_path_SDL_CONFIG=no
|
|
)
|
|
vcpkg_install_make()
|
|
|
|
file(APPEND "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libdc1394-2.pc" "\nRequires.private: libusb-1.0\n")
|
|
if(NOT VCPKG_BUILD_TYPE)
|
|
file(APPEND "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libdc1394-2.pc" "\nRequires.private: libusb-1.0\n")
|
|
endif()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|