From 150cac8cb0482b22b3769014e2c9cc356342c9b0 Mon Sep 17 00:00:00 2001 From: Cameron Pope Date: Wed, 28 Jul 2010 11:09:39 -0600 Subject: [PATCH] Create formula for gpac project, including MP4Box GPAC (Gpac Project for Advanced Content) is a suite of tools for manipulating mpeg-4/h.264 video files. The most common need for this package is for the MP4Box application that will interleave metadata in a .mp4 file to support fast start and streaming for h.264 video. Signed-off-by: Adam Vandenberg --- Aliases/mp4box | 1 + Formula/gpac.rb | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 120000 Aliases/mp4box create mode 100644 Formula/gpac.rb diff --git a/Aliases/mp4box b/Aliases/mp4box new file mode 120000 index 000000000000..4f0ac84c16ef --- /dev/null +++ b/Aliases/mp4box @@ -0,0 +1 @@ +../Formula/gpac.rb \ No newline at end of file diff --git a/Formula/gpac.rb b/Formula/gpac.rb new file mode 100644 index 000000000000..91820c4354e9 --- /dev/null +++ b/Formula/gpac.rb @@ -0,0 +1,29 @@ +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 :optional + + def install + ENV.deparallelize + system "chmod +x configure" + system "./configure", "--disable-wx", "--use-ffmpeg=no", + "--prefix=#{prefix}", + "--mandir=#{man}" + system "make" + system "make install" + end +end