2010-06-04 02:47:35 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Png2ico < Formula
|
2010-06-04 02:47:35 +00:00
|
|
|
homepage 'http://www.winterdrache.de/freeware/png2ico/'
|
2012-02-13 04:53:15 +00:00
|
|
|
url 'http://www.winterdrache.de/freeware/png2ico/data/png2ico-src-2002-12-08.tar.gz'
|
2010-06-04 02:47:35 +00:00
|
|
|
md5 '9b663df81c826cd564638cba2e6bc75b'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :libpng
|
|
|
|
|
2010-06-04 02:47:35 +00:00
|
|
|
def install
|
2012-02-13 04:53:15 +00:00
|
|
|
inreplace 'Makefile', 'g++', '$(CXX)'
|
|
|
|
system "make", "CPPFLAGS=#{ENV.cxxflags} #{ENV.cppflags} #{ENV.ldflags}"
|
2010-06-04 02:47:35 +00:00
|
|
|
bin.install 'png2ico'
|
|
|
|
man1.install 'doc/png2ico.1'
|
|
|
|
end
|
2011-03-10 05:11:03 +00:00
|
|
|
end
|