diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/speex | |
Diffstat (limited to 'vcpkg/ports/speex')
| -rw-r--r-- | vcpkg/ports/speex/fix-vla-check.patch | 13 | ||||
| -rw-r--r-- | vcpkg/ports/speex/portfile.cmake | 29 | ||||
| -rw-r--r-- | vcpkg/ports/speex/subdirs.patch | 13 | ||||
| -rw-r--r-- | vcpkg/ports/speex/vcpkg.json | 8 |
4 files changed, 63 insertions, 0 deletions
diff --git a/vcpkg/ports/speex/fix-vla-check.patch b/vcpkg/ports/speex/fix-vla-check.patch new file mode 100644 index 0000000..9c64922 --- /dev/null +++ b/vcpkg/ports/speex/fix-vla-check.patch @@ -0,0 +1,13 @@ +diff --git a/configure.ac b/configure.ac +index d94c2fe..b813148 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -37,7 +37,7 @@ AC_C_RESTRICT + + + AC_MSG_CHECKING(for C99 variable-size arrays) +-+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[ ++AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[ + int foo; + foo = 10; + int array[foo]; diff --git a/vcpkg/ports/speex/portfile.cmake b/vcpkg/ports/speex/portfile.cmake new file mode 100644 index 0000000..3bd2df6 --- /dev/null +++ b/vcpkg/ports/speex/portfile.cmake @@ -0,0 +1,29 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO xiph/speex + REF 5dceaaf3e23ee7fd17c80cb5f02a838fd6c18e01 #Speex-1.2.1 + SHA512 d03da906ec26ddcea2e1dc4157ac6dd056e1407381b0f37edd350552a02a7372e9108b4e39ae522f1b165be04b813ee11db0b47d17607e4dad18118b9041636b + HEAD_REF master + PATCHES + fix-vla-check.patch + subdirs.patch +) + +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() + +vcpkg_configure_make( + SOURCE_PATH "${SOURCE_PATH}" + AUTOCONFIG + OPTIONS + --disable-binaries # no example programs (GPL, require libogg) +) +vcpkg_install_make() +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/vcpkg/ports/speex/subdirs.patch b/vcpkg/ports/speex/subdirs.patch new file mode 100644 index 0000000..6832de2 --- /dev/null +++ b/vcpkg/ports/speex/subdirs.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile.am b/Makefile.am +index dc90415..3b3c16d 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -14,7 +14,7 @@ pkgconfig_DATA = speex.pc + EXTRA_DIST = Speex.spec Speex.spec.in Speex.kdevelop speex.m4 speex.pc.in README.blackfin README.symbian README.TI-DSP + + #Fools KDevelop into including all files +-SUBDIRS = libspeex include doc win32 symbian ti ++SUBDIRS = libspeex include + + if BUILD_BINARIES + SUBDIRS += src diff --git a/vcpkg/ports/speex/vcpkg.json b/vcpkg/ports/speex/vcpkg.json new file mode 100644 index 0000000..c317c34 --- /dev/null +++ b/vcpkg/ports/speex/vcpkg.json @@ -0,0 +1,8 @@ +{ + "name": "speex", + "version": "1.2.1", + "port-version": 1, + "description": "Speex is an Open Source/Free Software patent-free audio compression format designed for speech.", + "homepage": "https://github.com/xiph/speex", + "license": "BSD-3-Clause" +} |