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.
 
 
 
 
 
 

110 lines
3.1 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 \
  13. --enable-imlib2 --enable-doc
  14. configure: configure-stamp
  15. configure-stamp:
  16. dh_testdir
  17. ./configure $(confflags) --prefix=/usr
  18. touch configure-stamp
  19. build: configure-stamp build-stamp
  20. build-stamp:
  21. dh_testdir
  22. $(MAKE)
  23. touch build-stamp
  24. clean:
  25. dh_testdir
  26. dh_testroot
  27. rm -f build-stamp configure-stamp
  28. -$(MAKE) distclean
  29. dh_clean
  30. install: build
  31. dh_testdir
  32. dh_testroot
  33. dh_clean -k
  34. dh_installdirs -plibcaca-dev
  35. dh_installdirs usr/bin usr/share/doc/caca-utils usr/share/man/man1 -pcaca-utils
  36. $(MAKE) install DESTDIR=`pwd`/debian/libcaca-dev/
  37. mv debian/libcaca-dev/usr/bin/cacaball debian/caca-utils/usr/bin
  38. mv debian/libcaca-dev/usr/bin/cacademo debian/caca-utils/usr/bin
  39. mv debian/libcaca-dev/usr/bin/cacaview debian/caca-utils/usr/bin
  40. mv debian/libcaca-dev/usr/bin/cacafire debian/caca-utils/usr/bin
  41. mv debian/libcaca-dev/usr/bin/cacamoir debian/caca-utils/usr/bin
  42. mv debian/libcaca-dev/usr/bin/cacaplas debian/caca-utils/usr/bin
  43. mv debian/libcaca-dev/usr/share/libcaca debian/caca-utils/usr/share
  44. mv debian/libcaca-dev/usr/share/man/man1/cacaball.1 \
  45. debian/caca-utils/usr/share/man/man1/
  46. mv debian/libcaca-dev/usr/share/man/man1/cacademo.1 \
  47. debian/caca-utils/usr/share/man/man1/
  48. mv debian/libcaca-dev/usr/share/man/man1/cacafire.1 \
  49. debian/caca-utils/usr/share/man/man1/
  50. mv debian/libcaca-dev/usr/share/man/man1/cacamoir.1 \
  51. debian/caca-utils/usr/share/man/man1/
  52. mv debian/libcaca-dev/usr/share/man/man1/cacaplas.1 \
  53. debian/caca-utils/usr/share/man/man1/
  54. mv debian/libcaca-dev/usr/share/man/man1/cacaview.1 \
  55. debian/caca-utils/usr/share/man/man1/
  56. cp debian/libcaca-dev/usr/share/doc/libcaca-dev/README \
  57. debian/libcaca-dev/usr/share/doc/libcaca-dev/TODO \
  58. debian/libcaca-dev/usr/share/doc/libcaca-dev/AUTHORS \
  59. debian/libcaca-dev/usr/share/doc/libcaca-dev/NEWS \
  60. debian/libcaca-dev/usr/share/doc/libcaca-dev/NOTES \
  61. debian/caca-utils/usr/share/doc/caca-utils/
  62. # Build architecture-independent files here.
  63. binary-indep: build install
  64. # We have nothing to do by default.
  65. # Build architecture-dependent files here.
  66. binary-arch: build install
  67. # dh_testversion
  68. dh_testdir
  69. dh_testroot
  70. # dh_installdebconf
  71. dh_installdocs
  72. # dh_installexamples
  73. dh_installmenu
  74. # dh_installemacsen
  75. # dh_installpam
  76. # dh_installinit
  77. dh_installcron
  78. # dh_installmanpages
  79. dh_installinfo
  80. dh_installmime
  81. # dh_undocumented
  82. dh_installchangelogs ChangeLog
  83. dh_link
  84. dh_strip
  85. dh_compress
  86. dh_fixperms
  87. # dh_makeshlibs
  88. dh_installdeb
  89. # dh_perl
  90. dh_shlibdeps
  91. dh_gencontrol
  92. dh_md5sums
  93. dh_builddeb
  94. binary: binary-indep binary-arch
  95. .PHONY: build clean binary-indep binary-arch binary install configure