06cb65df78
Fixes Homebrew/homebrew#10559. Also added missing deps for osm2pgsql. Removed some ACLOCAL_FLAGS stuff as in theory this is not set in ENV.rb. Would like to see if it causes trouble. Should just work now.
27 lines
713 B
Ruby
27 lines
713 B
Ruby
require 'formula'
|
|
|
|
class Smpeg < Formula
|
|
head 'svn://svn.icculus.org/smpeg/trunk'
|
|
homepage 'http://icculus.org/smpeg/'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'sdl'
|
|
|
|
if MacOS.xcode_version >= "4.3"
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
end
|
|
|
|
def install
|
|
system "./autogen.sh"
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--disable-gtktest",
|
|
"--disable-sdltest"
|
|
system "make"
|
|
lib.install Dir[".libs/*.dylib"]
|
|
bin.install ".libs/plaympeg"
|
|
bin.install "./smpeg-config"
|
|
include.install Dir["*.h"]
|
|
end
|
|
end
|