Skip to content
This repository
Browse code

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>
  • Loading branch information...
commit 8e3539a9aa9e1f429111f2ccda3bc398a09ff5d7 1 parent e977a74
Alexis Hildebrandt authored December 19, 2010 mikemcquaid committed December 23, 2010

Showing 1 changed file with 22 additions and 0 deletions. Show diff stats Hide diff stats

  1. 22  Library/Formula/metapixel.rb
22  Library/Formula/metapixel.rb
... ...
@@ -0,0 +1,22 @@
  1
+require 'formula'
  2
+
  3
+class Metapixel <Formula
  4
+  url 'http://www.complang.tuwien.ac.at/schani/metapixel/files/metapixel-1.0.2.tar.gz'
  5
+  homepage 'http://www.complang.tuwien.ac.at/schani/metapixel/'
  6
+  md5 'af5d77d38826756af213a08e3ada9941'
  7
+
  8
+  depends_on 'jpeg'
  9
+  depends_on 'giflib'
  10
+
  11
+  def install
  12
+    inreplace "Makefile" do |s|
  13
+      s.remove_make_var! "CC"
  14
+      s.change_make_var! "PREFIX", prefix
  15
+      s.change_make_var! "MACOS_LDOPTS", "-L#{HOMEBREW_PREFIX}/lib"
  16
+      s.change_make_var! "MACOS_CCOPTS", "-I#{HOMEBREW_PREFIX}/include"
  17
+    end
  18
+    man1.mkpath
  19
+    system "make"
  20
+    system "make install"
  21
+  end
  22
+end

0 notes on commit 8e3539a

Please sign in to comment.
Something went wrong with that request. Please try again.