rules 975 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/usr/bin/make -f
  2. export DEB_BUILD_MAINT_OPTIONS = hardening=+all
  3. # HOWMANY is the number of bytes looked at by file
  4. CFLAGS += -DHOWMANY=0x18000
  5. %:
  6. dh $@
  7. override_dh_auto_configure:
  8. dh_auto_configure -- \
  9. --prefix=/usr \
  10. --datadir=\$${prefix}/share \
  11. --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
  12. --mandir=\$${prefix}/share/man \
  13. --enable-fsect-man5 \
  14. --enable-static \
  15. --disable-silent-rules CFLAGS="$(CFLAGS)"
  16. override_dh_auto_install:
  17. dh_auto_install
  18. mv debian/tmp/usr/share/misc debian/tmp/usr/share/file
  19. install -D -m 0644 magic/magic.local debian/tmp/etc/magic
  20. install -D -m 0644 magic/magic.local debian/tmp/etc/magic.mime
  21. # Install additional headers
  22. mkdir -p debian/libmagic-dev/usr/include/file
  23. cp src/file.h debian/libmagic-dev/usr/include/file
  24. # Remove useless files
  25. rm -f debian/tmp/usr/lib/*/*.la
  26. override_dh_missing:
  27. dh_missing --fail-missing
  28. override_dh_shlibdeps:
  29. dh_shlibdeps -Llibmagic1 -ldebian/libmagic1/usr/lib