[SCM] liblivemedia/master: Add shared libraries.

bdrung at users.alioth.debian.org bdrung at users.alioth.debian.org
Sat Jan 5 10:27:15 UTC 2013


The following commit has been merged in the master branch:
commit f0925fbed9c4eab2079e9aa01ffda511cef28a32
Author: Benjamin Drung <bdrung at debian.org>
Date:   Sat Jan 5 11:26:47 2013 +0100

    Add shared libraries.
    
    Closes: #662774

diff --git a/debian/control b/debian/control
index a076c93..c9e5ff5 100644
--- a/debian/control
+++ b/debian/control
@@ -11,9 +11,44 @@ Homepage: http://www.live555.com/liveMedia/
 Vcs-Git: git://anonscm.debian.org/pkg-multimedia/liblivemedia.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-multimedia/liblivemedia.git
 
-Package: liblivemedia-dev
-Section: libdevel
+Package: libbasicusageenvironment0
+Architecture: any
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: multimedia RTSP streaming library (BasicUsageEnvironment class)
+ The live555.com streaming media code is a set of C++ libraries for multimedia
+ streaming, using open standard protocols (RTP/RTCP, RTSP, SIP). These
+ libraries can be used to build applications to stream, receive and process
+ MPEG, H.263+ or JPEG video, several audio codecs, and can easily be extended
+ to support additional codecs. They can also be used to build basic RTSP (Real
+ Time Streaming Protocol) or SIP (Session Initiation Protocol) clients and
+ servers.
+ .
+ This package contains the BasicUsageEnvironment library which defines one
+ concrete implementation (i.e., subclasses) of the "UsageEnvironment" classes,
+ for use in simple, console applications. Read events and delayed operations are
+ handled using a select() loop.
+
+Package: libgroupsock0
+Architecture: any
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: multimedia RTSP streaming library (network interfaces and sockets)
+ The live555.com streaming media code is a set of C++ libraries for multimedia
+ streaming, using open standard protocols (RTP/RTCP, RTSP, SIP). These
+ libraries can be used to build applications to stream, receive and process
+ MPEG, H.263+ or JPEG video, several audio codecs, and can easily be extended
+ to support additional codecs. They can also be used to build basic RTSP (Real
+ Time Streaming Protocol) or SIP (Session Initiation Protocol) clients and
+ servers.
+ .
+ This package contains the groupsock library. The classes in this library
+ encapsulate network interfaces and sockets. In particular, the "Groupsock"
+ class encapsulates a socket for sending (and/or receiving) multicast datagrams.
+
+Package: liblivemedia1
 Architecture: any
+Pre-Depends: ${misc:Pre-Depends}
 Depends: ${misc:Depends}, ${shlibs:Depends}
 Description: multimedia RTSP streaming library
  The live555.com streaming media code is a set of C++ libraries for multimedia
@@ -24,6 +59,51 @@ Description: multimedia RTSP streaming library
  Time Streaming Protocol) or SIP (Session Initiation Protocol) clients and
  servers.
  .
+ This package contains the liveMedia library which defines a class hierarchy -
+ rooted in the "Medium" class - for a variety of streaming media types and
+ codecs.
+
+Package: libusageenvironment0
+Architecture: any
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: multimedia RTSP streaming library (UsageEnvironment classes)
+ The live555.com streaming media code is a set of C++ libraries for multimedia
+ streaming, using open standard protocols (RTP/RTCP, RTSP, SIP). These
+ libraries can be used to build applications to stream, receive and process
+ MPEG, H.263+ or JPEG video, several audio codecs, and can easily be extended
+ to support additional codecs. They can also be used to build basic RTSP (Real
+ Time Streaming Protocol) or SIP (Session Initiation Protocol) clients and
+ servers.
+ .
+ This package contains the UsageEnvironment library. The "UsageEnvironment" and
+ "TaskScheduler" classes are used for scheduling deferred events, for assigning
+ handlers for asynchronous read events, and for outputting error/warning
+ messages. Also, the "HashTable" class defines the interface to a generic hash
+ table, used by the rest of the code.
+ .
+ These are all abstract base classes; they must be subclassed for use in an
+ implementation. These subclasses can exploit the particular properties of the
+ environment in which the program will run - e.g., its GUI and/or scripting
+ environment.
+
+Package: liblivemedia-dev
+Section: libdevel
+Architecture: any
+Depends: libbasicusageenvironment0 (= ${binary:Version}),
+         libgroupsock0 (= ${binary:Version}),
+         liblivemedia1 (= ${binary:Version}),
+         libusageenvironment0 (= ${binary:Version}),
+         ${misc:Depends}
+Description: multimedia RTSP streaming library (development files)
+ The live555.com streaming media code is a set of C++ libraries for multimedia
+ streaming, using open standard protocols (RTP/RTCP, RTSP, SIP). These
+ libraries can be used to build applications to stream, receive and process
+ MPEG, H.263+ or JPEG video, several audio codecs, and can easily be extended
+ to support additional codecs. They can also be used to build basic RTSP (Real
+ Time Streaming Protocol) or SIP (Session Initiation Protocol) clients and
+ servers.
+ .
  This package contains the headers and static libraries required to build
  applications that use live555.com.
 
