aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/scantailor.rb
blob: 64432d50068efae5fc4c153184ed24fb2836c3ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require 'formula'

class Scantailor < Formula
  homepage 'http://scantailor.sourceforge.net/'

  unless ARGV.include? '--enhanced'
    url 'http://downloads.sourceforge.net/project/scantailor/scantailor/0.9.10/scantailor-0.9.10.tar.gz'
    md5 'f962c93a2d63b449fa3f6612ade3b028'
  else
    url 'http://downloads.sourceforge.net/project/scantailor/scantailor-devel/enhanced/scantailor-enhanced-20110907.tar.gz'
    md5 '8ba5c23c611e7bdd7cdb40f991f6fd35'
    version 'enhanced-20110907'
  end

  depends_on 'cmake' => :build
  depends_on 'qt'
  depends_on 'boost'
  depends_on 'jpeg'
  depends_on 'libtiff'

  def options
    [
      ["--enhanced", "Build experimental \"enhanced\" branch, which includes extra features"]
    ]
  end

  def install
    system "cmake . #{std_cmake_parameters} -DPNG_INCLUDE_DIR=/usr/X11/include"
    system "make install"
  end
end