added --universal option to exodriver formula

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Ian 2011-01-04 09:38:42 +00:00 committed by Mike McQuaid
parent 68a6e10368
commit df0654cf6b

View file

@ -10,6 +10,10 @@ class Exodriver <Formula
depends_on 'libusb'
def options
[["--universal", "Build a universal binary."]]
end
def install
cd 'liblabjackusb'
mv 'Makefile.MacOSX', 'Makefile'
@ -17,6 +21,7 @@ class Exodriver <Formula
inreplace 'Makefile' do |s|
s.change_make_var! 'DESTINATION', lib
s.change_make_var! 'HEADER_DESTINATION', include
ENV.universal_binary if ARGV.include? "--universal"
end
system "make"