2021-01-11 16:02:08 +08:00
if ( VCPKG_TARGET_IS_WINDOWS )
vcpkg_check_linkage ( ONLY_DYNAMIC_LIBRARY )
endif ( )
2022-11-01 04:48:57 +08:00
if ( VCPKG_TARGET_IS_LINUX )
message ( WARNING "${PORT} currently requires the following libraries from the system package manager:\n libx11-dev\n libgles2-mesa-dev\n\nThese can be installed on Ubuntu systems via apt-get install libx11-dev libgles2-mesa-dev." )
2021-01-11 16:02:08 +08:00
endif ( )
2019-05-03 13:57:43 +08:00
2017-05-11 05:15:02 +08:00
vcpkg_from_github (
O U T _ S O U R C E _ P A T H S O U R C E _ P A T H
R E P O a n h o l t / l i b e p o x y
2022-10-25 07:27:04 +08:00
R E F 1 . 5 . 1 0
S H A 5 1 2 6 7 8 6 f 3 1 c 6 e 2 8 6 5 e 6 8 a 9 0 e b 9 1 2 9 0 0 a 8 6 b f 5 6 f d 3 d f 4 d 7 8 a 4 7 7 3 5 6 8 8 6 a c 3 b 6 e f 5 2 a c 8 8 7 b 9 c 7 a 7 7 a a 0 2 7 5 2 5 f 8 6 8 a e 9 e 8 8 b 1 2 e 5 9 2 7 b a 5 6 0 6 9 c 2 e 1 1 5 a c d 6 3 1 f c a 3 a b e e
2020-05-21 05:29:45 +08:00
H E A D _ R E F m a s t e r
)
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 )
2023-07-06 02:38:10 +08:00
elseif ( VCPKG_TARGET_IS_ANDROID )
set ( OPTIONS -Dglx=no -Degl=yes -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 )
2023-07-06 02:38:10 +08:00
if ( VCPKG_LIBRARY_LINKAGE STREQUAL "static" )
list ( APPEND OPTIONS "-Dc_args=-DEPOXY_PUBLIC=extern" )
endif ( )
2021-01-11 16:02:08 +08:00
endif ( )
vcpkg_configure_meson (
2021-11-16 06:54:45 +08:00
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
2021-08-27 01:09:08 +08:00
O P T I O N S
$ { O P T I O N S }
- D t e s t s = f a l s e
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
2023-07-06 02:38:10 +08:00
if ( VCPKG_TARGET_IS_WINDOWS )
vcpkg_replace_string ( "${CURRENT_PACKAGES_DIR}/include/epoxy/common.h" "# if defined(_MSC_VER)" "# if defined(_WIN32)" )
if ( VCPKG_LIBRARY_LINKAGE STREQUAL "static" )
vcpkg_replace_string ( "${CURRENT_PACKAGES_DIR}/include/epoxy/common.h" "__declspec(dllimport)" "" )
endif ( )
endif ( )
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 )