PageRenderTime 24ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/Library/Formula/tintin.rb

https://github.com/lp/homebrew
Ruby | 39 lines | 27 code | 10 blank | 2 comment | 0 complexity | 85c19c638153f3acd0648efe88c7a7b5 MD5 | raw file
  1. require 'formula'
  2. class Tintin < Formula
  3. homepage 'http://tintin.sf.net'
  4. url 'http://downloads.sourceforge.net/project/tintin/TinTin%2B%2B%20Source%20Code/2.00.8/tintin-2.00.8.tar.gz'
  5. sha256 'e364a7fa7ed35a2d166a081cce4682d5fe2481ee9ce72c6a409903d097e1ae45'
  6. depends_on 'pcre'
  7. # This puts brew's environ (CPPFLAGS and CFLAGS) in generated Makefile
  8. def patches
  9. DATA
  10. end
  11. def install
  12. Dir.chdir "src"
  13. system "./configure", "--prefix=#{prefix}"
  14. system "make install"
  15. end
  16. end
  17. __END__
  18. diff --git a/src/Makefile.in b/src/Makefile.in
  19. index 067b5ff..d55bc74 100644
  20. --- a/src/Makefile.in
  21. +++ b/src/Makefile.in
  22. @@ -31,11 +31,11 @@ docdir = @prefix@/doc
  23. #this is the standard CFLAGS options, this is what most people should use
  24. -CFLAGS += $(DEFINES) @BIG5@
  25. +CFLAGS += $(DEFINES) @CFLAGS@ @BIG5@
  26. LDFLAGS = @LDFLAGS@
  27. -INCS = @MYINCLUDE@
  28. +INCS = @CPPFLAGS@ @MYINCLUDE@
  29. LIBS = @MYLIB@ @LIBS@