homebrew-core/Formula/png2ico.rb

21 lines
583 B
Ruby
Raw Normal View History

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
url 'http://www.winterdrache.de/freeware/png2ico/data/png2ico-src-2002-12-08.tar.gz'
homepage 'http://www.winterdrache.de/freeware/png2ico/'
md5 '9b663df81c826cd564638cba2e6bc75b'
2010-06-04 02:47:35 +00:00
def install
ENV.x11 # For libpng
# Remove hard-coded CPPFLAGS and replace with Homebrew's flags
inreplace 'Makefile' do |s|
s.remove_make_var! 'CPPFLAGS'
s.gsub! '$(CPPFLAGS)', '$(CPPFLAGS) $(LDFLAGS) $(CFLAGS) -finline-functions'
end
2010-06-04 02:47:35 +00:00
system 'make'
bin.install 'png2ico'
man1.install 'doc/png2ico.1'
end
2011-03-10 05:11:03 +00:00
end