diff --git a/debian/libbasicusageenvironment0.install b/debian/libbasicusageenvironment0.install
new file mode 100644
index 0000000..1bd65da
--- /dev/null
+++ b/debian/libbasicusageenvironment0.install
@@ -0,0 +1 @@
+/usr/lib/*/libBasicUsageEnvironment.so.0*
diff --git a/debian/libgroupsock0.install b/debian/libgroupsock0.install
new file mode 100644
index 0000000..5c6f276
--- /dev/null
+++ b/debian/libgroupsock0.install
@@ -0,0 +1 @@
+/usr/lib/*/libgroupsock.so.0*
diff --git a/debian/liblivemedia-dev.install b/debian/liblivemedia-dev.install
index da07fdd..f349901 100644
--- a/debian/liblivemedia-dev.install
+++ b/debian/liblivemedia-dev.install
@@ -1,2 +1,3 @@
 usr/include
-usr/lib
+usr/lib/*/*.a
+usr/lib/*/*.so
diff --git a/debian/liblivemedia1.install b/debian/liblivemedia1.install
new file mode 100644
index 0000000..92f79b3
--- /dev/null
+++ b/debian/liblivemedia1.install
@@ -0,0 +1 @@
+/usr/lib/*/libliveMedia.so.1*
diff --git a/debian/libusageenvironment0.install b/debian/libusageenvironment0.install
new file mode 100644
index 0000000..e5861c7
--- /dev/null
+++ b/debian/libusageenvironment0.install
@@ -0,0 +1 @@
+/usr/lib/*/libUsageEnvironment.so.0*
diff --git a/debian/rules b/debian/rules
index eda1854..4532342 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,10 +3,10 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
-CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
-CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
-LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
+CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
+CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
+CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
+LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
 CFLAGS += -Wall
@@ -29,25 +29,31 @@ endif
 
 override_dh_auto_clean:
 	dh_auto_clean
-	rm -f `find . -name '*.a'`
+	rm -f *.a
 
 override_dh_auto_configure:
 	./genMakefiles linux
 
 override_dh_auto_build:
-	for f in BasicUsageEnvironment \
-	            UsageEnvironment liveMedia groupsock; do \
-	  LDFLAGS="$(LDFLAGS)" \
-	  CFLAGS="$(CFLAGS) -fPIC -DPIC" $(MAKE) -j $(NUMJOBS) -C $${f} || exit 1; \
-	  mv "$${f}/lib$${f}.a" "$${f}/lib$${f}_pic.a"; \
+	for f in BasicUsageEnvironment UsageEnvironment liveMedia groupsock; do \
+	  $(MAKE) CFLAGS="$(CFLAGS) -fPIC -DPIC" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
+	  LDFLAGS="$(LDFLAGS)" -j $(NUMJOBS) -C $${f} || exit 1; \
+	  mv "$${f}/lib$${f}.a" "lib$${f}_pic.a"; \
+	done
+	$(MAKE) clean
+	for f in BasicUsageEnvironment UsageEnvironment liveMedia groupsock; do \
+	  $(MAKE) CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
+	  LDFLAGS="$(LDFLAGS)" -j $(NUMJOBS) -C $${f} || exit 1; \
+	  mv "$${f}/lib$${f}.a" "lib$${f}.a"; \
 	done
 	$(MAKE) clean
-	CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" $(MAKE) -j $(NUMJOBS)
+	./genMakefiles linux-with-shared-libraries
+	dh_auto_build -- CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
 
 override_dh_auto_install:
 	dh_auto_install -- PREFIX=/usr LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
 	for f in BasicUsageEnvironment UsageEnvironment liveMedia groupsock; do \
-	  install -m 644 $${f}/lib$${f}_pic.a debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH); \
+	  install -m 644 lib$${f}.a lib$${f}_pic.a debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH); \
 	done
 
 override_dh_installchangelogs:

-- 
liblivemedia packaging



More information about the pkg-multimedia-commits mailing list