diff --git a/audio/gmsynth-lv2/Makefile b/audio/gmsynth-lv2/Makefile index e1567690792f..4efb32203028 100644 --- a/audio/gmsynth-lv2/Makefile +++ b/audio/gmsynth-lv2/Makefile @@ -32,7 +32,6 @@ OPTIONS_DEFINE_i386= SSE OPTIONS_DEFAULT_amd64= SSE OPTIONS_DEFAULT_i386= SSE -SSE_MAKE_ENV= OPTIMIZATIONS="-msse -msse2 -mfpmath=sse -DNDEBUG" -SSE_MAKE_ENV_OFF= OPTIMIZATIONS="-DNDEBUG" +SSE_MAKE_ENV= PORT_SIMD_FLAGS="-msse -msse2 -mfpmath=sse" .include diff --git a/audio/gmsynth-lv2/files/patch-Makefile b/audio/gmsynth-lv2/files/patch-Makefile index 7145657988b0..e499e23481e0 100644 --- a/audio/gmsynth-lv2/files/patch-Makefile +++ b/audio/gmsynth-lv2/files/patch-Makefile @@ -1,5 +1,14 @@ ---- Makefile.orig 2018-03-10 23:08:50 UTC +--- Makefile.orig 2017-09-08 18:49:05 UTC +++ Makefile +@@ -9,7 +9,7 @@ MANDIR ?= $(PREFIX)/share/man/man1 + # see http://lv2plug.in/pages/filesystem-hierarchy-standard.html, don't use libdir + LV2DIR ?= $(PREFIX)/lib/lv2 + +-OPTIMIZATIONS ?= -msse -msse2 -mfpmath=sse -ffast-math -fomit-frame-pointer -O3 -fno-finite-math-only -DNDEBUG ++OPTIMIZATIONS ?= $(PORT_SIMD_FLAGS) -ffast-math -fomit-frame-pointer -fno-finite-math-only -DNDEBUG + CFLAGS ?= -Wall -g -Wno-unused-function + STRIP ?= strip + @@ -136,13 +136,13 @@ FLUID_SRC = \ fluidsynth/src/fluid_settings.c \ fluidsynth/src/fluid_sys.c