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.

42 lines
960B

  1. #!/usr/bin/make -f
  2. KXSTUDIO_NO_FASTMATH = y
  3. include /usr/share/dpkg/kxstudio.mk
  4. # export LDFLAGS += -Wl,--whole-archive
  5. ifeq ($(DEB_HOST_ARCH),armhf)
  6. EXTRA_CONFIG = --with-cpu=neon
  7. else ifeq ($(DEB_HOST_ARCH),arm64)
  8. EXTRA_CONFIG = --with-cpu=neon64
  9. else
  10. EXTRA_CONFIG = --with-cpu=x86-64
  11. endif
  12. override_dh_auto_configure:
  13. ./configure --disable-maintainer-mode \
  14. --prefix=/opt/kxstudio \
  15. --enable-static \
  16. --disable-shared \
  17. --enable-lfs-alias \
  18. --with-audio=dummy \
  19. $(EXTRA_CONFIG)
  20. override_dh_auto_install:
  21. dh_auto_install
  22. # remove unwanted files
  23. rm $(CURDIR)/debian/libmpg123-static/opt/kxstudio/lib/libmpg123.la
  24. rm $(CURDIR)/debian/libmpg123-static/opt/kxstudio/lib/libout123.la
  25. rm $(CURDIR)/debian/libmpg123-static/opt/kxstudio/lib/libsyn123.la
  26. rm -r $(CURDIR)/debian/libmpg123-static/opt/kxstudio/share/man
  27. override_dh_auto_clean:
  28. dh_auto_clean
  29. rm -f config.log
  30. override_dh_auto_test:
  31. # skip
  32. %:
  33. dh $@