External, Non-PPA KXStudio Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.4KB

  1. #!/usr/bin/make -f
  2. KXSTUDIO_NO_FASTMATH = y
  3. KXSTUDIO_NO_LTO = y
  4. include /usr/share/dpkg/kxstudio-audio-plugin.mk
  5. ifeq ($(DEB_HOST_ARCH),armhf)
  6. ARCHITECTURE = armv7ve
  7. else ifeq ($(DEB_HOST_ARCH),arm64)
  8. ARCHITECTURE = aarch64
  9. else
  10. ARCHITECTURE = x86_64
  11. endif
  12. # these have custom names on LSP makefiles
  13. export EXE_FLAGS = $(LDFLAGS)
  14. export SO_FLAGS = $(LDFLAGS)
  15. # FIXME a lib is causing leaks
  16. export VALGRIND_EXTRA_ARGS = --leak-check=no
  17. %:
  18. dh $@
  19. override_dh_auto_configure:
  20. $(MAKE) config ARCHITECTURE=$(ARCHITECTURE) FEATURES='ladspa lv2 vst2 jack' PREFIX=/usr
  21. # make it read our custom flags too
  22. sed -i 's/^EXE_FLAGS=/EXE_FLAGS+=/' .config.mk
  23. sed -i 's/^SO_FLAGS=/SO_FLAGS+=/' .config.mk
  24. override_dh_auto_install:
  25. dh_auto_install
  26. # Remove versioned ladspa plugin
  27. mv debian/tmp/usr/lib/ladspa/lsp-plugins-ladspa-*.so debian/tmp/usr/lib/ladspa/lsp-plugins-ladspa.so
  28. # Remove unused files
  29. rm debian/tmp/usr/lib/*.a
  30. rm debian/tmp/usr/lib/*.so
  31. rm -r debian/tmp/usr/lib/pkgconfig
  32. # Make lv2 validators happy
  33. sed -i -z 's|\tfoaf:mbox <mailto:lsp.plugin@gmail.com> ;\n\tfoaf:homepage <http://lsp-plug.in/#v_sadovnikov>|\tfoaf:mbox <mailto:lsp.plugin+sadko@gmail.com> ;\n\tfoaf:homepage <http://lsp-plug.in/#v_sadovnikov>|g' debian/tmp/usr/lib/lv2/lsp-plugins.lv2/*.ttl
  34. override_dh_install:
  35. dh_install
  36. # FIXME Fails due to memory issues
  37. # TODO report issue on http://lsp-plug.in/plugins/lv2/mb_expander_lr
  38. # $(call kxstudio_audio_plugin_test)