portaudio, portaudio-cpp: adopted

This commit is contained in:
John McQuah 2023-08-19 15:46:22 -04:00
parent 25ff199be1
commit e6270e6de2
6 changed files with 119 additions and 0 deletions

33
portaudio-cpp/.footprint Normal file
View File

@ -0,0 +1,33 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/include/
drwxr-xr-x root/root usr/include/portaudiocpp/
-rw-r--r-- root/root usr/include/portaudiocpp/AutoSystem.hxx
-rw-r--r-- root/root usr/include/portaudiocpp/BlockingStream.hxx
-rw-r--r-- root/root usr/include/portaudiocpp/CFunCallbackStream.hxx
-rw-r--r-- root/root usr/include/portaudiocpp/CallbackInterface.hxx
-rw-r--r-- root/root usr/include/portaudiocpp/CallbackStream.hxx
-rw-r--r-- root/root usr/include/portaudiocpp/CppFunCallbackStream.hxx
-rw-r--r-- root/root usr/include/portaudiocpp/Device.hxx
-rw-r--r-- root/root usr/include/portaudiocpp/DirectionSpecificStreamParameters.hxx
-rw-r--r-- root/root usr/include/portaudiocpp/Exception.hxx
-rw-r--r-- root/root usr/include/portaudiocpp/HostApi.hxx
-rw-r--r-- root/root usr/include/portaudiocpp/InterfaceCallbackStream.hxx
-rw-r--r-- root/root usr/include/portaudiocpp/MemFunCallbackStream.hxx
-rw-r--r-- root/root usr/include/portaudiocpp/PortAudioCpp.hxx
-rw-r--r-- root/root usr/include/portaudiocpp/SampleDataFormat.hxx
-rw-r--r-- root/root usr/include/portaudiocpp/Stream.hxx
-rw-r--r-- root/root usr/include/portaudiocpp/StreamParameters.hxx
-rw-r--r-- root/root usr/include/portaudiocpp/System.hxx
-rw-r--r-- root/root usr/include/portaudiocpp/SystemDeviceIterator.hxx
-rw-r--r-- root/root usr/include/portaudiocpp/SystemHostApiIterator.hxx
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/cmake/
drwxr-xr-x root/root usr/lib/cmake/PortAudio/
-rw-r--r-- root/root usr/lib/cmake/PortAudio/PortAudioCppConfig.cmake
-rw-r--r-- root/root usr/lib/cmake/PortAudio/PortAudioCppConfigVersion.cmake
-rw-r--r-- root/root usr/lib/cmake/PortAudio/PortAudioCppTargets-release.cmake
-rw-r--r-- root/root usr/lib/cmake/PortAudio/PortAudioCppTargets.cmake
lrwxrwxrwx root/root usr/lib/libportaudiocpp.so -> libportaudiocpp.so.2
-rwxr-xr-x root/root usr/lib/libportaudiocpp.so.2
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/portaudiocpp.pc

5
portaudio-cpp/.signature Normal file
View File

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/jmq.pub
RWTTPlFarK9CxGgo5oKogNbuRKJw+V3MWwHSH1a2wBlgXlPr7bWeT2/coVkmHGyUukYUnYSPFFfzKpqB0DIkhSvNQsPZCa2CywI=
SHA256 (Pkgfile) = d9f3c82ecaecb3383f1771015b5765a31c5bed1b115801895bb28a9d109aa47c
SHA256 (.footprint) = 51c851f8084fa5147b8c6b563fdc7fceb38ffc117301feda08d3182c422e77a2
SHA256 (portaudio-19.8.0.tar.gz) = 53c8cd229ca9f8b4abff8277d8678c339e9422e9408cfb2e0f4e2ddf8def6396

30
portaudio-cpp/Pkgfile Normal file
View File

@ -0,0 +1,30 @@
# Description: C++ bindings for PortAudio
# URL: http://portaudio.com
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: portaudio
name=portaudio-cpp
version=19.8.0
_commit=e951915d05d90d08dd759fa7636c22c250ca685d
release=1
source=(https://github.com/PortAudio/${name%-cpp}/archive/$_commit/${name%-cpp}-$version.tar.gz)
build() {
cd ${name%-cpp}-$_commit/bindings/cpp
PKGMK_PACPP=(-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX="/usr"
-DCMAKE_INSTALL_LIBDIR=lib
-DBUILD_SHARED_LIBS=ON
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS")
# camel-case is applied inconsistently; must be fixed downstream for now
sed -e "s/::portaudio/::PortAudio/g" -i cmake/modules/FindPortAudio.cmake
sed -e "/^target_link_libraries/s/::portaudio/::PortAudio/" -i CMakeLists.txt
cmake -S . -B build -G Ninja "${PKGMK_PACPP[@]}"
# eschewing autotools allows us to build successfully with multiple jobs
# https://github.com/PortAudio/portaudio/issues/540
ninja -C build -j ${JOBS-1}
DESTDIR=$PKG ninja -C build install
}

16
portaudio/.footprint Normal file
View File

@ -0,0 +1,16 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/pa_linux_alsa.h
-rw-r--r-- root/root usr/include/portaudio.h
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/cmake/
drwxr-xr-x root/root usr/lib/cmake/portaudio/
-rw-r--r-- root/root usr/lib/cmake/portaudio/PortAudioConfig.cmake
-rw-r--r-- root/root usr/lib/cmake/portaudio/PortAudioConfigVersion.cmake
-rw-r--r-- root/root usr/lib/cmake/portaudio/PortAudioTargets-release.cmake
-rw-r--r-- root/root usr/lib/cmake/portaudio/PortAudioTargets.cmake
lrwxrwxrwx root/root usr/lib/libportaudio.so -> libportaudio.so.2
-rwxr-xr-x root/root usr/lib/libportaudio.so.19.8
lrwxrwxrwx root/root usr/lib/libportaudio.so.2 -> libportaudio.so.19.8
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/portaudio-2.0.pc

5
portaudio/.signature Normal file
View File

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/jmq.pub
RWTTPlFarK9CxJjV6Xw8rc4bB8MTVENCo6QfYqO7LCrucdIurhErVp5jrUg1ah9VWZ5OI0MFDjB1ChCyhqu5X4WzBfmuz1uBdww=
SHA256 (Pkgfile) = 7801d5fb5bc45d402b577f3e0c3dfbaaf8c3310992c2109e9ed1c58223d5eea5
SHA256 (.footprint) = a5d23201e74b0cdf83ddafff887cb65a9ad0b86b07f04eb5a7f2b34173a0751e
SHA256 (portaudio-19.8.0.tar.gz) = 53c8cd229ca9f8b4abff8277d8678c339e9422e9408cfb2e0f4e2ddf8def6396

30
portaudio/Pkgfile Normal file
View File

@ -0,0 +1,30 @@
# 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
}