From 66760a68e1a6041835b2b5b438debfedb1988b89 Mon Sep 17 00:00:00 2001 From: James Reynolds Date: Tue, 6 Feb 2024 12:43:48 -0700 Subject: [PATCH] +portaudio.com (#5127) * +portaudio.com * Make macos only * use `install -D` instead of `cp+mkdir`. * /include, maybe? --------- Co-authored-by: James Reynolds Co-authored-by: Jacob Heider --- projects/portaudio.com/package.yml | 35 ++++++++++++++++++++++++++++++ projects/portaudio.com/test.c | 6 +++++ 2 files changed, 41 insertions(+) create mode 100644 projects/portaudio.com/package.yml create mode 100644 projects/portaudio.com/test.c diff --git a/projects/portaudio.com/package.yml b/projects/portaudio.com/package.yml new file mode 100644 index 00000000..25803999 --- /dev/null +++ b/projects/portaudio.com/package.yml @@ -0,0 +1,35 @@ +distributable: + url: https://github.com/PortAudio/portaudio/archive/refs/tags/v{{version}}.tar.gz + strip-components: 1 + +display-name: PortAudio + +versions: + github: PortAudio/portaudio + strip: /^v/ + +platforms: + - darwin + +#dependencies: +# linux: +# alsa-project.org/alsa-lib: '*' +# jackaudio.org: '*' + +build: + dependencies: + freedesktop.org/pkg-config: '*' + script: + - ./configure $ARGS + - make --jobs {{ hw.concurrency }} install + - install -D include/pa_mac_core.h {{prefix}}/include/ + env: + ARGS: + - --prefix="{{prefix}}" + - --enable-mac-universal=no + - --enable-cxx + +test: + script: + - cc test.c -lportaudio + - test "$(./a.out --version)" = "PortAudio V{{version}}-devel, revision unknown" diff --git a/projects/portaudio.com/test.c b/projects/portaudio.com/test.c new file mode 100644 index 00000000..faa4129b --- /dev/null +++ b/projects/portaudio.com/test.c @@ -0,0 +1,6 @@ +#include +#include "portaudio.h" +int main() +{ + printf("%s",Pa_GetVersionInfo()->versionText); +} \ No newline at end of file