2010-04-13 21:32:46 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libdlna < Formula
|
2010-04-13 21:32:46 +00:00
|
|
|
homepage 'http://libdlna.geexbox.org/'
|
2012-06-12 16:55:21 +00:00
|
|
|
url 'http://libdlna.geexbox.org/releases/libdlna-0.2.4.tar.bz2'
|
|
|
|
sha1 '5e86f4443eeb9e7194c808301efeb78611a9e8b3'
|
2010-04-13 21:32:46 +00:00
|
|
|
|
2010-05-28 03:03:25 +00:00
|
|
|
depends_on 'ffmpeg'
|
|
|
|
|
2012-06-12 16:55:21 +00:00
|
|
|
# Use dylib instead of soname
|
2010-04-13 21:32:46 +00:00
|
|
|
def patches
|
2012-06-12 16:55:21 +00:00
|
|
|
DATA
|
2010-04-13 21:32:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2012-06-12 16:55:21 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--prefix=#{prefix}"
|
2010-04-13 21:32:46 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2012-06-12 16:55:21 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/src/Makefile b/src/Makefile
|
2013-08-21 03:59:19 +00:00
|
|
|
index 3e6f704..9701878 100644
|
2012-06-12 16:55:21 +00:00
|
|
|
--- a/src/Makefile
|
|
|
|
+++ b/src/Makefile
|
2013-08-21 03:59:19 +00:00
|
|
|
@@ -21,10 +21,10 @@ ifeq ($(DEVELOPER),yes)
|
2012-06-12 16:55:21 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
LIBNAME = libdlna
|
|
|
|
-LIBNAME_SHARED = ${LIBNAME}.so
|
|
|
|
+LIBNAME_SHARED = ${LIBNAME}.dylib
|
|
|
|
LIBNAME_STATIC = ${LIBNAME}.a
|
2013-08-21 03:59:19 +00:00
|
|
|
-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:
|
2012-06-12 16:55:21 +00:00
|
|
|
@echo "#############################################"
|
|
|
|
|
|
|
|
lib_shared: lib_shared_info_pre $(LOBJS) lib_shared_info_post
|
|
|
|
- $(CC) -shared -Wl,-soname,$(LIBNAME_MAJOR) $(LOBJS) \
|
|
|
|
- $(LDFLAGS) $(EXTRALIBS) -o $(LIBNAME_VERSION)
|
2013-08-21 03:59:19 +00:00
|
|
|
+ $(CC) -dynamiclib $(LOBJS) $(LDFLAGS) $(EXTRALIBS) -o $(LIBNAME_VERSION) \
|
|
|
|
+ -Wl,-install_name,$(PREFIX)/lib/$(LIBNAME_VERSION) \
|
|
|
|
+ -Wl,-compatibility_version,$(VERSION) -Wl,-current_version,$(VERSION)
|
2012-06-12 16:55:21 +00:00
|
|
|
$(LN) -sf $(LIBNAME_VERSION) $(LIBNAME_MAJOR)
|
|
|
|
$(LN) -sf $(LIBNAME_MAJOR) $(LIBNAME_SHARED)
|
|
|
|
|
2013-08-21 03:59:19 +00:00
|
|
|
@@ -111,7 +112,7 @@ tags:
|
2012-06-12 16:55:21 +00:00
|
|
|
( find -name '*.[chS]' -print ) | xargs ctags -a;
|
|
|
|
|
|
|
|
clean:
|
|
|
|
- -$(RM) -f *.o *.lo *.a *.so*
|
2013-08-21 03:59:19 +00:00
|
|
|
+ -$(RM) -f *.o *.lo *.a *.dylib
|
2012-06-12 16:55:21 +00:00
|
|
|
-$(RM) -f .depend
|
|
|
|
|
|
|
|
install_static: lib_static
|