New Formula: ushare 1.1a

Signed-off-by: Adam Vandenberg <flangy@gmail.com>

* Also install manpage
This commit is contained in:
Edward George authored and Adam Vandenberg committed 2010-04-18 10:14:55 -07:00
1 parent 11c121a477
commit 153cfb2d28
2 files changed
+33 -1

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ require 'formula'
class Libdlna <Formula
url 'http://libdlna.geexbox.org/releases/libdlna-0.2.3.tar.bz2'
homepage 'http://libdlna.geexbox.org/'
md5 ''
md5 '2c974f95b711e5fd07f78fc4ebfcca66'
def patches
# fixes ffmpeg locations
+32
View File
@@ -0,0 +1,32 @@
require 'formula'
class Ushare <Formula
url 'http://ushare.geexbox.org/releases/ushare-1.1a.tar.bz2'
homepage 'http://ushare.geexbox.org/'
md5 '5bbcdbf1ff85a9710fa3d4e82ccaa251'
depends_on 'gettext'
depends_on 'libupnp'
depends_on 'libdlna'
def patches
{ :p0 =>
"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