From da735c4543fa1bb1a59f162718541f944584875f Mon Sep 17 00:00:00 2001 From: Edward George Date: Tue, 13 Apr 2010 22:34:11 +0100 Subject: [PATCH] New Formula: ushare 1.1a Signed-off-by: Adam Vandenberg * Also install manpage --- Formula/libdlna.rb | 2 +- Formula/ushare.rb | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 Formula/ushare.rb diff --git a/Formula/libdlna.rb b/Formula/libdlna.rb index 70b02dee0d..2c4f18711c 100644 --- a/Formula/libdlna.rb +++ b/Formula/libdlna.rb @@ -3,7 +3,7 @@ require 'formula' class Libdlna + "http://svn.macports.org/repository/macports/trunk/dports/net/ushare/files/patch-configure.diff" + } + end + + def install + # Need to explicitly add gettext here. + ENV.append 'LDFLAGS', "-lintl" + + inreplace 'configure', /config.h/, 'src/config.h' + system "./configure", "--disable-debug", + "--prefix=#{prefix}", + "--enable-dlna", + "--with-libupnp-dir=#{HOMEBREW_PREFIX}", + "--with-libdlna-dir=#{HOMEBREW_PREFIX}", + "--disable-strip" + system "make install" + man1.install "src/ushare.1" + end +end