diff --git a/recipes-musicians/guitarix/gxplugins.lv2/0001-Adjust-Makefiles-for-cross-compiling.patch b/recipes-musicians/guitarix/gxplugins.lv2/0001-Adjust-Makefiles-for-cross-compiling.patch new file mode 100644 index 00000000..afbabf40 --- /dev/null +++ b/recipes-musicians/guitarix/gxplugins.lv2/0001-Adjust-Makefiles-for-cross-compiling.patch @@ -0,0 +1,1990 @@ +From 50092b8f2c5c2c6de3de90d97f75b6fd475b8b5d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Sun, 27 Jan 2019 00:37:05 +0100 +Subject: [PATCH] Adjust Makefiles for cross-compiling +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Andreas Müller +--- + GxAxisFace.lv2/Makefile | 36 +++--------------- + GxBoobTube.lv2/Makefile | 34 ++--------------- + GxBottleRocket.lv2/Makefile | 38 +++---------------- + .../gui/gx_bottlerocket_x11ui.c | 2 +- + GxCreamMachine.lv2/Makefile | 34 ++--------------- + GxDOP250.lv2/Makefile | 36 +++--------------- + GxFz1b.lv2/Makefile | 38 +++---------------- + GxFz1s.lv2/Makefile | 38 +++---------------- + GxGuvnor.lv2/Makefile | 32 ++-------------- + GxHeathkit.lv2/Makefile | 36 +++--------------- + GxHotBox.lv2/Makefile | 37 +++--------------- + GxHotBox.lv2/gui/gx_hotbox_x11ui.c | 2 +- + GxHyperion.lv2/Makefile | 32 ++-------------- + GxHyperion.lv2/gui/gx_hyperion_x11ui.c | 2 +- + GxKnightFuzz.lv2/Makefile | 36 +++--------------- + GxLiquidDrive.lv2/Makefile | 36 +++--------------- + GxMicroAmp.lv2/Makefile | 36 +++--------------- + GxQuack.lv2/Makefile | 38 +++---------------- + GxSD1.lv2/Makefile | 38 +++---------------- + GxSD2Lead.lv2/Makefile | 36 +++--------------- + GxSVT.lv2/Makefile | 36 +++--------------- + GxSaturator.lv2/Makefile | 32 ++-------------- + GxSlowGear.lv2/Makefile | 32 ++-------------- + GxSunFace.lv2/Makefile | 36 +++--------------- + GxSuperFuzz.lv2/Makefile | 32 ++-------------- + GxSuppaToneBender.lv2/Makefile | 32 ++-------------- + GxSuppaToneBender.lv2/gui/gx_vstb_x11ui.c | 2 +- + GxToneMachine.lv2/Makefile | 32 ++-------------- + GxTubeDistortion.lv2/Makefile | 36 +++--------------- + GxUVox720k.lv2/Makefile | 32 ++-------------- + GxVBassPreAmp.lv2/Makefile | 38 +++---------------- + GxVBassPreAmp.lv2/gui/gx_voxbass_x11ui.c | 2 +- + GxValveCaster.lv2/Makefile | 36 +++--------------- + GxVintageFuzzMaster.lv2/Makefile | 32 ++-------------- + GxVmk2.lv2/Makefile | 34 ++--------------- + GxVoodoFuzz.lv2/Makefile | 32 ++-------------- + GxVoodoFuzz.lv2/gui/gx_voodoo_x11ui.c | 2 +- + 37 files changed, 145 insertions(+), 950 deletions(-) + +diff --git a/GxAxisFace.lv2/Makefile b/GxAxisFace.lv2/Makefile +index 1193800..ea27187 100644 +--- a/GxAxisFace.lv2/Makefile ++++ b/GxAxisFace.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_AxisFace +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,9 +49,9 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch_on.png gui/pswitch_off.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch_on.png -o pswitch_on.o +- -@cd ./gui && ld -r -b binary pswitch_off.png -o pswitch_off.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_on.png -o pswitch_on.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_off.png -o pswitch_off.o + + clean : + @rm -f $(NAME).so +diff --git a/GxBoobTube.lv2/Makefile b/GxBoobTube.lv2/Makefile +index 66cf7eb..1f81fcd 100644 +--- a/GxBoobTube.lv2/Makefile ++++ b/GxBoobTube.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_boobtube +@@ -38,7 +12,7 @@ + -fPIC -DPIC -O2 -Wall -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -84,8 +58,8 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch.png + @$(ECHO) $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch.png -o pswitch.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch.png -o pswitch.o + + clean : + @rm -f $(NAME).so +diff --git a/GxBottleRocket.lv2/Makefile b/GxBottleRocket.lv2/Makefile +index e7efdcc..b01970f 100644 +--- a/GxBottleRocket.lv2/Makefile ++++ b/GxBottleRocket.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_bottlerocket +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,10 +49,10 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch_on.png gui/pswitch_off.png gui/frame.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch_on.png -o pswitch_on.o +- -@cd ./gui && ld -r -b binary pswitch_off.png -o pswitch_off.o +- -@cd ./gui && ld -r -b binary frame.png -o frame.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_on.png -o pswitch_on.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_off.png -o pswitch_off.o ++ -@cd ./gui && $(LD) -r -b binary frame.png -o frame.o + + clean : + @rm -f $(NAME).so +diff --git a/GxBottleRocket.lv2/gui/gx_bottlerocket_x11ui.c b/GxBottleRocket.lv2/gui/gx_bottlerocket_x11ui.c +index 6af5bf6..e8879eb 100644 +--- a/GxBottleRocket.lv2/gui/gx_bottlerocket_x11ui.c ++++ b/GxBottleRocket.lv2/gui/gx_bottlerocket_x11ui.c +@@ -29,7 +29,7 @@ + + // define some MACROS to read png data from binary stream + // png's been converted to object files with +-// ld -r -b binary name.png -o name.o ++// $(LD) -r -b binary name.png -o name.o + + #ifdef __APPLE__ + #include +diff --git a/GxCreamMachine.lv2/Makefile b/GxCreamMachine.lv2/Makefile +index 53c1dc6..a8b3604 100644 +--- a/GxCreamMachine.lv2/Makefile ++++ b/GxCreamMachine.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_CreamMachine +@@ -36,7 +10,7 @@ + # set compile flags + CXXFLAGS += -I. -I./dsp -I./plugin -I./dsp/zita-resampler-1.1.0 -I./dsp/zita-resampler-1.1.0/zita-resampler -fPIC -DPIC -O2 -Wall -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -73,8 +47,8 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch.png -o pswitch.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch.png -o pswitch.o + + clean : + @rm -f $(NAME).so +diff --git a/GxDOP250.lv2/Makefile b/GxDOP250.lv2/Makefile +index ba27784..a797bb4 100644 +--- a/GxDOP250.lv2/Makefile ++++ b/GxDOP250.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_DOP250 +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,9 +49,9 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch_on.png gui/pswitch_off.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch_on.png -o pswitch_on.o +- -@cd ./gui && ld -r -b binary pswitch_off.png -o pswitch_off.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_on.png -o pswitch_on.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_off.png -o pswitch_off.o + + clean : + @rm -f $(NAME).so +diff --git a/GxFz1b.lv2/Makefile b/GxFz1b.lv2/Makefile +index 72df63a..6311726 100644 +--- a/GxFz1b.lv2/Makefile ++++ b/GxFz1b.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_maestro_fz1b +@@ -38,7 +12,7 @@ + -fPIC -DPIC -O2 -Wall -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,10 +49,10 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch_on.png gui/pswitch_off.png gui/frame.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch_on.png -o pswitch_on.o +- -@cd ./gui && ld -r -b binary pswitch_off.png -o pswitch_off.o +- -@cd ./gui && ld -r -b binary frame.png -o frame.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_on.png -o pswitch_on.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_off.png -o pswitch_off.o ++ -@cd ./gui && $(LD) -r -b binary frame.png -o frame.o + + clean : + @rm -f $(NAME).so +diff --git a/GxFz1s.lv2/Makefile b/GxFz1s.lv2/Makefile +index fd5af20..1de0565 100644 +--- a/GxFz1s.lv2/Makefile ++++ b/GxFz1s.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_maestro_fz1s +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,10 +49,10 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch_on.png gui/pswitch_off.png gui/frame.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch_on.png -o pswitch_on.o +- -@cd ./gui && ld -r -b binary pswitch_off.png -o pswitch_off.o +- -@cd ./gui && ld -r -b binary frame.png -o frame.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_on.png -o pswitch_on.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_off.png -o pswitch_off.o ++ -@cd ./gui && $(LD) -r -b binary frame.png -o frame.o + + clean : + @rm -f $(NAME).so +diff --git a/GxGuvnor.lv2/Makefile b/GxGuvnor.lv2/Makefile +index 065acf1..5dc4406 100644 +--- a/GxGuvnor.lv2/Makefile ++++ b/GxGuvnor.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_guvnor +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,7 +49,7 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o + + clean : + @rm -f $(NAME).so +diff --git a/GxHeathkit.lv2/Makefile b/GxHeathkit.lv2/Makefile +index 1669295..ae5ba5d 100644 +--- a/GxHeathkit.lv2/Makefile ++++ b/GxHeathkit.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_Heathkit +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,9 +49,9 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch_on.png gui/pswitch_off.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch_on.png -o pswitch_on.o +- -@cd ./gui && ld -r -b binary pswitch_off.png -o pswitch_off.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_on.png -o pswitch_on.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_off.png -o pswitch_off.o + + clean : + @rm -f $(NAME).so +diff --git a/GxHotBox.lv2/Makefile b/GxHotBox.lv2/Makefile +index 8df2752..16d805f 100644 +--- a/GxHotBox.lv2/Makefile ++++ b/GxHotBox.lv2/Makefile +@@ -1,33 +1,8 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif + +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_hotbox +@@ -38,7 +13,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,10 +50,10 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch_on.png gui/pswitch_off.png gui/frame.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch_on.png -o pswitch_on.o +- -@cd ./gui && ld -r -b binary pswitch_off.png -o pswitch_off.o +- -@cd ./gui && ld -r -b binary frame.png -o frame.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_on.png -o pswitch_on.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_off.png -o pswitch_off.o ++ -@cd ./gui && $(LD) -r -b binary frame.png -o frame.o + + clean : + @rm -f $(NAME).so +diff --git a/GxHotBox.lv2/gui/gx_hotbox_x11ui.c b/GxHotBox.lv2/gui/gx_hotbox_x11ui.c +index 64fe692..3407828 100644 +--- a/GxHotBox.lv2/gui/gx_hotbox_x11ui.c ++++ b/GxHotBox.lv2/gui/gx_hotbox_x11ui.c +@@ -29,7 +29,7 @@ + + // define some MACROS to read png data from binary stream + // png's been converted to object files with +-// ld -r -b binary name.png -o name.o ++// $(LD) -r -b binary name.png -o name.o + + #ifdef __APPLE__ + #include +diff --git a/GxHyperion.lv2/Makefile b/GxHyperion.lv2/Makefile +index 86f8b88..2bc01e0 100644 +--- a/GxHyperion.lv2/Makefile ++++ b/GxHyperion.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_hyperion +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,7 +49,7 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o + + clean : + @rm -f $(NAME).so +diff --git a/GxHyperion.lv2/gui/gx_hyperion_x11ui.c b/GxHyperion.lv2/gui/gx_hyperion_x11ui.c +index a916aee..5957e09 100644 +--- a/GxHyperion.lv2/gui/gx_hyperion_x11ui.c ++++ b/GxHyperion.lv2/gui/gx_hyperion_x11ui.c +@@ -29,7 +29,7 @@ + + // define some MACROS to read png data from binary stream + // png's been converted to object files with +-// ld -r -b binary name.png -o name.o ++// $(LD) -r -b binary name.png -o name.o + + #ifdef __APPLE__ + #include +diff --git a/GxKnightFuzz.lv2/Makefile b/GxKnightFuzz.lv2/Makefile +index 16d13b8..02a9713 100644 +--- a/GxKnightFuzz.lv2/Makefile ++++ b/GxKnightFuzz.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_KnightFuzz +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,9 +49,9 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch_on.png gui/pswitch_off.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch_on.png -o pswitch_on.o +- -@cd ./gui && ld -r -b binary pswitch_off.png -o pswitch_off.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_on.png -o pswitch_on.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_off.png -o pswitch_off.o + + clean : + @rm -f $(NAME).so +diff --git a/GxLiquidDrive.lv2/Makefile b/GxLiquidDrive.lv2/Makefile +index 92796e6..537923d 100644 +--- a/GxLiquidDrive.lv2/Makefile ++++ b/GxLiquidDrive.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_liquiddrive +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,9 +49,9 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch_on.png gui/pswitch_off.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch_on.png -o pswitch_on.o +- -@cd ./gui && ld -r -b binary pswitch_off.png -o pswitch_off.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_on.png -o pswitch_on.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_off.png -o pswitch_off.o + + clean : + @rm -f $(NAME).so +diff --git a/GxMicroAmp.lv2/Makefile b/GxMicroAmp.lv2/Makefile +index 60818f0..556ade0 100644 +--- a/GxMicroAmp.lv2/Makefile ++++ b/GxMicroAmp.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_MicroAmp +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,9 +49,9 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch_on.png gui/pswitch_off.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch_on.png -o pswitch_on.o +- -@cd ./gui && ld -r -b binary pswitch_off.png -o pswitch_off.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_on.png -o pswitch_on.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_off.png -o pswitch_off.o + + clean : + @rm -f $(NAME).so +diff --git a/GxQuack.lv2/Makefile b/GxQuack.lv2/Makefile +index 2aed99f..a39c911 100644 +--- a/GxQuack.lv2/Makefile ++++ b/GxQuack.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_quack +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -70,10 +44,10 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch_on.png gui/pswitch_off.png gui/frame.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch_on.png -o pswitch_on.o +- -@cd ./gui && ld -r -b binary pswitch_off.png -o pswitch_off.o +- -@cd ./gui && ld -r -b binary frame.png -o frame.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_on.png -o pswitch_on.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_off.png -o pswitch_off.o ++ -@cd ./gui && $(LD) -r -b binary frame.png -o frame.o + + clean : + @rm -f $(NAME).so +diff --git a/GxSD1.lv2/Makefile b/GxSD1.lv2/Makefile +index 3b98ee0..4cbfc6a 100644 +--- a/GxSD1.lv2/Makefile ++++ b/GxSD1.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_sd1sim +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,10 +49,10 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch_on.png gui/pswitch_off.png gui/frame.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch_on.png -o pswitch_on.o +- -@cd ./gui && ld -r -b binary pswitch_off.png -o pswitch_off.o +- -@cd ./gui && ld -r -b binary frame.png -o frame.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_on.png -o pswitch_on.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_off.png -o pswitch_off.o ++ -@cd ./gui && $(LD) -r -b binary frame.png -o frame.o + + clean : + @rm -f $(NAME).so +diff --git a/GxSD2Lead.lv2/Makefile b/GxSD2Lead.lv2/Makefile +index 7759f91..0f7bb91 100644 +--- a/GxSD2Lead.lv2/Makefile ++++ b/GxSD2Lead.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_sd2lead +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,9 +49,9 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch_on.png gui/pswitch_off.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch_on.png -o pswitch_on.o +- -@cd ./gui && ld -r -b binary pswitch_off.png -o pswitch_off.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_on.png -o pswitch_on.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_off.png -o pswitch_off.o + + clean : + @rm -f $(NAME).so +diff --git a/GxSVT.lv2/Makefile b/GxSVT.lv2/Makefile +index 74a96a8..a8bc7f6 100644 +--- a/GxSVT.lv2/Makefile ++++ b/GxSVT.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_ampegsvt +@@ -38,7 +12,7 @@ + -fPIC -DPIC -O2 -Wall -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,9 +49,9 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch_on.png gui/pswitch_off.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch_on.png -o pswitch_on.o +- -@cd ./gui && ld -r -b binary pswitch_off.png -o pswitch_off.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_on.png -o pswitch_on.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_off.png -o pswitch_off.o + + clean : + @rm -f $(NAME).so +diff --git a/GxSaturator.lv2/Makefile b/GxSaturator.lv2/Makefile +index 62aea02..5c71786 100644 +--- a/GxSaturator.lv2/Makefile ++++ b/GxSaturator.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_saturate +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,7 +49,7 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o + + clean : + @rm -f $(NAME).so +diff --git a/GxSlowGear.lv2/Makefile b/GxSlowGear.lv2/Makefile +index 6b236a1..ad72d70 100644 +--- a/GxSlowGear.lv2/Makefile ++++ b/GxSlowGear.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_slowgear +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,7 +49,7 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o + + clean : + @rm -f $(NAME).so +diff --git a/GxSunFace.lv2/Makefile b/GxSunFace.lv2/Makefile +index 428539b..ded15f6 100644 +--- a/GxSunFace.lv2/Makefile ++++ b/GxSunFace.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_SunFace +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,9 +49,9 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch_on.png gui/pswitch_off.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch_on.png -o pswitch_on.o +- -@cd ./gui && ld -r -b binary pswitch_off.png -o pswitch_off.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_on.png -o pswitch_on.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_off.png -o pswitch_off.o + + clean : + @rm -f $(NAME).so +diff --git a/GxSuperFuzz.lv2/Makefile b/GxSuperFuzz.lv2/Makefile +index c3fe9f2..b102d7c 100644 +--- a/GxSuperFuzz.lv2/Makefile ++++ b/GxSuperFuzz.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_sfp +@@ -38,7 +12,7 @@ + -fPIC -DPIC -O2 -Wall -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,7 +49,7 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o + + clean : + @rm -f $(NAME).so +diff --git a/GxSuppaToneBender.lv2/Makefile b/GxSuppaToneBender.lv2/Makefile +index ab640c2..e79fc1c 100644 +--- a/GxSuppaToneBender.lv2/Makefile ++++ b/GxSuppaToneBender.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_vstb +@@ -38,7 +12,7 @@ + -fPIC -DPIC -O2 -Wall -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,7 +49,7 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o + + clean : + @rm -f $(NAME).so +diff --git a/GxSuppaToneBender.lv2/gui/gx_vstb_x11ui.c b/GxSuppaToneBender.lv2/gui/gx_vstb_x11ui.c +index 95ccede..bc9dd28 100644 +--- a/GxSuppaToneBender.lv2/gui/gx_vstb_x11ui.c ++++ b/GxSuppaToneBender.lv2/gui/gx_vstb_x11ui.c +@@ -29,7 +29,7 @@ + + // define some MACROS to read png data from binary stream + // png's been converted to object files with +-// ld -r -b binary name.png -o name.o ++// $(LD) -r -b binary name.png -o name.o + + #ifdef __APPLE__ + #include +diff --git a/GxToneMachine.lv2/Makefile b/GxToneMachine.lv2/Makefile +index 92b7825..43f3668 100644 +--- a/GxToneMachine.lv2/Makefile ++++ b/GxToneMachine.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_tonemachine +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,7 +49,7 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o + + clean : + @rm -f $(NAME).so +diff --git a/GxTubeDistortion.lv2/Makefile b/GxTubeDistortion.lv2/Makefile +index dfb58e5..1839ed7 100644 +--- a/GxTubeDistortion.lv2/Makefile ++++ b/GxTubeDistortion.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_TubeDistortion +@@ -38,7 +12,7 @@ + -fPIC -DPIC -O2 -Wall -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,9 +49,9 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch_on.png gui/pswitch_off.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch_on.png -o pswitch_on.o +- -@cd ./gui && ld -r -b binary pswitch_off.png -o pswitch_off.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_on.png -o pswitch_on.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_off.png -o pswitch_off.o + + clean : + @rm -f $(NAME).so +diff --git a/GxUVox720k.lv2/Makefile b/GxUVox720k.lv2/Makefile +index 3933ea2..705dd6c 100644 +--- a/GxUVox720k.lv2/Makefile ++++ b/GxUVox720k.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_uvox +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,7 +49,7 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o + + clean : + @rm -f $(NAME).so +diff --git a/GxVBassPreAmp.lv2/Makefile b/GxVBassPreAmp.lv2/Makefile +index bc60ce1..fd6a707 100644 +--- a/GxVBassPreAmp.lv2/Makefile ++++ b/GxVBassPreAmp.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_voxbass +@@ -38,7 +12,7 @@ + -fPIC -DPIC -O2 -Wall -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,10 +49,10 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch_on.png gui/pswitch_off.png gui/frame.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch_on.png -o pswitch_on.o +- -@cd ./gui && ld -r -b binary pswitch_off.png -o pswitch_off.o +- -@cd ./gui && ld -r -b binary frame.png -o frame.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_on.png -o pswitch_on.o ++ -@cd ./gui && $(LD) -r -b binary pswitch_off.png -o pswitch_off.o ++ -@cd ./gui && $(LD) -r -b binary frame.png -o frame.o + + clean : + @rm -f $(NAME).so +diff --git a/GxVBassPreAmp.lv2/gui/gx_voxbass_x11ui.c b/GxVBassPreAmp.lv2/gui/gx_voxbass_x11ui.c +index d5dc134..647cb26 100644 +--- a/GxVBassPreAmp.lv2/gui/gx_voxbass_x11ui.c ++++ b/GxVBassPreAmp.lv2/gui/gx_voxbass_x11ui.c +@@ -29,7 +29,7 @@ + + // define some MACROS to read png data from binary stream + // png's been converted to object files with +-// ld -r -b binary name.png -o name.o ++// $(LD) -r -b binary name.png -o name.o + + #ifdef __APPLE__ + #include +diff --git a/GxValveCaster.lv2/Makefile b/GxValveCaster.lv2/Makefile +index 54c6df5..bbfc7e9 100644 +--- a/GxValveCaster.lv2/Makefile ++++ b/GxValveCaster.lv2/Makefile +@@ -1,33 +1,7 @@ +- ++ + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_valvecaster +@@ -39,7 +13,7 @@ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + DEBUGFLAGS += -I. -I./dsp -I./plugin -fPIC -DPIC -O2 -Wall -D DEBUG + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -85,8 +59,8 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/pswitch.png + @$(ECHO) $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary pswitch.png -o pswitch.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pswitch.png -o pswitch.o + + clean : + @rm -f $(NAME).so +diff --git a/GxVintageFuzzMaster.lv2/Makefile b/GxVintageFuzzMaster.lv2/Makefile +index 03ff63e..0f96ffd 100644 +--- a/GxVintageFuzzMaster.lv2/Makefile ++++ b/GxVintageFuzzMaster.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_vfm +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,7 +49,7 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o + + clean : + @rm -f $(NAME).so +diff --git a/GxVmk2.lv2/Makefile b/GxVmk2.lv2/Makefile +index 53c6dc6..74c9fa2 100644 +--- a/GxVmk2.lv2/Makefile ++++ b/GxVmk2.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_vmk2d +@@ -38,7 +12,7 @@ + -fPIC -DPIC -O2 -Wall -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,8 +49,8 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png gui/frame.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o +- -@cd ./gui && ld -r -b binary frame.png -o frame.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary frame.png -o frame.o + + clean : + @rm -f $(NAME).so +diff --git a/GxVoodoFuzz.lv2/Makefile b/GxVoodoFuzz.lv2/Makefile +index 2f00294..fdd609a 100644 +--- a/GxVoodoFuzz.lv2/Makefile ++++ b/GxVoodoFuzz.lv2/Makefile +@@ -1,33 +1,7 @@ + + STRIP ?= strip +- # check if user is root +- user = $(shell whoami) +- ifeq ($(user),root) + INSTALL_DIR = /usr/lib/lv2 +- else +- INSTALL_DIR = ~/.lv2 +- endif +- +- # check CPU and supported optimization flags +- ifneq ($(shell cat /proc/cpuinfo | grep sse3 ) , ) +- SSE_CFLAGS = -msse3 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse2 ) , ) +- SSE_CFLAGS = -msse2 -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep sse ) , ) +- SSE_CFLAGS = -msse -mfpmath=sse +- else ifneq ($(shell cat /proc/cpuinfo | grep ARM ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep ARMv7 ) , ) +- ifneq ($(shell cat /proc/cpuinfo | grep vfpd32 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- else ifneq ($(shell cat /proc/cpuinfo | grep vfpv3 ) , ) +- SSE_CFLAGS = -march=armv7-a -mfpu=vfpv3 +- endif +- else +- ARMCPU = "YES" +- endif +- else +- SSE_CFLAGS = +- endif ++ SSE_CFLAGS = + + # set bundle name + NAME = gx_voodoo +@@ -38,7 +12,7 @@ + -funroll-loops -ffast-math -fomit-frame-pointer -fstrength-reduce \ + -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) + LDFLAGS += -I. -shared -lm +- GUI_LDFLAGS += -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 ++ GUI_LDFLAGS = $(LDFLAGS) -I./gui -shared -lm `pkg-config --cflags --libs cairo` -L/usr/X11/lib -lX11 + # invoke build files + OBJECTS = plugin/$(NAME).cpp + GUI_OBJECTS = gui/$(NAME)_x11ui.c +@@ -75,7 +49,7 @@ endif + #@build resource object files + $(RES_OBJECTS) : gui/pedal.png + @echo $(LGREEN)"generate resource files,"$(NONE) +- -@cd ./gui && ld -r -b binary pedal.png -o pedal.o ++ -@cd ./gui && $(LD) -r -b binary pedal.png -o pedal.o + + clean : + @rm -f $(NAME).so +diff --git a/GxVoodoFuzz.lv2/gui/gx_voodoo_x11ui.c b/GxVoodoFuzz.lv2/gui/gx_voodoo_x11ui.c +index 69549d1..bedd8ce 100644 +--- a/GxVoodoFuzz.lv2/gui/gx_voodoo_x11ui.c ++++ b/GxVoodoFuzz.lv2/gui/gx_voodoo_x11ui.c +@@ -29,7 +29,7 @@ + + // define some MACROS to read png data from binary stream + // png's been converted to object files with +-// ld -r -b binary name.png -o name.o ++// $(LD) -r -b binary name.png -o name.o + + #ifdef __APPLE__ + #include +-- +2.20.1 + diff --git a/recipes-musicians/guitarix/gxplugins.lv2_git.bb b/recipes-musicians/guitarix/gxplugins.lv2_git.bb new file mode 100644 index 00000000..9319ce8c --- /dev/null +++ b/recipes-musicians/guitarix/gxplugins.lv2_git.bb @@ -0,0 +1,27 @@ +SUMMARY = "A set of extra lv2 plugins from the guitarix project" +HOMEPAGE = "https://github.com/brummer10/GxPlugins.lv2" +LICENSE = "GPLv3" +LIC_FILES_CHKSUM = "file://LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d" + +SRC_URI = " \ + gitsm://github.com/brummer10/GxPlugins.lv2.git \ + file://0001-Adjust-Makefiles-for-cross-compiling.patch \ +" +SRCREV = "63f19485984c002caddec734a9ee94faad2acb55" +S = "${WORKDIR}/git" +PV = "0.6" + +inherit autotools-brokensep pkgconfig + +DEPENDS += " \ + cairo \ + virtual/libx11 \ + lv2 \ +" + +EXTRA_OEMAKE += " \ + PREFIX=${prefix} \ + STRIP=echo \ +" + +FILES_${PN} += "${libdir}/lv2" diff --git a/recipes-support/packagegroups/meta-qt5-extra-music-world.bb b/recipes-support/packagegroups/meta-qt5-extra-music-world.bb index 8e705011..e6d9d135 100644 --- a/recipes-support/packagegroups/meta-qt5-extra-music-world.bb +++ b/recipes-support/packagegroups/meta-qt5-extra-music-world.bb @@ -58,6 +58,7 @@ RDEPENDS_${PN} += " \ ftgl \ gmidimonitor \ guitarix \ + gxplugins.lv2 \ helm-standalone helm-lv2 helm-vst \ hydrogen hydrogen-drumkits \ infamousplugins \