aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/anttweakbar.rb
blob: 297d0a33b57f6f0074f61cb47a4ff8b779500b9b (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
require 'formula'

class Anttweakbar < Formula
  url 'http://www.antisphere.com/Tools/AntTweakBar/AntTweakBar_114.zip'
  homepage 'http://www.antisphere.com/Wiki/tools:anttweakbar'
  md5 '5aaee2ea2bca03a258f8dad494828d7e'

  depends_on 'dos2unix' => :build

  def patches
    # this was developed by a windows guy (apparently); need to run dos2unix
    # in order to apply a patch
    system 'dos2unix `find src/ -type f`'

    # patch two small issues -- one related to 10.7 compatibility, one related
    # to missing symbols due to an (apparently) erroneous 'extern "C"' wrapper
    'https://raw.github.com/gist/1182684/8afd29c2bef6c410f1886d297012af752c0d0ac3/atb_10_7_patch_minimal.diff'
  end

  def install
    system 'cd src; make -f Makefile.osx'
    lib.install 'lib/libAntTweakBar.dylib'
    include.install 'include/AntTweakBar.h'
  end
end