2020-09-04 01:59:31 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "OSX" "Linux")
|
2017-06-27 04:31:09 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO xiph/speex
|
2017-06-30 02:19:37 +08:00
|
|
|
REF Speex-1.2.0
|
|
|
|
SHA512 612dfd67a9089f929b7f2a613ed3a1d2fda3d3ec0a4adafe27e2c1f4542de1870b42b8042f0dcb16d52e08313d686cc35b76940776419c775417f5bad18b448f
|
2017-06-27 04:31:09 +08:00
|
|
|
HEAD_REF master
|
2020-08-19 03:58:14 +08:00
|
|
|
PATCHES
|
|
|
|
0001-make-pkg-config-lib-name-configurable.patch
|
2017-06-27 04:31:09 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-06-29 06:27:08 +08:00
|
|
|
PREFER_NINJA
|
2017-06-27 04:31:09 +08:00
|
|
|
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2017-12-03 15:57:17 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
|
|
file(READ "${CURRENT_PACKAGES_DIR}/include/speex/speex.h" _contents)
|
|
|
|
string(REPLACE "extern const SpeexMode" "__declspec(dllimport) extern const SpeexMode" _contents "${_contents}")
|
|
|
|
file(WRITE "${CURRENT_PACKAGES_DIR}/include/speex/speex.h" "${_contents}")
|
|
|
|
endif()
|
|
|
|
|
2020-08-19 03:58:14 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2020-09-04 01:59:31 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|