libmicrohttpd 0.9.52
Closes #6047. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
a7ef703417
commit
a3c234ccef
1 changed files with 10 additions and 3 deletions
|
@ -1,9 +1,9 @@
|
|||
class Libmicrohttpd < Formula
|
||||
desc "Light HTTP/1.1 server library"
|
||||
homepage "https://www.gnu.org/software/libmicrohttpd/"
|
||||
url "https://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-0.9.51.tar.gz"
|
||||
mirror "https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.51.tar.gz"
|
||||
sha256 "3000bb0ba219061f2ea60251b8ea3d5f694e8c6ce1706bbff57e7e24867a23c7"
|
||||
url "https://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-0.9.52.tar.gz"
|
||||
mirror "https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.52.tar.gz"
|
||||
sha256 "54797f6e763d417627f89f60e4ae0a431dab0523f92f83def23ea02d0defafea"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
|
@ -23,6 +23,13 @@ class Libmicrohttpd < Formula
|
|||
|
||||
def install
|
||||
ENV.universal_binary if build.universal?
|
||||
|
||||
# Remove for > 0.9.52
|
||||
# Equivalent to upstream commit from 11 Nov 2016 https://gnunet.org/git/libmicrohttpd.git/commit/?id=52e995c0a7741967ab68883a63a8c7e70a4589ee
|
||||
# "mhd_itc.c: fixed typo preventing build on Solaris and other systems"
|
||||
inreplace "src/microhttpd/mhd_itc.c", "(0 != fcntl (pip.fd[i],",
|
||||
"(0 != fcntl (itc.fd[i],"
|
||||
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--disable-silent-rules",
|
||||
"--prefix=#{prefix}"
|
||||
|
|
Loading…
Reference in a new issue