forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
1de0faf
commit 150cac8
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../Formula/gpac.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |