diff options
| author | Roy Shilkrot | 2013-05-06 15:44:29 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2013-08-05 09:45:34 -0700 |
| commit | c386fd42cbd3660dd7d1ff0da9099cc86b17be00 (patch) | |
| tree | b274b06301488608f9e23f5dabbea9c8869c1e35 /Library/Formula | |
| parent | 0d660bb51f8ee9718d8bd1560e487faf0ad8b83b (diff) | |
| download | homebrew-c386fd42cbd3660dd7d1ff0da9099cc86b17be00.tar.bz2 | |
libtess2 1.0
Closes #19634.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libtess2.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/libtess2.rb b/Library/Formula/libtess2.rb new file mode 100644 index 000000000..38a0a94de --- /dev/null +++ b/Library/Formula/libtess2.rb @@ -0,0 +1,25 @@ +require 'formula' + +class Libtess2 < Formula + homepage 'https://code.google.com/p/libtess2/' + url 'https://libtess2.googlecode.com/files/libtess2-1.0.zip' + sha1 '53e968add78711c3eb5cdc0948d85c9bd1db2751' + + depends_on 'cmake' => :build + + def install + # creating CMakeLists.txt, since the original source doesn't have one + (buildpath/"CMakeLists.txt").write <<-EOS.undent + cmake_minimum_required(VERSION 2.6) + project(libtess) + file(GLOB SRCS "Source/*.cpp" "Source/*.c" "Source/*.h" "Source/*.hpp") + include_directories("Include") + add_library(tess2 ${SRCS} ${SRCS_INCL}) + EOS + + system "cmake", ".", *std_cmake_args + system "make" + lib.install "libtess2.a" + include.install "Include/tesselator.h" + end +end |
