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.

31 lines
918B

  1. #!/usr/bin/make -f
  2. DEB_BUILD_ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH)
  3. CFLAGS += -fno-lto
  4. %:
  5. dh $@
  6. override_dh_auto_build:
  7. ifeq ($(DEB_BUILD_ARCH),amd64)
  8. $(MAKE) WINEBUILD=winebuild-development WINECC=winegcc-development 64
  9. endif
  10. ifeq ($(DEB_BUILD_ARCH),i386)
  11. $(MAKE) WINEBUILD=winebuild-development WINECC=winegcc-development 32
  12. endif
  13. override_dh_auto_install:
  14. $(MAKE) -C gui install DESTDIR=$(CURDIR)/debian/tmp
  15. install -m 755 wineasio-register $(CURDIR)/debian/tmp/usr/bin/
  16. override_dh_shlibdeps:
  17. ifeq ($(DEB_BUILD_ARCH),amd64)
  18. env LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib/x86_64-linux-gnu/wine-development dh_shlibdeps
  19. sed -i "s/, libwine-development//" debian/wineasio-amd64.substvars
  20. endif
  21. ifeq ($(DEB_BUILD_ARCH),i386)
  22. env LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib/i386-linux-gnu/wine-development dh_shlibdeps
  23. sed -i "s/, libwine-development//" debian/wineasio-i386.substvars
  24. endif