Add png2ico
This commit is contained in:
parent
e202f654b7
commit
daaa87e76b
1 changed files with 18 additions and 0 deletions
18
Formula/png2ico.rb
Normal file
18
Formula/png2ico.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
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
|
Loading…
Reference in a new issue