homebrew-core/Formula/png2ico.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

18 lines
No EOL
644 B
Ruby

require 'formula'
class Png2ico <Formula
url 'http://www.winterdrache.de/freeware/png2ico/data/png2ico-src-2002-12-08.tar.gz'
homepage 'http://www.winterdrache.de/freeware/png2ico/'
md5 '9b663df81c826cd564638cba2e6bc75b'
depends_on 'libpng'
def install
# comment out CPPFLAGS so libpng can add -I and -L flags properly
inreplace 'Makefile', 'CPPFLAGS=-W -Wall -O2 -finline-functions', '#CPPFLAGS=-W -Wall -O2 -finline-functions'
inreplace 'Makefile', '$(CPPFLAGS)', '$(CPPFLAGS) $(LDFLAGS) $(CFLAGS) -W -Wall -O2 -finline-functions'
system 'make'
bin.install 'png2ico'
man1.install 'doc/png2ico.1'
end
end