2019-05-02 22:57:43 -07:00
vcpkg_check_linkage ( ONLY_DYNAMIC_LIBRARY )
2017-05-10 23:15:02 +02: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
2020-05-20 23:29:45 +02:00
R E F 1 . 5 . 4
S H A 5 1 2 c 8 b 0 3 f 0 a 3 9 d f 3 2 0 f d d 1 6 3 a 3 4 c 3 5 f 9 f f b e d 5 1 b c 0 1 7 4 f d 8 9 a 7 d c 4 b 3 a b 2 4 3 9 4 1 3 0 8 7 e 1 e 1 a 2 f e 5 7 4 1 8 5 2 0 0 7 4 a b d 4 3 5 0 5 1 c b f 0 3 e b 2 a 7 b f 8 8 9 7 d a 1 7 1 2 b b b c 6 9 c f 2 7 c c 5
H E A D _ R E F m a s t e r
P A T C H E S
# https://github.com/anholt/libepoxy/pull/220
l i b e p o x y - 1 . 5 . 4 _ A d d _ c a l l _ c o n v e n t i o n _ t o _ m o c k _ f u n c t i o n . p a t c h
2020-11-04 08:14:33 +01:00
l i b e p o x y - 1 . 5 . 4 _ m e s o n _ c _ s t d . p a t c h
2020-05-20 23:29:45 +02:00
)
2017-02-09 18:13:52 +01:00
2020-07-28 02:43:23 +02:00
if ( VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_OSX )
2019-09-18 01:12:33 +08:00
vcpkg_configure_meson ( SOURCE_PATH ${ SOURCE_PATH }
O P T I O N S
- D e n a b l e - g l x = n o
- D e n a b l e - e g l = n o )
vcpkg_install_meson ( )
vcpkg_copy_pdbs ( )
else ( )
find_program ( autoreconf autoreconf )
if ( NOT autoreconf OR NOT EXISTS "/usr/share/doc/libgles2/copyright" )
message ( FATAL_ERROR "autoreconf and libgles2-mesa-dev must be installed before libepoxy can build. Install them with \" apt-get install dh-autoreconf libgles2-mesa-dev\ "." )
endif ( )
2020-07-28 02:43:23 +02:00
2019-09-18 01:12:33 +08:00
find_program ( MAKE make )
if ( NOT MAKE )
message ( FATAL_ERROR "MAKE not found" )
endif ( )
file ( REMOVE_RECURSE ${ SOURCE_PATH } /m4 )
file ( MAKE_DIRECTORY ${ SOURCE_PATH } /m4 )
2020-07-28 02:43:23 +02:00
2019-09-18 01:12:33 +08:00
set ( LIBEPOXY_CONFIG_ARGS "--enable-x11=yes --enable-glx=yes --enable-egl=yes" )
2020-07-28 02:43:23 +02:00
2019-09-18 01:12:33 +08:00
vcpkg_execute_required_process (
C O M M A N D " a u t o r e c o n f " - v - - i n s t a l l
W O R K I N G _ D I R E C T O R Y $ { S O U R C E _ P A T H }
L O G N A M E a u t o r e c o n f - $ { T A R G E T _ T R I P L E T }
)
2020-07-28 02:43:23 +02:00
2019-09-18 01:12:33 +08:00
message ( STATUS "Configuring ${TARGET_TRIPLET}" )
set ( OUT_PATH_RELEASE ${ CURRENT_BUILDTREES_DIR } /make-build- ${ TARGET_TRIPLET } -release )
2020-07-28 02:43:23 +02:00
2019-09-18 01:12:33 +08:00
file ( REMOVE_RECURSE ${ OUT_PATH_RELEASE } )
file ( MAKE_DIRECTORY ${ OUT_PATH_RELEASE } )
2020-07-28 02:43:23 +02:00
2019-09-18 01:12:33 +08:00
vcpkg_execute_required_process (
C O M M A N D " . / c o n f i g u r e " - - p r e f i x = $ { O U T _ P A T H _ R E L E A S E } " $ { L I B E P O X Y _ C O N F I G _ A R G S } "
W O R K I N G _ D I R E C T O R Y $ { S O U R C E _ P A T H }
L O G N A M E c o n f i g - $ { T A R G E T _ T R I P L E T }
)
2020-07-28 02:43:23 +02:00
2019-09-18 01:12:33 +08:00
message ( STATUS "Building ${TARGET_TRIPLET}" )
vcpkg_execute_required_process (
C O M M A N D m a k e
W O R K I N G _ D I R E C T O R Y $ { S O U R C E _ P A T H }
L O G N A M E b u i l d - $ { T A R G E T _ T R I P L E T } - r e l e a s e
)
2020-07-28 02:43:23 +02:00
2019-09-18 01:12:33 +08:00
message ( STATUS "Installing ${TARGET_TRIPLET}" )
vcpkg_execute_required_process (
C O M M A N D m a k e i n s t a l l
W O R K I N G _ D I R E C T O R Y $ { S O U R C E _ P A T H }
L O G N A M E i n s t a l l - $ { T A R G E T _ T R I P L E T } - r e l e a s e
)
file ( COPY ${ OUT_PATH_RELEASE } /include DESTINATION ${ CURRENT_PACKAGES_DIR } )
file ( COPY ${ OUT_PATH_RELEASE } /lib DESTINATION ${ CURRENT_PACKAGES_DIR } )
file ( RENAME ${ CURRENT_PACKAGES_DIR } /lib ${ CURRENT_PACKAGES_DIR } /bin )
endif ( )
2017-02-09 18:13:52 +01:00
2017-06-06 16:36:34 +02:00
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /share/pkgconfig )
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/share/pkgconfig )
2020-05-20 19:10:59 +02:00
file ( INSTALL ${ SOURCE_PATH } /COPYING DESTINATION ${ CURRENT_PACKAGES_DIR } /share/ ${ PORT } RENAME copyright )