the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: libdlna0
Version: 0.2.3
Revision: 4
Source: http://libdlna.geexbox.org/releases/libdlna-%v.tar.bz2
Source-MD5: 2c974f95b711e5fd07f78fc4ebfcca66
PatchFile: %n.patch
PatchFile-MD5: db420d84209fc379183818b2c48f92a8
PatchScript: <<
sed 's,@VERSION@,%v,g' < %{PatchFile} | patch -p1
# ffmpeg's component libraries have changed layout
perl -pi -e 's,ffmpeg/avformat.h,libavformat/avformat.h,g' configure src/*.[ch]
perl -pi -e 's,ffmpeg/avcodec.h,libavcodec/avcodec.h,g' configure src/*.[ch]
<<
UseMaxBuildJobs: false
SetCFLAGS: -I%b/src -I%p/include
BuildDependsOnly: true
BuildDepends: <<
fink (>= 0.24.12-1),
ffmpeg-dev (>= 0.4.20071217-5),
libavcodec52-dev,
libavformat52-dev,
libavutil50-dev
<<
Depends: %N-shlibs (= %v-%r)
InstallScript: <<
make -j1 install DESTDIR="%d"
install_name_tool -id %p/lib/libdlna.0.dylib %i/lib/libdlna.%v.dylib
<<
SplitOff: <<
Package: %N-shlibs
Description: DLNA shared libraries
Depends: <<
libavcodec52-shlibs,
libavformat52-shlibs,
libavutil50-shlibs
<<
DocFiles: COPYING
Files: <<
lib/libdlna.0*.dylib
<<
Shlibs: %p/lib/libdlna.0.dylib 1.0.0 %n (>= 0.2.3-2)
<<
DocFiles: AUTHORS COPYING ChangeLog README
DescPort: <<
Fix .h locations for more modern versions of the ffmpeg suite.
./configure's introspection of VERSION fails if there is
anything wrong with the ffmpeg libs...that's silly and happens
sometimes, so pass explicitly for safety sake.
<<
Description: DLNA library
DescDetail: <<
libdlna aims at being the reference open-source implementation of DLNA
(Digital Living Network Alliance) standards. Its primary goal is to
provide DLNA support to uShare, an embedded DLNA & UPnP A/V Media
Server, but it will be used to build both DLNA servers and players in
the long term.
<<
License: LGPL
Homepage: http://libdlna.geexbox.org/
Maintainer: Benjamin Reed
diff -Nurd libdlna-0.2.3/Makefile libdlna-0.2.3-new/Makefile
--- libdlna-0.2.3/Makefile 2007-11-26 15:47:43.000000000 -0500
+++ libdlna-0.2.3-new/Makefile 2008-06-12 11:54:06.000000000 -0400
@@ -18,8 +18,8 @@
SUBDIRS = src \
-CFLAGS += -Isrc
-LDFLAGS += -Lsrc -ldlna
+CFLAGS := -Isrc $(CFLAGS)
+LDFLAGS := -Lsrc -ldlna $(LDFLAGS)
ifeq ($(BUILD_STATIC),yes)
LDFLAGS += $(EXTRALIBS)
diff -Nurd libdlna-0.2.3/configure libdlna-0.2.3-new/configure
--- libdlna-0.2.3/configure 2007-11-26 15:47:43.000000000 -0500
+++ libdlna-0.2.3-new/configure 2012-01-26 11:16:49.000000000 -0500
@@ -627,7 +627,7 @@
return 0;
}
EOF
-VERSION=`$TMPE`
+VERSION=@VERSION@
restore_flags
diff -Nurd libdlna-0.2.3/src/Makefile libdlna-0.2.3-new/src/Makefile
--- libdlna-0.2.3/src/Makefile 2007-11-26 15:47:43.000000000 -0500
+++ libdlna-0.2.3-new/src/Makefile 2008-06-12 11:53:34.000000000 -0400
@@ -13,10 +13,10 @@
endif
LIBNAME = libdlna
-LIBNAME_SHARED = ${LIBNAME}.so
-LIBNAME_STATIC = ${LIBNAME}.a
-LIBNAME_VERSION = $(LIBNAME_SHARED).$(VERSION)
-LIBNAME_MAJOR = $(LIBNAME_SHARED).$(shell echo $(VERSION) | cut -f1 -d.)
+LIBNAME_SHARED = $(LIBNAME).dylib
+LIBNAME_STATIC = $(LIBNAME).a
+LIBNAME_VERSION = $(LIBNAME).$(VERSION).dylib
+LIBNAME_MAJOR = $(LIBNAME).$(shell echo $(VERSION) | cut -f1 -d.).dylib
SRCS = profiles.c \
containers.c \
@@ -89,13 +89,13 @@
@echo "#############################################"
lib_shared: lib_shared_info_pre $(LOBJS) lib_shared_info_post
- $(CC) -shared -Wl,-soname,$(LIBNAME_MAJOR) $(LOBJS) \
+ $(CC) -dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 -install_name $(libdir)/$(LIBNAME_MAJOR) $(LOBJS) \
$(LDFLAGS) $(EXTRALIBS) -o $(LIBNAME_VERSION)
$(LN) -sf $(LIBNAME_VERSION) $(LIBNAME_MAJOR)
$(LN) -sf $(LIBNAME_MAJOR) $(LIBNAME_SHARED)
clean:
- -$(RM) -f *.o *.lo *.a *.so*
+ -$(RM) -f *.o *.lo *.a *.dylib*
-$(RM) -f .depend
install_static: lib_static
diff -Nurd libdlna-0.2.3/src/upnp_dms.c libdlna-0.2.3-new/src/upnp_dms.c
--- libdlna-0.2.3/src/upnp_dms.c 2007-11-26 15:47:43.000000000 -0500
+++ libdlna-0.2.3-new/src/upnp_dms.c 2012-01-26 10:43:09.000000000 -0500
@@ -19,6 +19,7 @@
* Foundation, Inc, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include
#include
#include