mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+portaudio.com (#5127)
* +portaudio.com * Make macos only * use `install -D` instead of `cp+mkdir`. * /include, maybe? --------- Co-authored-by: James Reynolds <magnsuviri@me.com> Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
c6281442df
commit
66760a68e1
2 changed files with 41 additions and 0 deletions
35
projects/portaudio.com/package.yml
Normal file
35
projects/portaudio.com/package.yml
Normal file
|
@ -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"
|
6
projects/portaudio.com/test.c
Normal file
6
projects/portaudio.com/test.c
Normal file
|
@ -0,0 +1,6 @@
|
|||
#include <stdio.h>
|
||||
#include "portaudio.h"
|
||||
int main()
|
||||
{
|
||||
printf("%s",Pa_GetVersionInfo()->versionText);
|
||||
}
|
Loading…
Reference in a new issue