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
2017-06-30 02:19:37 +08:00
R E F S p e e x - 1 . 2 . 0
S H A 5 1 2 6 1 2 d f d 6 7 a 9 0 8 9 f 9 2 9 b 7 f 2 a 6 1 3 e d 3 a 1 d 2 f d a 3 d 3 e c 0 a 4 a d a f e 2 7 e 2 c 1 f 4 5 4 2 d e 1 8 7 0 b 4 2 b 8 0 4 2 f 0 d c b 1 6 d 5 2 e 0 8 3 1 3 d 6 8 6 c c 3 5 b 7 6 9 4 0 7 7 6 4 1 9 c 7 7 5 4 1 7 f 5 b a d 1 8 b 4 4 8 f
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 (
2021-01-28 10:22:43 +08:00
S O U R C E _ P A T H $ { S O U R C E _ P A T H }
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 (
S O U R C E _ P A T H $ { S O U R C E _ P A T H }
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 )