diff options
| author | Jack Nagel | 2011-11-16 21:36:29 -0600 |
|---|---|---|
| committer | Jack Nagel | 2011-11-16 21:36:29 -0600 |
| commit | cbcaa4d247a234e440e73228fdf2d3b8592d7f2c (patch) | |
| tree | cf335af2ed518ff7296f2dcec6a4fe908bcfff62 /Library/Formula | |
| parent | 8af6bdf07b673aae62db6a231bdd1702de1c5779 (diff) | |
| download | homebrew-cbcaa4d247a234e440e73228fdf2d3b8592d7f2c.tar.bz2 | |
gpac: make lowercasing binaries an option
And fix an audit warning.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gpac.rb | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Library/Formula/gpac.rb b/Library/Formula/gpac.rb index cea9fb4dc..abe757f33 100644 --- a/Library/Formula/gpac.rb +++ b/Library/Formula/gpac.rb @@ -24,10 +24,14 @@ class Gpac < Formula depends_on 'mad' => :optional depends_on 'sdl' => :optional depends_on 'theora' => :optional - + depends_on 'ffmpeg' => :optional if ARGV.build_head? depends_on 'openjpeg' => :optional if ARGV.build_head? + def options + [['--with-lowercase', 'Install binaries with lowercase names']] + end + def install ENV.deparallelize args = ["--disable-wx", @@ -40,13 +44,16 @@ class Gpac < Formula system "chmod +x configure" system "./configure", *args - + system "chmod", "+rw", "Makefile" ["MP4Box","MP4Client"].each do |name| filename = "applications/#{name}/Makefile" system "chmod", "+rw", filename - inreplace filename, name, name.downcase - inreplace "Makefile", name, name.downcase + + if ARGV.include? '--with-lowercase' + inreplace filename, name, name.downcase + inreplace "Makefile", name, name.downcase + end end system "make" |
