diff options
Diffstat (limited to 'homebrew/png2ico')
-rw-r--r-- | homebrew/png2ico/.beer | 42 | ||||
-rw-r--r-- | homebrew/png2ico/.make.sh-auto | 5 | ||||
-rw-r--r-- | homebrew/png2ico/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/png2ico/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/png2ico/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/png2ico/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/png2ico/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/png2ico/patches.sh | 15 |
8 files changed, 67 insertions, 0 deletions
diff --git a/homebrew/png2ico/.beer b/homebrew/png2ico/.beer new file mode 100644 index 000000000..b9b333aed --- /dev/null +++ b/homebrew/png2ico/.beer @@ -0,0 +1,42 @@ +{ + "name": "Png2ico", + "description": "PNG to icon converter", + "url": "https://www.winterdrache.de/freeware/png2ico/data/png2ico-src-2002-12-08.tar.gz", + "mirror": null, + "homepage": "https://www.winterdrache.de/freeware/png2ico/", + "depends": [ + { + "depend": "libpng", + "build-depend": false + } + ], + "resource": [], + "conflicts": [], + "patches": [ + { + "url": null, + "data": [ + "diff --git a/png2ico.cpp b/png2ico.cpp\n", + "index 8fb87e4..9dedb97 100644\n", + "--- a/png2ico.cpp\n", + "+++ b/png2ico.cpp\n", + "@@ -34,6 +34,7 @@ Notes about transparent and inverted pixels:\n", + " #include <cstdio>\n", + " #include <vector>\n", + " #include <climits>\n", + "+#include <cstdlib>\n", + " \n", + " #if __GNUC__ > 2\n", + " #include <ext/hash_map>\n" + ] + } + ], + "install": [ + "inreplace \"Makefile\", \"g++\", \"$(CXX)\"", + "system \"make\", \"CPPFLAGS=#{ENV.cxxflags} #{ENV.cppflags} #{ENV.ldflags}\"", + "bin.install \"png2ico\"", + "man1.install \"doc/png2ico.1\"" + ], + "version": "2002", + "file": "png2ico.rb" +}
\ No newline at end of file diff --git a/homebrew/png2ico/.make.sh-auto b/homebrew/png2ico/.make.sh-auto new file mode 100644 index 000000000..16e2c275a --- /dev/null +++ b/homebrew/png2ico/.make.sh-auto @@ -0,0 +1,5 @@ +pkg:setup +inreplace "Makefile", "g++", "$(CXX)" +make CPPFLAGS=#{ENV.cxxflags} #{ENV.cppflags} #{ENV.ldflags} +bin.install "png2ico" +man1.install "doc/png2ico.1" diff --git a/homebrew/png2ico/_metadata/description b/homebrew/png2ico/_metadata/description new file mode 100644 index 000000000..e907b7ee8 --- /dev/null +++ b/homebrew/png2ico/_metadata/description @@ -0,0 +1 @@ +PNG to icon converter diff --git a/homebrew/png2ico/_metadata/homepage b/homebrew/png2ico/_metadata/homepage new file mode 100644 index 000000000..d5589b576 --- /dev/null +++ b/homebrew/png2ico/_metadata/homepage @@ -0,0 +1 @@ +https://www.winterdrache.de/freeware/png2ico/ diff --git a/homebrew/png2ico/_metadata/name b/homebrew/png2ico/_metadata/name new file mode 100644 index 000000000..1b8e764c3 --- /dev/null +++ b/homebrew/png2ico/_metadata/name @@ -0,0 +1 @@ +Png2ico diff --git a/homebrew/png2ico/_metadata/version b/homebrew/png2ico/_metadata/version new file mode 100644 index 000000000..68e8df70a --- /dev/null +++ b/homebrew/png2ico/_metadata/version @@ -0,0 +1 @@ +2002 diff --git a/homebrew/png2ico/download.sh b/homebrew/png2ico/download.sh new file mode 100755 index 000000000..6b1762473 --- /dev/null +++ b/homebrew/png2ico/download.sh @@ -0,0 +1 @@ +wget https://www.winterdrache.de/freeware/png2ico/data/png2ico-src-2002-12-08.tar.gz
\ No newline at end of file diff --git a/homebrew/png2ico/patches.sh b/homebrew/png2ico/patches.sh new file mode 100755 index 000000000..9ca06a907 --- /dev/null +++ b/homebrew/png2ico/patches.sh @@ -0,0 +1,15 @@ +echo 'Creating brew-patch.diff' +cat << EOF >> brew-patch.diff +diff --git a/png2ico.cpp b/png2ico.cpp +index 8fb87e4..9dedb97 100644 +--- a/png2ico.cpp ++++ b/png2ico.cpp +@@ -34,6 +34,7 @@ Notes about transparent and inverted pixels: + #include <cstdio> + #include <vector> + #include <climits> ++#include <cstdlib> + + #if __GNUC__ > 2 + #include <ext/hash_map> +EOF |