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.
 
 
 
 

48 lines
1.2 KiB

  1. #!/usr/bin/make -f
  2. # -*- makefile -*-
  3. # Uncomment this to turn on verbose mode.
  4. #export DH_VERBOSE=1
  5. export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
  6. DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
  7. DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
  8. ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
  9. NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
  10. MAKEFLAGS += -j$(NUMJOBS)
  11. endif
  12. ifeq (ppc64el,$(filter $(DEB_BUILD_ARCH),ppc64el))
  13. CFLAGS += -O2
  14. endif
  15. %:
  16. dh $@ --with autoreconf,gir
  17. override_dh_autoreconf:
  18. dh_autoreconf --as-needed ./autogen.sh
  19. override_dh_auto_configure:
  20. dh_auto_configure -- --disable-static \
  21. --disable-silent-rules
  22. override_dh_girepository:
  23. dh_girepository /usr/lib/$(DEB_HOST_MULTIARCH)/muffin
  24. override_dh_strip:
  25. dh_strip --dbgsym-migration='muffin-dbg (<= 3.0.3-1~~)'
  26. override_dh_install:
  27. dh_install -X.la --fail-missing
  28. run_dh_acc:
  29. # The package needs to be installed (@ in autopkgtest)
  30. for in_file in debian/*.acc.in; do \
  31. out_file=$${in_file%.in}; \
  32. sed 's/\$${DEB_HOST_MULTIARCH}/'"$(DEB_HOST_MULTIARCH)"'/' \
  33. "$${in_file}" > "$${out_file}"; \
  34. done
  35. dh_acc