ushare: fails with clang

master
Adam Vandenberg 2012-06-12 09:55:32 -07:00
parent d1ea0ba13b
commit 837a363b70
1 changed files with 11 additions and 5 deletions

View File

@ -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",