aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorCameron Pope2010-07-28 11:09:39 -0600
committerAdam Vandenberg2010-08-12 07:42:04 -0700
commit70f75baf80d52f5260e710a47d2832d836605afb (patch)
treee09d9e6bbe2232f941d5f41da10f509857a0b129 /Library/Formula
parent73ae87827037441b563014965cec0c7ca946c83d (diff)
downloadhomebrew-70f75baf80d52f5260e710a47d2832d836605afb.tar.bz2
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>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gpac.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/gpac.rb b/Library/Formula/gpac.rb
new file mode 100644
index 000000000..91820c435
--- /dev/null
+++ b/Library/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 <Formula
+ url 'http://downloads.sourceforge.net/gpac/gpac-0.4.5.tar.gz'
+ homepage 'http://gpac.sourceforge.net/index.php'
+ md5 '755e8c438a48ebdb13525dd491f5b0d1'
+
+ depends_on 'sdl' => :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