aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlexis Hildebrandt2010-12-19 10:31:18 +0100
committerMike McQuaid2010-12-23 22:22:01 +0000
commit8e3539a9aa9e1f429111f2ccda3bc398a09ff5d7 (patch)
treef20c0a060b84c050a616889e90395128ffbace2b /Library
parente977a74e42bcdd1c0444e354be8cc57d6b65cfbb (diff)
downloadhomebrew-8e3539a9aa9e1f429111f2ccda3bc398a09ff5d7.tar.bz2
Metapixel 1.0.2
A program for generating photomosaics. It can generate classical photomosaics, in which the source image is viewed a matrix of equally sized rectangles for each of which a matching image is substitued, as well as collage-style photomosaics, in which rectangular part of the source image at arbitrary positions (i.e. not aligned to a matrix) ar substituted by matching images. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/metapixel.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/metapixel.rb b/Library/Formula/metapixel.rb
new file mode 100644
index 000000000..cd3454a92
--- /dev/null
+++ b/Library/Formula/metapixel.rb
@@ -0,0 +1,22 @@
+require 'formula'
+
+class Metapixel <Formula
+ url 'http://www.complang.tuwien.ac.at/schani/metapixel/files/metapixel-1.0.2.tar.gz'
+ homepage 'http://www.complang.tuwien.ac.at/schani/metapixel/'
+ md5 'af5d77d38826756af213a08e3ada9941'
+
+ depends_on 'jpeg'
+ depends_on 'giflib'
+
+ def install
+ inreplace "Makefile" do |s|
+ s.remove_make_var! "CC"
+ s.change_make_var! "PREFIX", prefix
+ s.change_make_var! "MACOS_LDOPTS", "-L#{HOMEBREW_PREFIX}/lib"
+ s.change_make_var! "MACOS_CCOPTS", "-I#{HOMEBREW_PREFIX}/include"
+ end
+ man1.mkpath
+ system "make"
+ system "make install"
+ end
+end