homebrew-core/Formula/metapixel.rb
Alexis Hildebrandt 71f5985b67 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>
2010-12-23 22:22:01 +00:00

22 lines
616 B
Ruby

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