2010-07-28 17:09:39 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
#
|
|
|
|
# Installs a relatively minimalist version of the GPAC tools. The
|
|
|
|
# most commonly used tool in this package is the MP4Box metadata
|
|
|
|
# interleaver, which has relatively few dependencies.
|
|
|
|
#
|
|
|
|
# The challenge with building everything is that Gpac depends on
|
|
|
|
# a much older version of FFMpeg and WxWidgets than the version
|
|
|
|
# that Brew installs
|
|
|
|
#
|
|
|
|
|
|
|
|
class Gpac <Formula
|
|
|
|
url 'http://downloads.sourceforge.net/gpac/gpac-0.4.5.tar.gz'
|
|
|
|
homepage 'http://gpac.sourceforge.net/index.php'
|
|
|
|
md5 '755e8c438a48ebdb13525dd491f5b0d1'
|
2011-02-12 14:04:49 +00:00
|
|
|
head 'https://gpac.svn.sourceforge.net/svnroot/gpac/trunk/gpac', :using => :svn
|
2010-07-28 17:09:39 +00:00
|
|
|
|
|
|
|
depends_on 'sdl' => :optional
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.deparallelize
|
|
|
|
system "chmod +x configure"
|
|
|
|
system "./configure", "--disable-wx", "--use-ffmpeg=no",
|
|
|
|
"--prefix=#{prefix}",
|
2010-12-26 20:22:34 +00:00
|
|
|
"--mandir=#{man}",
|
|
|
|
# Force detection of X libs on 64-bit kernel
|
|
|
|
"--extra-ldflags=-L/usr/X11/lib"
|
2010-07-28 17:09:39 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|