Update mingw-w64-fluidsynth to 2.3.3
This commit is contained in:
parent
e72bcf8e70
commit
5d0ee369fa
|
@ -2,39 +2,34 @@
|
||||||
|
|
||||||
_realname=fluidsynth
|
_realname=fluidsynth
|
||||||
pkgname=mingw-w64-fluidsynth
|
pkgname=mingw-w64-fluidsynth
|
||||||
pkgver=2.3.2
|
pkgver=2.3.3
|
||||||
pkgrel=2
|
pkgrel=1
|
||||||
pkgdesc="A real-time software synthesizer based on the SoundFont 2 specifications (mingw-w64)"
|
pkgdesc="A real-time software synthesizer based on the SoundFont 2 specifications (mingw-w64)"
|
||||||
url="http://www.fluidsynth.org/"
|
url="http://www.fluidsynth.org/"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
license=('LGPL')
|
license=('LGPL')
|
||||||
depends=('mingw-w64-sdl2' 'mingw-w64-glib2')
|
#depends=('mingw-w64-sdl2' 'mingw-w64-glib2')
|
||||||
#depends=('mingw-w64-glib2'
|
depends=('mingw-w64-sdl2' 'mingw-w64-glib2' 'mingw-w64-libsndfile' 'mingw-w64-portaudio' 'mingw-w64-readline')
|
||||||
# 'mingw-w64-libsndfile'
|
makedepends=('mingw-w64-cmake' 'mingw-w64-pkg-config' 'ninja')
|
||||||
# 'mingw-w64-portaudio'
|
|
||||||
# 'mingw-w64-readline')
|
|
||||||
makedepends=('mingw-w64-cmake'
|
|
||||||
'mingw-w64-pkg-config'
|
|
||||||
'mingw-w64-make')
|
|
||||||
options=('staticlibs' '!buildflags' '!strip')
|
options=('staticlibs' '!buildflags' '!strip')
|
||||||
source=("${_realname}-${pkgver}.tar.gz::https://github.com/FluidSynth/${_realname}/archive/v${pkgver}.tar.gz")
|
source=("${_realname}-${pkgver}.tar.gz::https://github.com/FluidSynth/${_realname}/archive/v${pkgver}.tar.gz")
|
||||||
sha256sums=('cd610810f30566e28fb98c36501f00446a06fa6bae3dc562c8cd3868fe1c0fc7')
|
sha256sums=('321f7d3f72206b2522f30a1cb8ad1936fd4533ffc4d29dd335b1953c9fb371e6')
|
||||||
|
|
||||||
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
|
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd fluidsynth-$pkgver
|
cd fluidsynth-$pkgver
|
||||||
|
cflags_base=$CFLAGS
|
||||||
for _arch in ${_architectures}; do
|
for _arch in ${_architectures}; do
|
||||||
mkdir -p build-${_arch} && pushd build-${_arch}
|
mkdir -p build-${_arch} && pushd build-${_arch}
|
||||||
|
|
||||||
export CFLAGS+=' -DGLIB_STATIC_COMPILATION=1 -DGMODULE_STATIC_COMPILATION=1'
|
export CFLAGS="$cflags_base"
|
||||||
|
${_arch}-cmake -G Ninja -S .. -B shared -DBUILD_SHARED_LIBS=1 -Denable-portaudio=1 -Denable-dbus=0
|
||||||
# If you need every feature, use this
|
VERBOSE=1 cmake --build shared
|
||||||
${_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
|
export CFLAGS="$cflags_base -DGLIB_STATIC_COMPILATION=1 -DGMODULE_STATIC_COMPILATION=1"
|
||||||
${_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=1 -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 ..
|
${_arch}-cmake -G Ninja -S .. -B static -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=1 -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
|
VERBOSE=1 cmake --build static
|
||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -42,6 +37,7 @@ build() {
|
||||||
package() {
|
package() {
|
||||||
for _arch in ${_architectures}; do
|
for _arch in ${_architectures}; do
|
||||||
cd "$srcdir"/fluidsynth-${pkgver}/build-${_arch}
|
cd "$srcdir"/fluidsynth-${pkgver}/build-${_arch}
|
||||||
${_arch}-make install DESTDIR="$pkgdir"
|
DESTDIR="$pkgdir" cmake --install shared
|
||||||
|
DESTDIR="$pkgdir" cmake --install static
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue