| @@ -1,3 +1,9 @@ | |||||
| kxstudio-build-scripts (5) focal; urgency=medium | |||||
| * Tweak default flags | |||||
| -- falkTX <falktx@falktx.com> Mon, 09 May 2022 12:43:04 +0100 | |||||
| kxstudio-build-scripts (4) focal; urgency=medium | kxstudio-build-scripts (4) focal; urgency=medium | ||||
| * Add lv2lint and lilv-utils as dependencies | * Add lv2lint and lilv-utils as dependencies | ||||
| @@ -13,8 +13,8 @@ Description: Build scripts for KXStudio repositories | |||||
| This package provides the build scripts used in the KXStudio repositories. | This package provides the build scripts used in the KXStudio repositories. | ||||
| Package: kxstudio-audio-plugin-tester | Package: kxstudio-audio-plugin-tester | ||||
| Architecture: all | |||||
| Depends: ${misc:Depends}, kxstudio-build-scripts, lilv-utils, lv2lint, valgrind | |||||
| Architecture: any | |||||
| Depends: ${misc:Depends}, ${shlibs:Depends}, kxstudio-build-scripts, lilv-utils, lv2lint, valgrind | |||||
| Description: Audio plugin test setup for KXStudio repositories | Description: Audio plugin test setup for KXStudio repositories | ||||
| This package provides the setup used for testing audio plugins | This package provides the setup used for testing audio plugins | ||||
| in the KXStudio repositories. | in the KXStudio repositories. | ||||
| @@ -0,0 +1,4 @@ | |||||
| build/bin/carla-bridge-native /opt/kxstudio/lib/carla/ | |||||
| build/bin/carla-discovery-native /opt/kxstudio/lib/carla/ | |||||
| kxstudio-audio-plugin.* /usr/share/dpkg/ | |||||
| @@ -0,0 +1 @@ | |||||
| kxstudio.mk /usr/share/dpkg/ | |||||
| @@ -23,13 +23,20 @@ CARLA_BACKEND_EXTRAFLAGS += EXTERNAL_PLUGINS=false | |||||
| CARLA_BACKEND_EXTRAFLAGS += USING_JUCE=false | CARLA_BACKEND_EXTRAFLAGS += USING_JUCE=false | ||||
| CARLA_BACKEND_EXTRAFLAGS += USING_JUCE_AUDIO_DEVICES=false | CARLA_BACKEND_EXTRAFLAGS += USING_JUCE_AUDIO_DEVICES=false | ||||
| CARLA_BACKEND_EXTRAFLAGS += USING_JUCE_GUI_EXTRA=false | CARLA_BACKEND_EXTRAFLAGS += USING_JUCE_GUI_EXTRA=false | ||||
| CARLA_BACKEND_EXTRAFLAGS += USING_RTAUDIO=false | |||||
| CARLA_BACKEND_EXTRAFLAGS += NOOPT=true | |||||
| export CFLAGS= | |||||
| export CXXFLAGS= | |||||
| export CPPFLAGS= | |||||
| export LDFLAGS= | |||||
| override_dh_auto_configure: | override_dh_auto_configure: | ||||
| mkdir -p build | mkdir -p build | ||||
| tar -x -C build --overwrite --strip-components=1 -f carla.tar.gz | tar -x -C build --overwrite --strip-components=1 -f carla.tar.gz | ||||
| override_dh_auto_build: | override_dh_auto_build: | ||||
| make all -C build $(CARLA_BACKEND_EXTRAFLAGS) | |||||
| $(MAKE) all -C build $(CARLA_BACKEND_EXTRAFLAGS) | |||||
| override_dh_auto_clean: | override_dh_auto_clean: | ||||
| if [ ! -f carla.tar.gz ]; then wget https://github.com/falkTX/Carla/archive/refs/tags/v2.4.3.tar.gz -O carla.tar.gz; fi | if [ ! -f carla.tar.gz ]; then wget https://github.com/falkTX/Carla/archive/refs/tags/v2.4.3.tar.gz -O carla.tar.gz; fi | ||||
| @@ -36,7 +36,7 @@ export LV2_PATH=$(pwd)/debian/${PKG_NAME}/usr/lib/lv2:/tmp/lv2-spec | |||||
| rm -rf /tmp/lv2-spec | rm -rf /tmp/lv2-spec | ||||
| mkdir /tmp/lv2-spec | mkdir /tmp/lv2-spec | ||||
| cp -r /usr/lib/lv2/{atom,buf-size,core,data-access,kx-control-input-port-change-request,kx-programs,instance-access,midi,parameters,port-groups,port-props,options,patch,presets,resize-port,state,time,ui,units,urid,worker}.lv2 /tmp/lv2-spec/ | |||||
| cp -r /usr/lib/lv2/{atom,buf-size,core,data-access,instance-access,midi,parameters,port-groups,port-props,options,patch,presets,resize-port,state,time,ui,units,urid,worker}.lv2 /tmp/lv2-spec/ | |||||
| if [ -d debian/${PKG_NAME}/usr/lib/lv2 ]; then | if [ -d debian/${PKG_NAME}/usr/lib/lv2 ]; then | ||||
| pushd debian/${PKG_NAME}/usr/lib/lv2 | pushd debian/${PKG_NAME}/usr/lib/lv2 | ||||
| @@ -2,7 +2,15 @@ | |||||
| include /usr/share/dpkg/architecture.mk | include /usr/share/dpkg/architecture.mk | ||||
| FLAGS = -O3 -fPIC -DPIC -fvisibility=hidden -fdata-sections -ffunction-sections -DNDEBUG | |||||
| FLAGS = -O3 | |||||
| FLAGS += -fPIC -DPIC | |||||
| FLAGS += -fdata-sections -ffunction-sections | |||||
| FLAGS += -fno-common | |||||
| FLAGS += -fno-gnu-unique | |||||
| FLAGS += -fno-strict-aliasing -flto -ffat-lto-objects | |||||
| FLAGS += -fvisibility=hidden | |||||
| FLAGS += -DNDEBUG | |||||
| ifeq ($(DEB_HOST_ARCH),armhf) | ifeq ($(DEB_HOST_ARCH),armhf) | ||||
| FLAGS += -march=armv7ve -mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4 | FLAGS += -march=armv7ve -mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4 | ||||
| else ifeq ($(DEB_HOST_ARCH),arm64) | else ifeq ($(DEB_HOST_ARCH),arm64) | ||||
| @@ -15,12 +23,12 @@ ifeq ($(KXSTUDIO_NO_FASTMATH),) | |||||
| FLAGS += -ffast-math | FLAGS += -ffast-math | ||||
| endif | endif | ||||
| export CFLAGS=$(FLAGS) | |||||
| export CXXFLAGS=$(FLAGS) -fvisibility-inlines-hidden | |||||
| export CPPFLAGS= | |||||
| export LDFLAGS=-Wl,-O1,--as-needed,--no-undefined,--gc-sections,--strip-all | |||||
| export PATH:=/opt/kxstudio/bin:$(PATH) | |||||
| export PKG_CONFIG_PATH=/opt/kxstudio/lib/pkgconfig | |||||
| export CFLAGS = $(FLAGS) | |||||
| export CXXFLAGS = $(FLAGS) -fvisibility-inlines-hidden | |||||
| export CPPFLAGS = | |||||
| export LDFLAGS = $(FLAGS) -Wl,-O1,--as-needed,--no-undefined,--gc-sections,--strip-all -Werror=odr -Werror=lto-type-mismatch | |||||
| export PATH := /opt/kxstudio/bin:$(PATH) | |||||
| export PKG_CONFIG_PATH = /opt/kxstudio/lib/pkgconfig | |||||
| ifeq ($(KXSTUDIO_EXPLICIT_PATH_INCLUDE),y) | ifeq ($(KXSTUDIO_EXPLICIT_PATH_INCLUDE),y) | ||||
| export CFLAGS += -I/opt/kxstudio/include | export CFLAGS += -I/opt/kxstudio/include | ||||