[SCM] mpv/experimental: Enable shared libmpv client library

ghedo at users.alioth.debian.org ghedo at users.alioth.debian.org
Wed May 14 19:04:46 UTC 2014


The following commit has been merged in the experimental branch:
commit 044fa49882fe768fd9d4d7c7c5c2b1cda5ceac0e
Author: Alessandro Ghedini <alessandro at ghedini.me>
Date:   Sat Mar 8 20:00:28 2014 +0100

    Enable shared libmpv client library

diff --git a/debian/control b/debian/control
index 1c75ffb..a97cc39 100644
--- a/debian/control
+++ b/debian/control
@@ -71,3 +71,39 @@ Description: video player based on MPlayer/mplayer2
   * Screenshot improvements
   * ...
  See mpv(1) for more info regarding changes between MPlayer, mplayer2 and mpv.
+
+Package: libmpv0
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
+Description: video player based on MPlayer/mplayer2 (client library)
+ mpv is a movie player based on MPlayer and mplayer2. It supports a wide
+ variety of video file formats, audio and video codecs, and subtitle types.
+ .
+ This package provides a client library that can be used to embed mpv in other
+ applications.
+
+Package: libmpv-dev
+Section: libdevel
+Architecture: any
+Depends: libmpv0 (= ${binary:Version}), ${misc:Depends}
+Multi-Arch: same
+Description: video player based on MPlayer/mplayer2 (client library dev files)
+ mpv is a movie player based on MPlayer and mplayer2. It supports a wide
+ variety of video file formats, audio and video codecs, and subtitle types.
+ .
+ This package provides development files for libmpv.
+
+Package: libmpv-dbg
+Priority: extra
+Section: debug
+Architecture: any
+Depends: libmpv0 (= ${binary:Version}), ${misc:Depends}
+Multi-Arch: same
+Description: video player based on MPlayer/mplayer2 (client library debug)
+ mpv is a movie player based on MPlayer and mplayer2. It supports a wide
+ variety of video file formats, audio and video codecs, and subtitle types.
+ .
+ This package provides debugging symbols for libmpv.
diff --git a/debian/control b/debian/control.orig
similarity index 67%
copy from debian/control
copy to debian/control.orig
index 1c75ffb..2cf8bfc 100644
--- a/debian/control
+++ b/debian/control.orig
@@ -2,46 +2,24 @@ Source: mpv
 Section: video
 Priority: optional
 Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers at lists.alioth.debian.org>
-Uploaders: Alessandro Ghedini <ghedo at debian.org>,
- Reinhard Tartler <siretart at tauware.de>
+Uploaders: Alessandro Ghedini <ghedo at debian.org>
 Build-Depends: debhelper (>= 9),
- gcc-4.8 [sparc],
- ladspa-sdk,
+ gcc-4.8 [powerpc powerpcspe sparc],
  libasound2-dev [linux-any],
  libass-dev,
- libavcodec-dev (>= 6:10~),
- libavfilter-dev (>= 6:10~),
- libavformat-dev (>= 6:10~),
- libavresample-dev (>= 6:10~),
- libavutil-dev (>= 6:10~),
- libbluray-dev,
- libbs2b-dev,
- libcdio-paranoia-dev,
- libdvdnav-dev,
- libdvdread-dev,
- libegl1-mesa-dev [linux-any],
- libenca-dev,
+ libavcodec-dev (>= 6:9~),
+ libavfilter-dev (>= 6:9~),
+ libavformat-dev (>= 6:9~),
+ libavresample-dev (>= 6:9~),
+ libavutil-dev (>= 6:9~),
  libgl1-mesa-dev,
- libguess-dev,
- libjack-dev,
  libjpeg8-dev,
- liblcms2-dev,
- liblircclient-dev,
  liblua5.1-0-dev,
- libmpg123-dev,
  libncurses5-dev,
  libncursesw5-dev,
- libpostproc-dev (>= 6:0.git20120821~),
- libpulse-dev,
- libquvi-dev,
- libsdl2-dev,
  libswscale-dev,
- libva-dev,
- libvdpau-dev,
- libwayland-dev [linux-any],
  libx11-dev,
  libxinerama-dev,
- libxkbcommon-dev [linux-any],
  libxss-dev,
  libxv-dev,
  pkg-config,
