2021-01-28 10:22:43 +08:00
if ( VCPKG_TARGET_IS_WINDOWS )
list ( APPEND PATCHES "0001-make-pkg-config-lib-name-configurable.patch" )
endif ( )
2017-06-27 04:31:09 +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 x i p h / s p e e x
2022-07-13 01:49:24 +08:00
R E F 5 d c e a a f 3 e 2 3 e e 7 f d 1 7 c 8 0 c b 5 f 0 2 a 8 3 8 f d 6 c 1 8 e 0 1 #Speex-1.2.1
S H A 5 1 2 d 0 3 d a 9 0 6 e c 2 6 d d c e a 2 e 1 d c 4 1 5 7 a c 6 d d 0 5 6 e 1 4 0 7 3 8 1 b 0 f 3 7 e d d 3 5 0 5 5 2 a 0 2 a 7 3 7 2 e 9 1 0 8 b 4 e 3 9 a e 5 2 2 f 1 b 1 6 5 b e 0 4 b 8 1 3 e e 1 1 d b 0 b 4 7 d 1 7 6 0 7 e 4 d a d 1 8 1 1 8 b 9 0 4 1 6 3 6 b
2017-06-27 04:31:09 +08:00
H E A D _ R E F m a s t e r
2021-01-28 10:22:43 +08:00
P A T C H E S $ { P A T C H E S }
2017-06-27 04:31:09 +08:00
)
2021-01-28 10:22:43 +08:00
if ( VCPKG_TARGET_IS_WINDOWS )
file ( COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}" )
2022-01-14 02:52:19 +08:00
vcpkg_cmake_configure (
2022-07-13 01:49:24 +08:00
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
2021-01-28 10:22:43 +08:00
O P T I O N S _ D E B U G - D D I S A B L E _ I N S T A L L _ H E A D E R S = O N
)
2022-01-14 02:52:19 +08:00
vcpkg_cmake_install ( )
2017-06-27 04:31:09 +08:00
2021-01-28 10:22:43 +08:00
if ( VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic" )
vcpkg_replace_string ( "${CURRENT_PACKAGES_DIR}/include/speex/speex.h"
" e x t e r n c o n s t S p e e x M o d e "
" __declspec ( dllimport ) e x t e r n c o n s t S p e e x M o d e "
)
endif ( )
else ( )
2022-03-15 08:05:39 +08:00
if ( VCPKG_TARGET_IS_OSX )
message ( "${PORT} currently requires the following libraries from the system package manager:\n autoconf\n automake\n libtool\n\nIt can be installed with brew install autoconf automake libtool" )
elseif ( VCPKG_TARGET_IS_LINUX )
message ( "${PORT} currently requires the following libraries from the system package manager:\n autoconf\n automake\n libtool\n\nIt can be installed with apt-get install autoconf automake libtool" )
endif ( )
2021-01-28 10:22:43 +08:00
vcpkg_configure_make (
2022-07-13 01:49:24 +08:00
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
2021-01-28 10:22:43 +08:00
A U T O C O N F I G
2022-01-14 02:52:19 +08:00
O P T I O N S - - d i s a b l e - b i n a r i e s # no example programs (require libogg)
2021-01-28 10:22:43 +08:00
)
vcpkg_install_make ( )
2017-06-27 04:31:09 +08:00
2021-01-28 10:22:43 +08:00
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" )
2017-12-03 15:57:17 +08:00
endif ( )
2020-08-19 03:58:14 +08:00
vcpkg_fixup_pkgconfig ( )
2021-01-28 10:22:43 +08:00
file ( INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright )