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

ghedo at users.alioth.debian.org ghedo at users.alioth.debian.org
Wed Jun 25 19:14:55 UTC 2014


The following commit has been merged in the master branch:
commit 1eb8ba55629c93c9946a91ee98daf72ff38afde8
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 72d4cc1..adc9603 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: libmpv1
+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: libmpv1 (= ${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: libmpv1 (= ${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/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/libmpv1.install b/debian/libmpv1.install
new file mode 100644
index 0000000..3ddde58
--- /dev/null
+++ b/debian/libmpv1.install
@@ -0,0 +1 @@
+usr/lib/*/lib*.so.*
diff --git a/debian/libmpv1.symbols b/debian/libmpv1.symbols
new file mode 100644
index 0000000..b5cf3ef
--- /dev/null
+++ b/debian/libmpv1.symbols
@@ -0,0 +1,36 @@
+libmpv.so.1 libmpv1 #MINVER#
+ mpv_client_api_version at Base 0.4.0
+ mpv_client_name at Base 0.4.0
+ mpv_command at Base 0.4.0
+ mpv_command_async at Base 0.4.0
+ mpv_command_string at Base 0.4.0
+ mpv_create at Base 0.4.0
+ mpv_detach_destroy at Base 0.4.0
+ mpv_error_string at Base 0.4.0
+ mpv_event_name at Base 0.4.0
+ mpv_free at Base 0.4.0
+ mpv_free_node_contents at Base 0.4.0
+ mpv_get_property at Base 0.4.0
+ mpv_get_property_async at Base 0.4.0
+ mpv_get_property_osd_string at Base 0.4.0
+ mpv_get_property_string at Base 0.4.0
+ mpv_get_time_us at Base 0.4.0
+ mpv_get_wakeup_pipe at Base 0.4.0
+ mpv_initialize at Base 0.4.0
+ mpv_load_config_file at Base 0.4.0
+ mpv_main at Base 0.4.0
+ mpv_observe_property at Base 0.4.0
+ mpv_request_event at Base 0.4.0
+ mpv_request_log_messages at Base 0.4.0
+ mpv_resume at Base 0.4.0
+ mpv_set_option at Base 0.4.0
+ mpv_set_option_string at Base 0.4.0
+ mpv_set_property at Base 0.4.0
+ mpv_set_property_async at Base 0.4.0
+ mpv_set_property_string at Base 0.4.0
+ mpv_set_wakeup_callback at Base 0.4.0
+ mpv_suspend at Base 0.4.0
+ mpv_terminate_destroy at Base 0.4.0
+ mpv_unobserve_property at Base 0.4.0
+ mpv_wait_event at Base 0.4.0
+ mpv_wakeup at Base 0.4.0
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 d4ddb9e..6f66841 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,17 +6,25 @@ export DEB_BUILD_MAINT_OPTIONS:=hardening=+all # #741439
 	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