2010-07-28 00:13:26 +00:00
|
|
|
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/'
|
2012-02-10 04:36:58 +00:00
|
|
|
url 'http://www.jetico.com/linux/BCWipe-1.9-8.tar.gz'
|
2011-10-29 18:32:26 +00:00
|
|
|
md5 'b8ecc0a62856e7c752020bdfafc89c75'
|
2010-07-28 00:13:26 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-10 04:36:58 +00:00
|
|
|
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"
|
|
|
|
|
2012-02-10 04:36:58 +00:00
|
|
|
system "make", "CFLAGS=#{ENV.cflags}", "LDFLAGS=#{ENV.ldflags}", "install"
|
2010-07-28 00:13:26 +00:00
|
|
|
end
|
|
|
|
end
|