2010-01-17 03:26:30 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libowfat < Formula
|
2010-01-17 03:26:30 +00:00
|
|
|
url 'http://dl.fefe.de/libowfat-0.28.tar.bz2'
|
|
|
|
md5 '6bbee9a86506419657d87123b7a6f2c1'
|
|
|
|
homepage 'http://www.fefe.de/libowfat/'
|
|
|
|
end
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Opentracker < Formula
|
2010-04-10 13:31:52 +00:00
|
|
|
head 'cvs://:pserver:anoncvs:@cvs.erdgeist.org:/home/cvsroot:opentracker'
|
2010-01-17 03:26:30 +00:00
|
|
|
homepage 'http://erdgeist.org/arts/software/opentracker/'
|
|
|
|
|
|
|
|
def install
|
|
|
|
# First libowfat must be compiled and installed where opentracker is expecting it
|
|
|
|
libowfat_include = Pathname.new(pwd) + 'libowfat'
|
|
|
|
Libowfat.new.brew do
|
2012-05-15 18:31:21 +00:00
|
|
|
system "make", "install", "INCLUDEDIR=#{libowfat_include}", "LIBDIR=#{libowfat_include}", "MAN3DIR=."
|
2010-01-17 03:26:30 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
# Tell opentracker that libowfat headers are located in the same directory as itself
|
|
|
|
ENV['PREFIX'] = '.'
|
|
|
|
|
|
|
|
system "make", "opentracker"
|
|
|
|
bin.install "opentracker"
|
|
|
|
end
|
|
|
|
end
|