2020-11-04 15:23:25 +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 F a s t C G I - A r c h i v e s / f c g i 2
R E F f c 8 c 6 5 4 7 a e 3 8 f a f 9 9 2 6 2 0 5 a 2 3 0 7 5 c 4 7 f b d 4 3 7 0 c 8
S H A 5 1 2 7 f 2 7 b 1 0 6 0 f b e a f 0 d e 9 b 8 a 4 3 a a 4 f f 9 5 4 a 0 0 4 c 4 9 e 9 9 f 7 d 6 e a 1 1 1 1 9 a 4 3 8 f c f f e 5 7 5 f b 4 6 9 b a 0 6 2 6 2 e 7 1 a c 8 1 3 2 f 9 2 e 7 4 1 8 9 e 2 0 9 7 f d 0 4 9 5 9 5 a 6 a 6 1 d 4 d 5 a 5 b a c 2 7 3 3 f 7 a
H E A D _ R E F m a s t e r
2022-05-20 05:43:34 +08:00
P A T C H E S
d l l . p a t c h
2020-11-04 15:23:25 +08:00
)
2022-05-20 05:43:34 +08:00
# Check build system first
if ( VCPKG_TARGET_IS_OSX )
message ( "${PORT} currently requires the following library from the system package manager:\n gettext\n automake\n libtool\n\nIt can be installed with brew install gettext automake libtool" )
elseif ( NOT VCPKG_TARGET_IS_WINDOWS )
message ( "${PORT} currently requires the following library from the system package manager:\n gettext\n automake\n libtool\n libtool-bin\n\nIt can be installed with apt-get install gettext automake libtool libtool-bin" )
endif ( )
2020-11-04 15:23:25 +08:00
2022-05-20 05:43:34 +08:00
vcpkg_configure_make (
2021-11-11 02:50:31 +08:00
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
2022-05-20 05:43:34 +08:00
A U T O C O N F I G
C O P Y _ S O U R C E
O P T I O N S
- - d i s a b l e - e x a m p l e s
)
2020-11-04 15:23:25 +08:00
2022-05-20 05:43:34 +08:00
vcpkg_install_make ( )
2020-11-04 15:23:25 +08:00
2022-05-20 05:43:34 +08:00
# switch ${PORT} into /${PORT}
file ( RENAME "${CURRENT_PACKAGES_DIR}/include" "${CURRENT_PACKAGES_DIR}/include2" )
file ( MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/include" )
file ( RENAME "${CURRENT_PACKAGES_DIR}/include2" "${CURRENT_PACKAGES_DIR}/include/${PORT}" )
2020-11-04 15:23:25 +08:00
2022-05-20 05:43:34 +08:00
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" )
vcpkg_fixup_pkgconfig ( )
vcpkg_replace_string ( "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/fcgi.pc" "Version: 2.4.2\n" "Version: 2.4.2\nCflags: -I\" \${prefix}/include/fastcgi\"\n")
if ( NOT VCPKG_BUILD_TYPE )
vcpkg_replace_string ( "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/fcgi.pc" "Version: 2.4.2\n" "Version: 2.4.2\nCflags: -I\" \${prefix}/../include/fastcgi\"\n")
endif ( )
2020-11-04 15:23:25 +08:00
2022-05-20 05:43:34 +08:00
if ( VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic" AND VCPKG_TARGET_IS_WINDOWS )
vcpkg_replace_string ( "${CURRENT_PACKAGES_DIR}/include/${PORT}/fcgiapp.h" "ifdef LIBFCGI_DLL_IMPORT" "if 1" )
vcpkg_replace_string ( "${CURRENT_PACKAGES_DIR}/include/${PORT}/fcgios.h" "ifdef LIBFCGI_DLL_IMPORT" "if 1" )
2020-11-04 15:23:25 +08:00
endif ( )
2022-05-20 05:43:34 +08:00
vcpkg_copy_tool_dependencies ( "${CURRENT_PACKAGES_DIR}/tools/${PORT}" )
2020-11-04 15:23:25 +08:00
# Handle copyright
2021-11-11 02:50:31 +08:00
file ( INSTALL "${SOURCE_PATH}/LICENSE.TERMS" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright )