homebrew-core/Formula/gpac.rb

50 lines
1.4 KiB
Ruby
Raw Normal View History

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
#
2011-03-10 05:11:03 +00:00
class Gpac < Formula
homepage 'http://gpac.sourceforge.net/index.php'
2012-06-08 20:01:14 +00:00
url 'http://downloads.sourceforge.net/gpac/gpac-0.5.0.tar.gz'
sha1 '48ba16272bfa153abb281ff8ed31b5dddf60cf20'
head 'https://gpac.svn.sourceforge.net/svnroot/gpac/trunk/gpac', :using => :svn
depends_on :x11
depends_on 'a52dec' => :optional
depends_on 'jpeg' => :optional
depends_on 'faad2' => :optional
depends_on 'libogg' => :optional
depends_on 'libvorbis' => :optional
depends_on 'mad' => :optional
depends_on 'sdl' => :optional
depends_on 'theora' => :optional
2012-06-08 20:01:14 +00:00
depends_on 'ffmpeg' => :optional
depends_on 'openjpeg' => :optional
def install
ENV.deparallelize
args = ["--disable-wx",
"--prefix=#{prefix}",
"--mandir=#{man}",
# gpac build system is barely functional
"--extra-cflags=-I#{MacOS.x11_prefix}/include",
# Force detection of X libs on 64-bit kernel
"--extra-ldflags=-L#{MacOS.x11_prefix}/lib"]
system "chmod +x configure"
system "./configure", *args
system "make"
system "make install"
end
end