2021-01-11 16:02:08 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(VCPKG_TARGET_IS_LINUX AND NOT EXISTS "/usr/share/doc/libgles2/copyright")
|
|
|
|
message(STATUS "libgles2-mesa-dev must be installed before libepoxy can build. Install it with \"apt-get install libgles2-mesa-dev\".")
|
|
|
|
endif()
|
2019-05-03 13:57:43 +08:00
|
|
|
|
2017-05-11 05:15:02 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO anholt/libepoxy
|
2021-11-16 06:54:45 +08:00
|
|
|
REF 1.5.9
|
|
|
|
SHA512 2b7c269063dc1c156c1a2a525e27a0a323baaa7fa4ac091536e4cc5fc4c247efe9770d7979dbddb54deb14853008bb6f4d67fddd26d87cbd264eb1e6e65bc5a8
|
2020-05-21 05:29:45 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2017-02-10 01:13:52 +08:00
|
|
|
|
2020-07-28 08:43:23 +08:00
|
|
|
if (VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_OSX)
|
2021-01-11 16:02:08 +08:00
|
|
|
set(OPTIONS -Dglx=no -Degl=no -Dx11=false)
|
2019-09-18 01:12:33 +08:00
|
|
|
else()
|
2021-01-11 16:02:08 +08:00
|
|
|
set(OPTIONS -Dglx=yes -Degl=yes -Dx11=true)
|
2019-09-18 01:12:33 +08:00
|
|
|
endif()
|
2021-01-11 16:02:08 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
list(APPEND OPTIONS -Dc_std=c99)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_configure_meson(
|
2021-11-16 06:54:45 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-08-27 01:09:08 +08:00
|
|
|
OPTIONS
|
|
|
|
${OPTIONS}
|
|
|
|
-Dtests=false
|
2021-01-11 16:02:08 +08:00
|
|
|
)
|
|
|
|
vcpkg_install_meson()
|
|
|
|
vcpkg_copy_pdbs()
|
2017-02-10 01:13:52 +08:00
|
|
|
|
2021-08-27 01:09:08 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2017-06-06 22:36:34 +08:00
|
|
|
|
2021-08-27 01:09:08 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/pkgconfig")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share/pkgconfig")
|
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|