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.

57 lines
1.7KB

  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. # handy if we want to hide symbols, still does not work though.. :(
  16. # export CFLAGS += -DLSP_DSP_LIB_BUILTIN -DLSP_DSP_UNITS_BUILTIN
  17. # export CXXFLAGS += -DLSP_DSP_LIB_BUILTIN -DLSP_DSP_UNITS_BUILTIN
  18. # FIXME https://github.com/sadko4u/lsp-plugins/issues/253
  19. export LV2LINT_SKIP = y
  20. export LV2LINT_EXTRA_FLAGS = -s 'INT123_*'
  21. %:
  22. dh $@
  23. override_dh_auto_configure:
  24. $(MAKE) config ARCHITECTURE=$(ARCHITECTURE) FEATURES='ladspa lv2 vst2 jack' PREFIX=/usr
  25. # make it read our custom flags too
  26. sed -i 's/^CFLAGS=/CFLAGS+=/' .config.mk
  27. sed -i 's/^CXXFLAGS=/CXXFLAGS+=/' .config.mk
  28. sed -i 's/^EXE_FLAGS=/EXE_FLAGS+=/' .config.mk
  29. sed -i 's/^SO_FLAGS=/SO_FLAGS+=/' .config.mk
  30. override_dh_auto_install:
  31. dh_auto_install
  32. # Remove versioned ladspa plugin
  33. mv debian/tmp/usr/lib/ladspa/lsp-plugins-ladspa-*.so debian/tmp/usr/lib/ladspa/lsp-plugins-ladspa.so
  34. # Remove unused files
  35. rm debian/tmp/usr/lib/*.a
  36. rm debian/tmp/usr/lib/*.so
  37. rm -r debian/tmp/usr/lib/pkgconfig
  38. # Make lv2 validators happy
  39. 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
  40. override_dh_install:
  41. dh_install
  42. # FIXME http://lsp-plug.in/plugins/lv2/art_delay_mono has memory leaks, also symbol exports
  43. #$(call kxstudio_audio_plugin_test)