Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. 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/cacademo debian/caca-utils/usr/bin
  37. mv debian/libcaca-dev/usr/bin/cacaview debian/caca-utils/usr/bin
  38. mv debian/libcaca-dev/usr/bin/cacafire debian/caca-utils/usr/bin
  39. mv debian/libcaca-dev/usr/bin/caca-spritedit 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/cacademo.1 \
  42. debian/caca-utils/usr/share/man/man1
  43. ln -s cacademo.1 debian/caca-utils/usr/share/man/man1/cacafire.1
  44. mv debian/libcaca-dev/usr/share/man/man1/cacaview.1 \
  45. debian/caca-utils/usr/share/man/man1
  46. mv debian/libcaca-dev/usr/share/man/man1/caca-spritedit.1 \
  47. debian/caca-utils/usr/share/man/man1
  48. cp debian/libcaca-dev/usr/share/doc/libcaca-dev/README \
  49. debian/libcaca-dev/usr/share/doc/libcaca-dev/BUGS \
  50. debian/libcaca-dev/usr/share/doc/libcaca-dev/TODO \
  51. debian/libcaca-dev/usr/share/doc/libcaca-dev/AUTHORS \
  52. debian/libcaca-dev/usr/share/doc/libcaca-dev/NEWS \
  53. debian/libcaca-dev/usr/share/doc/libcaca-dev/NOTES \
  54. debian/caca-utils/usr/share/doc/caca-utils/
  55. # Build architecture-independent files here.
  56. binary-indep: build install
  57. # We have nothing to do by default.
  58. # Build architecture-dependent files here.
  59. binary-arch: build install
  60. # dh_testversion
  61. dh_testdir
  62. dh_testroot
  63. # dh_installdebconf
  64. dh_installdocs
  65. # dh_installexamples
  66. dh_installmenu
  67. # dh_installemacsen
  68. # dh_installpam
  69. # dh_installinit
  70. dh_installcron
  71. # dh_installmanpages
  72. dh_installinfo
  73. dh_installmime
  74. # dh_undocumented
  75. dh_installchangelogs ChangeLog
  76. dh_link
  77. dh_strip
  78. dh_compress
  79. dh_fixperms
  80. # dh_makeshlibs
  81. dh_installdeb
  82. # dh_perl
  83. dh_shlibdeps
  84. dh_gencontrol
  85. dh_md5sums
  86. dh_builddeb
  87. binary: binary-indep binary-arch
  88. .PHONY: build clean binary-indep binary-arch binary install configure