aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-06-12 09:55:21 -0700
committerAdam Vandenberg2012-06-12 20:19:18 -0700
commit7e9b9ddf7bda8d407c9c0c5f74b14af592748e4c (patch)
treec6bfe532039389fe1d4cf2787d59089d90332293 /Library
parent919882fcc9ecbe904d71a56199faf0f1994b8262 (diff)
downloadhomebrew-7e9b9ddf7bda8d407c9c0c5f74b14af592748e4c.tar.bz2
libdlna 0.2.4
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/libdlna.rb50
1 files changed, 40 insertions, 10 deletions
diff --git a/Library/Formula/libdlna.rb b/Library/Formula/libdlna.rb
index d6ea7eee6..56e212162 100644
--- a/Library/Formula/libdlna.rb
+++ b/Library/Formula/libdlna.rb
@@ -1,24 +1,54 @@
require 'formula'
class Libdlna < Formula
- url 'http://libdlna.geexbox.org/releases/libdlna-0.2.3.tar.bz2'
homepage 'http://libdlna.geexbox.org/'
- md5 '2c974f95b711e5fd07f78fc4ebfcca66'
+ url 'http://libdlna.geexbox.org/releases/libdlna-0.2.4.tar.bz2'
+ sha1 '5e86f4443eeb9e7194c808301efeb78611a9e8b3'
depends_on 'ffmpeg'
- # Patches exist in the gentoo repository, but since the project isn't under active
- # development they may never get pulled officially.
- # fixes ffmpeg locations & missing symbols for newer versions of libavformat
+ # Use dylib instead of soname
def patches
- [
- "https://gist.github.com/raw/356431/fbddfeee80d9224f6c67886b119fbd813f3c0ffa/libdlna.patch",
- "https://gist.github.com/raw/1434147/293ec631536bc34a6e2dd49bb0f30c86f02b1107/libdlna023_fix_symbols.patch"
- ]
+ DATA
end
def install
- system "./configure", "--prefix=#{prefix}", "--disable-debug"
+ system "./configure", "--disable-debug",
+ "--prefix=#{prefix}"
system "make install"
end
end
+
+__END__
+diff --git a/src/Makefile b/src/Makefile
+index 3e6f704..c31f4e5 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -21,7 +21,7 @@ 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.)
+@@ -97,8 +97,7 @@ 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 -install_name $(PREFIX)/lib/$(LIBNAME_SHARED) $(LOBJS) $(LDFLAGS) $(EXTRALIBS) -o $(LIBNAME_VERSION) -compatibility_version $(VERSION) -current_version $(VERSION)
+ $(LN) -sf $(LIBNAME_VERSION) $(LIBNAME_MAJOR)
+ $(LN) -sf $(LIBNAME_MAJOR) $(LIBNAME_SHARED)
+
+@@ -111,7 +110,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