2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-08-08 12:52:48 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Neon < Formula
|
2013-01-29 03:49:10 +00:00
|
|
|
homepage 'http://www.webdav.org/neon/'
|
2013-10-01 14:43:33 +00:00
|
|
|
url 'http://www.webdav.org/neon/neon-0.30.0.tar.gz'
|
|
|
|
sha1 '9e6297945226f90d66258b7ee05f757ff5cea10a'
|
2009-08-08 12:52:48 +00:00
|
|
|
|
2014-04-15 00:09:48 +00:00
|
|
|
keg_only :provided_by_osx
|
2009-11-04 15:50:12 +00:00
|
|
|
|
2012-08-12 17:57:57 +00:00
|
|
|
option :universal
|
2013-07-25 23:30:36 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
2014-04-22 21:10:55 +00:00
|
|
|
depends_on 'openssl'
|
2010-05-11 03:37:12 +00:00
|
|
|
|
2013-10-16 06:52:00 +00:00
|
|
|
# Configure switch unconditionally adds the -no-cpp-precomp switch
|
|
|
|
# to CPPFLAGS, which is an obsolete Apple-only switch that breaks
|
|
|
|
# builds under non-Apple compilers and which may or may not do anything
|
|
|
|
# anymore.
|
2014-03-20 01:21:15 +00:00
|
|
|
patch :DATA
|
2013-10-16 06:52:00 +00:00
|
|
|
|
2009-08-08 12:52:48 +00:00
|
|
|
def install
|
2012-08-12 17:57:57 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2013-01-14 10:38:11 +00:00
|
|
|
ENV.enable_warnings
|
2014-04-22 21:10:55 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--enable-shared",
|
|
|
|
"--disable-static",
|
|
|
|
"--disable-nls",
|
|
|
|
"--with-ssl=openssl",
|
|
|
|
"--with-libs=#{Formula["openssl"].opt_prefix}"
|
2009-08-08 12:52:48 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2013-10-16 06:52:00 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/configure b/configure
|
|
|
|
index b0a7908..a0f2ceb 100755
|
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
|
|
|
@@ -4224,7 +4224,6 @@ fi
|
|
|
|
$as_echo "$ne_cv_os_uname" >&6; }
|
|
|
|
|
|
|
|
if test "$ne_cv_os_uname" = "Darwin"; then
|
|
|
|
- CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
|
|
|
|
LDFLAGS="$LDFLAGS -flat_namespace"
|
|
|
|
# poll has various issues in various Darwin releases
|
|
|
|
if test x${ac_cv_func_poll+set} != xset; then
|