blob: 8ee17f4fbb2c8ed09a42660be6b98c5b713d5794 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
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
homepage 'http://gpac.wp.mines-telecom.fr/'
url 'http://downloads.sourceforge.net/gpac/gpac-0.5.0.tar.gz'
sha1 '48ba16272bfa153abb281ff8ed31b5dddf60cf20'
head 'https://gpac.svn.sourceforge.net/svnroot/gpac/trunk/gpac'
depends_on :x11 => MacOS::X11.installed? ? :recommended : :optional
depends_on 'pkg-config' => :build
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
depends_on 'ffmpeg' => :optional
depends_on 'openjpeg' => :optional
def install
ENV.deparallelize
args = ["--disable-wx",
"--prefix=#{prefix}",
"--mandir=#{man}"]
if build.with? 'x11'
# gpac build system is barely functional
args << "--extra-cflags=-I#{MacOS::X11.include}"
# Force detection of X libs on 64-bit kernel
args << "--extra-ldflags=-L#{MacOS::X11.lib}"
end
chmod 0700, "configure"
system "./configure", *args
system "make"
system "make install"
end
end
|