2022-02-23 04:56:16 +08:00
vcpkg_check_linkage ( ONLY_DYNAMIC_LIBRARY )
2021-10-13 08:02:59 +08:00
vcpkg_from_gitlab (
G I T L A B _ U R L h t t p s : / / g i t l a b . c o m
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 g r a p h v i z / g r a p h v i z
R E F 2 . 4 9 . 1
S H A 5 1 2 a c 1 4 3 0 3 f 6 7 d 0 8 4 0 b 2 6 0 c 5 f 2 f 9 9 c 5 3 0 4 9 a 1 e 4 4 4 a 9 6 3 d 3 1 3 8 7 a e 7 a 4 4 f f c 2 4 7 5 7 b d 4 4 f 1 c 4 0 d d d 3 f d b 6 a 8 d 0 e 0 b b 1 d d e 0 e 1 5 d 3 2 0 f 6 1 3 7 2 9 f b 6 3 1 e f d 4 f 0 7 8 f c b 3 a 4 f 6 2
H E A D _ R E F m a i n
P A T C H E S
0 0 0 1 - F i x - b u i l d . p a t c h
)
2022-02-23 04:56:16 +08:00
if ( VCPKG_TARGET_IS_OSX )
message ( "${PORT} currently requires the following libraries from the system package manager:\n libtool\n\nThey can be installed with brew install libtool" )
elseif ( VCPKG_TARGET_IS_LINUX )
message ( "${PORT} currently requires the following libraries from the system package manager:\n libtool\n\nThey can be installed with apt-get install libtool" )
else ( )
vcpkg_download_distfile (
L T D L _ H _ P A T H
U R L S " h t t p s : / / g i t l a b . c o m / g r a p h v i z / g r a p h v i z - w i n d o w s - d e p e n d e n c i e s / - / r a w / 1 4 1 d 3 a 2 1 b e 9 0 4 f a 8 d c 2 a e 3 e d 0 1 d 3 6 6 8 4 d b 0 7 a 3 5 d / $ { V C P K G _ T A R G E T _ A R C H I T E C T U R E } / i n c l u d e / l t d l . h "
F I L E N A M E l t d l . h
S H A 5 1 2 f 2 d 2 0 e 8 4 9 e 3 5 0 6 0 5 3 6 2 6 5 f 4 7 0 1 4 c 4 0 e b 7 0 e 5 7 d a c d 6 0 0 a 9 d b 1 1 2 f c 4 6 5 f b f a 6 a 6 6 2 1 7 b 4 4 a 8 c 3 d c 3 3 0 3 9 c 2 6 0 a 2 7 f 0 9 d 9 0 3 4 b 3 2 9 b 0 3 c c 2 8 c 3 2 a 2 2 e c 5 0 3 f c d 1 7 b 7 8 c d
)
file ( COPY ${ LTDL_H_PATH } DESTINATION ${ SOURCE_PATH } /lib/common )
set ( EXTRA_CMAKE_OPTION "-DLTDL_INCLUDE_DIR=${SOURCE_PATH}/lib/common" )
endif ( )
if ( NOT VCPKG_TARGET_IS_WINDOWS )
set ( EXTRA_CMAKE_OPTION "-DCMAKE_INSTALL_RPATH=${CURRENT_INSTALLED_DIR}/lib" )
endif ( )
2022-04-09 06:34:42 +08:00
if ( VCPKG_HOST_IS_WINDOWS )
vcpkg_acquire_msys ( MSYS_ROOT PACKAGES gawk )
vcpkg_add_to_path ( "${MSYS_ROOT}/usr/bin" )
endif ( )
2021-10-13 08:02:59 +08:00
vcpkg_find_acquire_program ( BISON )
vcpkg_find_acquire_program ( FLEX )
vcpkg_find_acquire_program ( GIT )
vcpkg_find_acquire_program ( PYTHON3 )
vcpkg_cmake_configure (
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
D I S A B L E _ P A R A L L E L _ C O N F I G U R E
O P T I O N S
2022-04-09 06:34:42 +08:00
" - D B I S O N _ E X E C U T A B L E = $ { B I S O N } "
" - D F L E X _ E X E C U T A B L E = $ { F L E X } "
" - D G I T _ E X E C U T A B L E = $ { G I T } "
" - D P y t h o n 3 _ E X E C U T A B L E = $ { P Y T H O N 3 } "
" - D P K G _ C O N F I G _ E X E C U T A B L E = $ { C U R R E N T _ H O S T _ I N S T A L L E D _ D I R } / t o o l s / p k g c o n f / p k g c o n f "
2022-02-23 04:56:16 +08:00
$ { E X T R A _ C M A K E _ O P T I O N }
2021-10-13 08:02:59 +08:00
)
vcpkg_cmake_install ( )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" )
vcpkg_copy_tools (
T O O L _ N A M E S a c y c l i c b c o m p s c c o m p s c i r c o d i j k s t r a d o t f d p g c g m l 2 g v g r a p h m l 2 g v g v 2 g m l g v c o l o r g v g e n g v p a c k g v p r g x l 2 g v m m 2 g v n e a t o n o p o s a g e p a t c h w o r k s c c m a p s f d p t r e d t w o p i u n f l a t t e n
A U T O _ C L E A N
)
2022-02-23 04:56:16 +08:00
if ( VCPKG_TARGET_IS_WINDOWS )
file ( GLOB PLUGINS "${CURRENT_PACKAGES_DIR}/bin/gvplugin_*" )
file ( COPY ${ PLUGINS } DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}" )
vcpkg_execute_required_process (
C O M M A N D d o t - c
2022-04-09 06:34:42 +08:00
W O R K I N G _ D I R E C T O R Y " $ { C U R R E N T _ P A C K A G E S _ D I R } / t o o l s / $ { P O R T } "
2022-02-23 04:56:16 +08:00
L O G N A M E c o n f i g u r e - p l u g i n s
)
file ( COPY "${CURRENT_PACKAGES_DIR}/tools/${PORT}/config6" DESTINATION "${CURRENT_PACKAGES_DIR}/bin" )
endif ( )
# Handle copyright
2021-10-13 08:02:59 +08:00
file ( INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright )
2022-02-23 04:56:16 +08:00
vcpkg_fixup_pkgconfig ( )