From e69845dd783f024b0f03ae180939aab46b9c1062 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 28 Sep 2014 14:20:00 -0500 Subject: Move ushare and libdlna to the boneyard These projects are currently unmaintained, and not compatible with newer versions of ffmpeg. --- Library/Formula/libdlna.rb | 66 -------------------------------------- Library/Formula/ushare.rb | 49 ---------------------------- Library/Homebrew/tap_migrations.rb | 2 ++ 3 files changed, 2 insertions(+), 115 deletions(-) delete mode 100644 Library/Formula/libdlna.rb delete mode 100644 Library/Formula/ushare.rb (limited to 'Library') diff --git a/Library/Formula/libdlna.rb b/Library/Formula/libdlna.rb deleted file mode 100644 index e83ea48b5..000000000 --- a/Library/Formula/libdlna.rb +++ /dev/null @@ -1,66 +0,0 @@ -require 'formula' - -class Libdlna < Formula - homepage 'http://libdlna.geexbox.org/' - url 'http://libdlna.geexbox.org/releases/libdlna-0.2.4.tar.bz2' - sha1 '5e86f4443eeb9e7194c808301efeb78611a9e8b3' - - bottle do - cellar :any - sha1 "349eeaa92071b050cc67926feef8e7f702b803cf" => :mavericks - sha1 "39359e65e38a37808f6472554b1fc989c1be75fd" => :mountain_lion - sha1 "622e348eff6fdced8617194c0d0f20a05058cf00" => :lion - end - - depends_on 'ffmpeg' - - # Use dylib instead of soname - patch :DATA - - def install - system "./configure", "--disable-debug", - "--prefix=#{prefix}" - system "make install" - end -end - -__END__ -diff --git a/src/Makefile b/src/Makefile -index 3e6f704..9701878 100644 ---- a/src/Makefile -+++ b/src/Makefile -@@ -21,10 +21,10 @@ ifeq ($(DEVELOPER),yes) - endif - - LIBNAME = libdlna --LIBNAME_SHARED = ${LIBNAME}.so -+LIBNAME_SHARED = ${LIBNAME}.dylib - LIBNAME_STATIC = ${LIBNAME}.a --LIBNAME_VERSION = $(LIBNAME_SHARED).$(VERSION) --LIBNAME_MAJOR = $(LIBNAME_SHARED).$(shell echo $(VERSION) | cut -f1 -d.) -+LIBNAME_VERSION = $(LIBNAME).$(VERSION).dylib -+LIBNAME_MAJOR = $(LIBNAME).$(shell echo $(VERSION) | cut -f1 -d.).dylib - - SRCS = profiles.c \ - containers.c \ -@@ -97,8 +97,9 @@ lib_shared_info_post: - @echo "#############################################" - - lib_shared: lib_shared_info_pre $(LOBJS) lib_shared_info_post -- $(CC) -shared -Wl,-soname,$(LIBNAME_MAJOR) $(LOBJS) \ -- $(LDFLAGS) $(EXTRALIBS) -o $(LIBNAME_VERSION) -+ $(CC) -dynamiclib $(LOBJS) $(LDFLAGS) $(EXTRALIBS) -o $(LIBNAME_VERSION) \ -+ -Wl,-install_name,$(PREFIX)/lib/$(LIBNAME_VERSION) \ -+ -Wl,-compatibility_version,$(VERSION) -Wl,-current_version,$(VERSION) - $(LN) -sf $(LIBNAME_VERSION) $(LIBNAME_MAJOR) - $(LN) -sf $(LIBNAME_MAJOR) $(LIBNAME_SHARED) - -@@ -111,7 +112,7 @@ tags: - ( find -name '*.[chS]' -print ) | xargs ctags -a; - - clean: -- -$(RM) -f *.o *.lo *.a *.so* -+ -$(RM) -f *.o *.lo *.a *.dylib - -$(RM) -f .depend - - install_static: lib_static diff --git a/Library/Formula/ushare.rb b/Library/Formula/ushare.rb deleted file mode 100644 index b4033c137..000000000 --- a/Library/Formula/ushare.rb +++ /dev/null @@ -1,49 +0,0 @@ -require 'formula' - -class Ushare < Formula - homepage 'http://ushare.geexbox.org/' - url 'http://ushare.geexbox.org/releases/ushare-1.1a.tar.bz2' - sha1 '1539e83cde5d80f433d262d971f5fe78486c9375' - - depends_on 'pkg-config' => :build - depends_on 'gettext' - depends_on 'libupnp' - depends_on 'libdlna' - - # Fix compilation with newer libupnp - patch :DATA - - def install - ENV.append 'CFLAGS', '-std=gnu89' - - # Need to explicitly add intl and gettext here. - gettext = Formula["gettext"] - ENV.append 'CFLAGS', "-I#{gettext.include}" - 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 - -__END__ -diff --git a/src/ushare.c b/src/ushare.c -index 717e862..8e51bf7 100644 ---- a/src/ushare.c -+++ b/src/ushare.c -@@ -188,7 +188,7 @@ handle_action_request (struct Upnp_Action_Request *request) - if (strcmp (request->DevUDN + 5, ut->udn)) - return; - -- ip = request->CtrlPtIPAddr.s_addr; -+ ip = ((struct sockaddr *) &request->CtrlPtIPAddr)->sa_data; - ip = ntohl (ip); - sprintf (val, "%d.%d.%d.%d", - (ip >> 24) & 0xFF, (ip >> 16) & 0xFF, (ip >> 8) & 0xFF, ip & 0xFF); diff --git a/Library/Homebrew/tap_migrations.rb b/Library/Homebrew/tap_migrations.rb index c02ceb7a3..b5ceb3abe 100644 --- a/Library/Homebrew/tap_migrations.rb +++ b/Library/Homebrew/tap_migrations.rb @@ -35,6 +35,7 @@ TAP_MIGRATIONS = { "justniffer" => "homebrew/boneyard", "kerl" => "homebrew/headonly", "kismet" => "homebrew/boneyard", + "libdlna" => "homebrew/boneyard", "libgtextutils" => "homebrew/science", "librets" => "homebrew/boneyard", "libspotify" => "homebrew/binary", @@ -64,5 +65,6 @@ TAP_MIGRATIONS = { "texmacs" => "homebrew/boneyard", "tmap" => "homebrew/boneyard", "urweb" => "homebrew/boneyard", + "ushare" => "homebrew/boneyard", "wkhtmltopdf" => "homebrew/boneyard", } -- cgit v1.2.3