Import mingw-w64-fluidsynth from AUR to enable features

This commit is contained in:
Martchus 2023-05-12 23:19:12 +02:00
parent e6d1fe4c26
commit d50909fd9d
1 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,44 @@
# Maintainer in the AUR: Roboron <robertoms258 at gmail dot com>
_realname=fluidsynth
pkgname=mingw-w64-fluidsynth
pkgver=2.3.2
pkgrel=1
pkgdesc="A real-time software synthesizer based on the SoundFont 2 specifications (mingw-w64)"
url="http://www.fluidsynth.org/"
arch=('any')
license=('LGPL')
depends=('mingw-w64-glib2'
'mingw-w64-libsndfile'
'mingw-w64-portaudio'
'mingw-w64-readline')
makedepends=('mingw-w64-cmake'
'mingw-w64-pkg-config'
'mingw-w64-make')
options=('staticlibs' '!buildflags' '!strip')
source=("${_realname}-${pkgver}.tar.gz::https://github.com/FluidSynth/${_realname}/archive/v${pkgver}.tar.gz")
sha256sums=('cd610810f30566e28fb98c36501f00446a06fa6bae3dc562c8cd3868fe1c0fc7')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
cd fluidsynth-$pkgver
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
# If you need every feature, use this
${_arch}-cmake -DBUILD_SHARED_LIBS=0 -Denable-portaudio=1 -Denable-dbus=0 ..
# If you only need the bare minimum to play with SF2/SF3 soundfonts with SDL2, uncomment this instead
#${_arch}-cmake -DBUILD_SHARED_LIBS=0 -Denable-aufile=0 -Denable-dbus=0 -Denable-ipv6=0 -Denable-jack=0 -Denable-ladspa=0 -Denable-midishare=0 -Denable-opensles=0 -Denable-oboe=0 -Denable-oss=0 -Denable-readline=0 -Denable-winmidi=0 -Denable-waveout=0 -Denable-network=0 -Denable-pulseaudio=0 -Denable-dsound=0 -Denable-alsa=0 -Denable-libinstpatch=0 -Denable-portaudio=0 -Denable-wasapi=0 -Denable-openmp=1 -Denable-libsndfile=0 -Denable-sdl2=1 ..
make
popd
done
}
package() {
for _arch in ${_architectures}; do
cd "$srcdir"/fluidsynth-${pkgver}/build-${_arch}
${_arch}-make install DESTDIR="$pkgdir"
done
}