2011-08-20 13:02:20 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Dc3dd < Formula
|
2011-08-21 11:35:26 +00:00
|
|
|
homepage 'http://sourceforge.net/projects/dc3dd/'
|
2012-03-15 00:57:44 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/dc3dd/dc3dd/7.1.0/dc3dd-7.1.614.tar.gz'
|
2012-07-07 18:08:22 +00:00
|
|
|
sha1 '808abb6472861a88efd94fd22ffea7021007d769'
|
|
|
|
|
|
|
|
depends_on :automake
|
2011-08-20 13:02:20 +00:00
|
|
|
|
2012-04-28 22:16:35 +00:00
|
|
|
# Remove explicit dependency on automake 1.10.1
|
|
|
|
def patches; DATA; end
|
2011-08-20 13:02:20 +00:00
|
|
|
|
|
|
|
def install
|
2013-07-30 01:43:21 +00:00
|
|
|
args = %W[--disable-debug
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--infodir=#{info}]
|
|
|
|
|
|
|
|
# Check for stpncpy is broken, and the replacement fails to compile
|
|
|
|
# on Lion and newer; see https://github.com/mxcl/homebrew/issues/21510
|
|
|
|
args << "gl_cv_func_stpncpy=yes" if MacOS.version >= :lion
|
|
|
|
system "./configure", *args
|
2011-08-20 13:02:20 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
2012-11-11 19:20:09 +00:00
|
|
|
prefix.install %w[Options_Reference.txt Sample_Commands.txt]
|
2011-08-20 13:02:20 +00:00
|
|
|
end
|
|
|
|
end
|
2012-04-28 22:16:35 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
|
|
index 5d1870a..b32639c 100644
|
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
|
|
|
@@ -32,7 +32,7 @@ AC_CONFIG_SRCDIR(src/dc3dd.c)
|
|
|
|
AC_CONFIG_AUX_DIR(build-aux)
|
|
|
|
AC_CONFIG_HEADERS([lib/config.h:lib/config.hin])
|
|
|
|
|
|
|
|
-AM_INIT_AUTOMAKE([1.10.1])
|
|
|
|
+AM_INIT_AUTOMAKE
|
|
|
|
|
|
|
|
AC_PROG_CC_STDC
|
|
|
|
AM_PROG_CC_C_O
|