2011-10-17 09:21:26 +00:00
|
|
|
class Fcgi < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Protocol for interfacing interactive programs with a web server"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://www.fastcgi.com/"
|
|
|
|
url "http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz"
|
|
|
|
sha256 "66fc45c6b36a21bf2fbbb68e90f780cc21a9da1fffbae75e76d2b4402d3f05b9"
|
2011-10-17 09:21:26 +00:00
|
|
|
|
2012-08-10 22:32:14 +00:00
|
|
|
# Fixes "dyld: Symbol not found: _environ"
|
|
|
|
# Affects programs linking this library. Reported at
|
|
|
|
# http://mailman.fastcgi.com/pipermail/fastcgi-developers/2009-January/000152.html
|
|
|
|
# https://trac.macports.org/browser/trunk/dports/www/fcgi/files/patch-libfcgi-fcgi_stdio.c.diff
|
2014-03-18 21:51:41 +00:00
|
|
|
patch :DATA
|
2012-06-14 21:32:04 +00:00
|
|
|
|
2011-10-17 09:21:26 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2011-10-17 09:21:26 +00:00
|
|
|
end
|
|
|
|
end
|
2012-06-14 21:32:04 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
--- a/libfcgi/fcgi_stdio.c
|
|
|
|
+++ b/libfcgi/fcgi_stdio.c
|
|
|
|
@@ -40,7 +40,12 @@
|
|
|
|
|
|
|
|
#ifndef _WIN32
|
|
|
|
|
|
|
|
+#if defined(__APPLE__)
|
|
|
|
+#include <crt_externs.h>
|
|
|
|
+#define environ (*_NSGetEnviron())
|
|
|
|
+#else
|
|
|
|
extern char **environ;
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_FILENO_PROTO
|
|
|
|
#include <stdio.h>
|