jfsw-git: add patch to fix fluidsynth version check

This commit is contained in:
Yorick Hardy 2019-11-02 16:52:33 +02:00
parent 1158231426
commit 82da704c6f
2 changed files with 18 additions and 0 deletions

View File

@ -1,6 +1,7 @@
$NetBSD$
SHA1 (patch-Makefile) = db3fd5a59a90857800818217d823baa440459cc8
SHA1 (patch-jfaudiolib_src_driver_fluidsynth.c) = cb104d3584c629104578d071f794fd728748fbc1
SHA1 (patch-jfbuild_Makefile.shared) = b7f15a87d4a391678f38cb623376e89d1d3d5a18
SHA1 (patch-jfbuild_include_compat.h) = 8d398f00aebb8724d50bc0f818b429ef235989db
SHA1 (patch-jfbuild_src_mmulti.c) = eccf5b7c753a88a1a38c8aacf1689a182c6f1e7e

View File

@ -0,0 +1,17 @@
$NetBSD$
Fix the test for the fluidsynth version.
--- jfaudiolib/src/driver_fluidsynth.c.orig 2018-12-18 11:55:00.000000000 +0000
+++ jfaudiolib/src/driver_fluidsynth.c
@@ -36,8 +36,8 @@
#include <glob.h>
#if ((FLUIDSYNTH_VERSION_MAJOR < 1) || \
- (FLUIDSYNTH_VERSION_MAJOR >= 1 && FLUIDSYNTH_VERSION_MINOR < 1) || \
- (FLUIDSYNTH_VERSION_MAJOR >= 1 && FLUIDSYNTH_VERSION_MINOR >= 1 && FLUIDSYNTH_VERSION_MICRO < 2))
+ (FLUIDSYNTH_VERSION_MAJOR == 1 && FLUIDSYNTH_VERSION_MINOR < 1) || \
+ (FLUIDSYNTH_VERSION_MAJOR == 1 && FLUIDSYNTH_VERSION_MINOR == 1 && FLUIDSYNTH_VERSION_MICRO < 2))
#error "FluidSynth support requires version 1.1.2 or better"
#endif