class Neon < Formula desc "HTTP and WebDAV client library with a C interface" homepage "http://www.webdav.org/neon/" url "http://www.webdav.org/neon/neon-0.30.1.tar.gz" sha1 "efec2a6f17d9bd2323345320e3067349ddc9cf79" bottle do cellar :any sha1 "6702382e84b8c67cb0c335c4763cd5e66074a68a" => :yosemite sha1 "44a748dd2ceb8db8aa5926c961ac7ffd9b67de8b" => :mavericks sha1 "687674d4e72151add69eac61f420de2f9ef8f276" => :mountain_lion end keg_only :provided_pre_mountain_lion option :universal depends_on "pkg-config" => :build depends_on "openssl" # 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. patch :DATA def install ENV.universal_binary if build.universal? ENV.enable_warnings system "./configure", "--disable-debug", "--prefix=#{prefix}", "--enable-shared", "--disable-static", "--disable-nls", "--with-ssl=openssl", "--with-libs=#{Formula["openssl"].opt_prefix}" system "make", "install" end end __END__ diff --git a/configure b/configure index d7702d2..5c3b5a3 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