blob: 0af94ac1db69d09a9efdcfb2ad7da1c649b5175c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  | 
require "formula"
class Xmp < Formula
  homepage "http://xmp.sourceforge.net"
  url "https://downloads.sourceforge.net/project/xmp/xmp/4.0.9/xmp-4.0.9.tar.gz"
  sha1 "f22871d5e5be1a0b08d11a0b3bd28f6723a69ee3"
  bottle do
    sha1 "f9b3c62d4952cd0ede1c131dcdf973903316d87d" => :mavericks
    sha1 "6adf877d9f4cd3c1b96da42f806724a9801ca311" => :mountain_lion
    sha1 "4ad77815e84f8251d2c06fc72fa5ecfbf0447b19" => :lion
  end
  head do
    url "git://git.code.sf.net/p/xmp/xmp-cli"
    depends_on "autoconf" => :build
    depends_on "automake" => :build
    depends_on "libtool"  => :build
  end
  depends_on "pkg-config" => :build
  depends_on "libxmp"
  def install
    if build.head?
      system "glibtoolize"
      system "aclocal"
      system "autoconf"
      system "automake", "--add-missing"
    end
    system "./configure", "--prefix=#{prefix}"
    system "make install"
  end
end
  |