aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2011-11-16 21:36:29 -0600
committerJack Nagel2011-11-16 21:36:29 -0600
commitcbcaa4d247a234e440e73228fdf2d3b8592d7f2c (patch)
treecf335af2ed518ff7296f2dcec6a4fe908bcfff62 /Library/Formula
parent8af6bdf07b673aae62db6a231bdd1702de1c5779 (diff)
downloadhomebrew-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.rb15
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"