librsync: fix build with clang

This commit is contained in:
Jack Nagel 2013-11-09 20:46:35 -06:00
parent cde5d55c66
commit 65e9535006

View file

@ -9,17 +9,13 @@ class Librsync < Formula
depends_on 'popt'
def patches
# fixes librsync doesn't correctly export inlined functions:
# http://trac.macports.org/ticket/31742
# link to upstream bug report:
# http://sourceforge.net/tracker/?func=detail&aid=3464437&group_id=56125&atid=479439
{ :p0 => 'https://trac.macports.org/export/90437/trunk/dports/net/librsync/files/patch-delta.c.diff' }
end
def install
ENV.universal_binary if build.universal?
system "./configure", "--disable-debug", "--disable-dependency-tracking",
ENV.append 'CFLAGS', '-std=gnu89'
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--enable-shared"