From cbcaa4d247a234e440e73228fdf2d3b8592d7f2c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 16 Nov 2011 21:36:29 -0600 Subject: gpac: make lowercasing binaries an option And fix an audit warning. Signed-off-by: Jack Nagel --- Library/Formula/gpac.rb | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'Library/Formula') 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" -- cgit v1.2.3