cruxports/portaudio/Pkgfile

31 lines
953 B
Plaintext
Raw Normal View History

2023-08-19 15:46:22 -04:00
# Description: Portable cross-platform audio I/O library
# URL: http://portaudio.com
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: alsa-lib
# Optional: jack-audio-connection-kit
name=portaudio
version=19.8.0
_commit=e951915d05d90d08dd759fa7636c22c250ca685d
release=1
source=(https://github.com/PortAudio/$name/archive/$_commit/$name-$version.tar.gz)
build() {
PKGMK_PORTAU=(-Wno-dev
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX="/usr"
-DCMAKE_INSTALL_LIBDIR=lib
-DPA_BUILD_SHARED_LIBS=ON
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS"
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS")
prt-get isinst jack-audio-connection-kit || PKGMK_PORTAU+=(-DPA_USE_JACK=OFF)
cmake -S $name-$_commit -B build -G Ninja "${PKGMK_PORTAU[@]}"
ninja -C build -j ${JOBS-1}
DESTDIR=$PKG ninja -C build install
# delete junk files
rm -rf $PKG/usr/share
}