New Formula: ushare 1.1a
Signed-off-by: Adam Vandenberg <flangy@gmail.com> * Also install manpage
This commit is contained in:
parent
ef3bd4db6a
commit
da735c4543
2 changed files with 33 additions and 1 deletions
|
@ -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
Formula/ushare.rb
Normal file
32
Formula/ushare.rb
Normal 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
|
Loading…
Reference in a new issue