homebrew-core/Formula/bcwipe.rb

20 lines
618 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Bcwipe < Formula
2011-10-29 18:32:26 +00:00
homepage 'http://www.jetico.com/linux/bcwipe-help/'
url 'http://www.jetico.com/linux/BCWipe-1.9-8.tar.gz'
2011-10-29 18:32:26 +00:00
md5 'b8ecc0a62856e7c752020bdfafc89c75'
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
2011-10-29 18:32:26 +00:00
# This does not get detected properly.
# Should be reported upstream!
inreplace "config.h", "/* #undef HAVE_GETTIMEOFDAY */", "#define HAVE_GETTIMEOFDAY 1"
system "make", "CFLAGS=#{ENV.cflags}", "LDFLAGS=#{ENV.ldflags}", "install"
end
end