Skip to content
This repository
Browse code

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 <flangy@gmail.com>
  • Loading branch information...
commit 70f75baf80d52f5260e710a47d2832d836605afb 1 parent 73ae878
Cameron Pope authored adamv committed
1  Library/Aliases/mp4box
29  Library/Formula/gpac.rb
... ...
@@ -0,0 +1,29 @@
  1
+require 'formula'
  2
+
  3
+#
  4
+# Installs a relatively minimalist version of the GPAC tools. The
  5
+# most commonly used tool in this package is the MP4Box metadata
  6
+# interleaver, which has relatively few dependencies.
  7
+#
  8
+# The challenge with building everything is that Gpac depends on
  9
+# a much older version of FFMpeg and WxWidgets than the version
  10
+# that Brew installs
  11
+#
  12
+
  13
+class Gpac <Formula
  14
+  url 'http://downloads.sourceforge.net/gpac/gpac-0.4.5.tar.gz'
  15
+  homepage 'http://gpac.sourceforge.net/index.php'
  16
+  md5 '755e8c438a48ebdb13525dd491f5b0d1'
  17
+
  18
+  depends_on 'sdl' => :optional
  19
+
  20
+  def install
  21
+    ENV.deparallelize
  22
+    system "chmod +x configure"
  23
+    system "./configure", "--disable-wx", "--use-ffmpeg=no",
  24
+                          "--prefix=#{prefix}",
  25
+                          "--mandir=#{man}"
  26
+    system "make"
  27
+    system "make install"
  28
+  end
  29
+end

0 notes on commit 70f75ba

Please sign in to comment.
Something went wrong with that request. Please try again.