PageRenderTime 30ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/Library/Formula/tintin.rb

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