aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJonathan Chu2010-06-03 22:47:35 -0400
committerAdam Vandenberg2010-06-10 13:03:15 -0700
commitc4e1c48a84972040ccc731332ad849ec806ea914 (patch)
treea499aedd3b60cfebf8c93f09c4a27149544eab51 /Library
parent7a12e2c398d3a17e68518ad1b63a0a453f023301 (diff)
downloadhomebrew-c4e1c48a84972040ccc731332ad849ec806ea914.tar.bz2
Add png2ico
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/png2ico.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/png2ico.rb b/Library/Formula/png2ico.rb
new file mode 100644
index 000000000..91481271c
--- /dev/null
+++ b/Library/Formula/png2ico.rb
@@ -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 \ No newline at end of file