aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pngwriter.rb
blob: ddb56c1987bbfa52906be34abc1b20136b01bee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'formula'

class Pngwriter < Formula
  url 'http://downloads.sourceforge.net/project/pngwriter/pngwriter/pngwriter-0.5.4/pngwriter-0.5.4.zip'
  homepage 'http://pngwriter.sourceforge.net/'
  md5 '7e0c20f2cce6da685b68d5e9b15b5207'

  def install
    # the zip file contains one more directory
    cd("pngwriter-0.5.4")
    # use the OSX specific makefile
    ln_sf("make.include.osx", "make.include")
    system "make PREFIX=#{prefix}"
    system "make install PREFIX=#{prefix}"
  end
end