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.
 
 
 
 
 
 

104 lines
2.9 KiB

  1. #!/usr/bin/make -f
  2. #export DH_VERBOSE=1
  3. export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
  4. export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
  5. # FOR AUTOCONF 2.52 AND NEWER ONLY
  6. ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
  7. confflags += --build $(DEB_HOST_GNU_TYPE)
  8. else
  9. confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
  10. endif
  11. confflags += --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
  12. confflags += --enable-ncurses --enable-slang --enable-x11 --enable-imlib2
  13. configure: configure-stamp
  14. configure-stamp:
  15. dh_testdir
  16. ./configure $(confflags) --prefix=/usr
  17. touch configure-stamp
  18. build: configure-stamp build-stamp
  19. build-stamp:
  20. dh_testdir
  21. $(MAKE)
  22. touch build-stamp
  23. clean:
  24. dh_testdir
  25. dh_testroot
  26. rm -f build-stamp configure-stamp
  27. -$(MAKE) distclean
  28. dh_clean
  29. install: build
  30. dh_testdir
  31. dh_testroot
  32. dh_clean -k
  33. dh_installdirs -plibcaca-dev
  34. dh_installdirs usr/bin usr/share/doc/caca-utils usr/share/man/man1 -pcaca-utils
  35. DESTDIR=`pwd`/debian/libcaca-dev/ $(MAKE) install prefix=/usr
  36. mv debian/libcaca-dev/usr/bin/cacaball debian/caca-utils/usr/bin
  37. mv debian/libcaca-dev/usr/bin/cacademo debian/caca-utils/usr/bin
  38. mv debian/libcaca-dev/usr/bin/cacaview debian/caca-utils/usr/bin
  39. mv debian/libcaca-dev/usr/bin/cacafire debian/caca-utils/usr/bin
  40. mv debian/libcaca-dev/usr/share/libcaca debian/caca-utils/usr/share
  41. mv debian/libcaca-dev/usr/share/man/man1/cacaball.1 \
  42. debian/caca-utils/usr/share/man/man1/
  43. mv debian/libcaca-dev/usr/share/man/man1/cacademo.1 \
  44. debian/caca-utils/usr/share/man/man1/
  45. mv debian/libcaca-dev/usr/share/man/man1/cacafire.1 \
  46. debian/caca-utils/usr/share/man/man1/
  47. mv debian/libcaca-dev/usr/share/man/man1/cacaview.1 \
  48. debian/caca-utils/usr/share/man/man1/
  49. cp debian/libcaca-dev/usr/share/doc/libcaca-dev/README \
  50. debian/libcaca-dev/usr/share/doc/libcaca-dev/BUGS \
  51. debian/libcaca-dev/usr/share/doc/libcaca-dev/TODO \
  52. debian/libcaca-dev/usr/share/doc/libcaca-dev/AUTHORS \
  53. debian/libcaca-dev/usr/share/doc/libcaca-dev/NEWS \
  54. debian/libcaca-dev/usr/share/doc/libcaca-dev/NOTES \
  55. debian/caca-utils/usr/share/doc/caca-utils/
  56. # Build architecture-independent files here.
  57. binary-indep: build install
  58. # We have nothing to do by default.
  59. # Build architecture-dependent files here.
  60. binary-arch: build install
  61. # dh_testversion
  62. dh_testdir
  63. dh_testroot
  64. # dh_installdebconf
  65. dh_installdocs
  66. # dh_installexamples
  67. dh_installmenu
  68. # dh_installemacsen
  69. # dh_installpam
  70. # dh_installinit
  71. dh_installcron
  72. # dh_installmanpages
  73. dh_installinfo
  74. dh_installmime
  75. # dh_undocumented
  76. dh_installchangelogs ChangeLog
  77. dh_link
  78. dh_strip
  79. dh_compress
  80. dh_fixperms
  81. # dh_makeshlibs
  82. dh_installdeb
  83. # dh_perl
  84. dh_shlibdeps
  85. dh_gencontrol
  86. dh_md5sums
  87. dh_builddeb
  88. binary: binary-indep binary-arch
  89. .PHONY: build clean binary-indep binary-arch binary install configure