diff --git a/debian/libmpv-dev.examples b/debian/libmpv-dev.examples
new file mode 100644
index 0000000..5a62c88
--- /dev/null
+++ b/debian/libmpv-dev.examples
@@ -0,0 +1 @@
+DOCS/client_api_examples
diff --git a/debian/libmpv-dev.install b/debian/libmpv-dev.install
new file mode 100644
index 0000000..7df81cd
--- /dev/null
+++ b/debian/libmpv-dev.install
@@ -0,0 +1,3 @@
+usr/include/*
+usr/lib/*/lib*.so
+usr/lib/*/pkgconfig/*
diff --git a/debian/libmpv0.install b/debian/libmpv0.install
new file mode 100644
index 0000000..3ddde58
--- /dev/null
+++ b/debian/libmpv0.install
@@ -0,0 +1 @@
+usr/lib/*/lib*.so.*
diff --git a/debian/libmpv0.symbols b/debian/libmpv0.symbols
new file mode 100644
index 0000000..4e8321a
--- /dev/null
+++ b/debian/libmpv0.symbols
@@ -0,0 +1,34 @@
+libmpv.so.0 libmpv0 #MINVER#
+ mpv_client_api_version at Base 0.3.5+git20140306
+ mpv_client_name at Base 0.3.5+git20140306
+ mpv_command at Base 0.3.5+git20140306
+ mpv_command_async at Base 0.3.5+git20140306
+ mpv_command_string at Base 0.3.5+git20140306
+ mpv_create at Base 0.3.5+git20140306
+ mpv_destroy at Base 0.3.5+git20140306
+ mpv_error_string at Base 0.3.5+git20140306
+ mpv_event_name at Base 0.3.5+git20140306
+ mpv_free at Base 0.3.5+git20140306
+ mpv_free_node_contents at Base 0.3.5+git20140306
+ mpv_get_property at Base 0.3.5+git20140306
+ mpv_get_property_async at Base 0.3.5+git20140306
+ mpv_get_property_osd_string at Base 0.3.5+git20140306
+ mpv_get_property_string at Base 0.3.5+git20140306
+ mpv_get_time_us at Base 0.3.5+git20140306
+ mpv_get_wakeup_pipe at Base 0.3.7+git20140413
+ mpv_initialize at Base 0.3.5+git20140306
+ mpv_main at Base 0.3.5+git20140306
+ mpv_observe_property at Base 0.3.7+git20140413
+ mpv_request_event at Base 0.3.5+git20140306
+ mpv_request_log_messages at Base 0.3.5+git20140306
+ mpv_resume at Base 0.3.5+git20140306
+ mpv_set_option at Base 0.3.5+git20140306
+ mpv_set_option_string at Base 0.3.5+git20140306
+ mpv_set_property at Base 0.3.5+git20140306
+ mpv_set_property_async at Base 0.3.5+git20140306
+ mpv_set_property_string at Base 0.3.5+git20140306
+ mpv_set_wakeup_callback at Base 0.3.5+git20140306
+ mpv_suspend at Base 0.3.5+git20140306
+ mpv_unobserve_property at Base 0.3.7+git20140413
+ mpv_wait_event at Base 0.3.5+git20140306
+ mpv_wakeup at Base 0.3.5+git20140306
diff --git a/debian/mpv.install b/debian/mpv.install
new file mode 100644
index 0000000..6a7d95c
--- /dev/null
+++ b/debian/mpv.install
@@ -0,0 +1,3 @@
+etc/*
+usr/bin/mpv
+usr/share/*
diff --git a/debian/rules b/debian/rules
index 912c57b..b7e7d80 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,17 +10,25 @@ endif
 	dh $@
 
 override_dh_auto_configure:
-	python ./waf -v --nocache configure \
-		     --prefix=/usr          \
-		     --confdir=/etc/mpv     \
-		     --enable-sdl2
+	python ./waf -v --nocache configure			\
+			--prefix=/usr				\
+			--libdir=/usr/lib/$(DEB_HOST_MULTIARCH)	\
+			--confdir=/etc/mpv			\
+			--enable-sdl2				\
+			--enable-libmpv-shared
 
 override_dh_auto_build:
 	python ./waf -v --nocache build
 
 override_dh_auto_install:
-	python ./waf -v --nocache install --destdir=debian/mpv
+	python ./waf -v --nocache install --destdir=debian/tmp
+
+override_dh_install:
+	dh_install --sourcedir=debian/tmp
 
 override_dh_auto_clean:
 	python ./waf -v --nocache distclean
 	find . -name "*.pyc" -delete
+
+override_dh_strip:
+	dh_strip --dbg-package=libmpv-dbg

-- 
mpv packaging



More information about the pkg-multimedia-commits mailing list