ushare: fails with clang
parent
d1ea0ba13b
commit
837a363b70
|
@ -3,8 +3,9 @@ require 'formula'
|
|||
class Ushare < Formula
|
||||
homepage 'http://ushare.geexbox.org/'
|
||||
url 'http://ushare.geexbox.org/releases/ushare-1.1a.tar.bz2'
|
||||
md5 '5bbcdbf1ff85a9710fa3d4e82ccaa251'
|
||||
sha1 '1539e83cde5d80f433d262d971f5fe78486c9375'
|
||||
|
||||
depends_on 'pkg-config' => :build
|
||||
depends_on 'gettext'
|
||||
depends_on 'libupnp'
|
||||
depends_on 'libdlna'
|
||||
|
@ -16,11 +17,16 @@ class Ushare < Formula
|
|||
}
|
||||
end
|
||||
|
||||
fails_with :clang do
|
||||
cause "clang removes inline functions, causing a link error:\n" +
|
||||
"\"_display_headers\", referenced from: _parse_command_line in cfgparser.o"
|
||||
end
|
||||
|
||||
def install
|
||||
# Need to explicitly add intl and gettext here.
|
||||
gettext = Formula.factory("gettext")
|
||||
ENV.append 'LDFLAGS', "-lintl"
|
||||
ENV.append 'CFLAGS', "-I#{gettext.include}"
|
||||
ENV.append 'LDFLAGS', "-lintl"
|
||||
|
||||
inreplace 'configure', /config.h/, 'src/config.h'
|
||||
system "./configure", "--disable-debug",
|
||||
|
|
Loading…
Reference in New Issue