[SCM] x264/master: add a wrapper script to load the 10-bit variant of libx264

fabian-guest at users.alioth.debian.org fabian-guest at users.alioth.debian.org
Fri Nov 14 08:44:41 UTC 2014


The following commit has been merged in the master branch:
commit 7344bef808740be6b848afa0ed61b70b32519ef1
Author: Fabian Greffrath <fabian+debian at greffrath.com>
Date:   Fri Nov 14 09:43:19 2014 +0100

    add a wrapper script to load the 10-bit variant of libx264
    
    Thanks, Reinhard, for the script!

diff --git a/debian/x264-10bit b/debian/x264-10bit
new file mode 100755
index 0000000..e792fbf
--- /dev/null
+++ b/debian/x264-10bit
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+eval `dpkg-architecture -s`
+export LD_LIBRARY_PATH=/usr/lib/${DEB_HOST_GNU_TYPE}/x264-10bit${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH:-}
+
+
+if [ $# -gt 0 ]; then
+    echo "Starting '$@' with 10bit x264"
+    exec "$@"
+    exit 1
+fi
+
+echo "Usage `basename $0` <prog> <arguments>" >&2
+exit 2
diff --git a/debian/x264-10bit.1 b/debian/x264-10bit.1
new file mode 100644
index 0000000..55c43c5
--- /dev/null
+++ b/debian/x264-10bit.1
@@ -0,0 +1,13 @@
+.TH x264-10bit 1
+.SH NAME
+x264-10bit \- wrapper script for the 10-bit variant of the libx264 shared library
+.SH SYNOPSIS
+x264-10bit <prog> <arguments>
+.SH DESCRIPTION
+This is a wrapper script that sets the LD_LIBRARY_PATH variable so that the 10-bit variant of the libx264 shared library is prefered over the regular 8-bit variant. It then calls the program <prog> with the arguments <arguments>.
+.SH OPTIONS
+This wrapper script takes no arguments. All arguments are passed over to the called program.
+.SH SEE ALSO
+x264(1)
+.SH AUTHOR
+Reinhard Tartler <siretart at gmail.com>
diff --git a/debian/x264.install b/debian/x264.install
index 5b601e6..576d77d 100644
--- a/debian/x264.install
+++ b/debian/x264.install
@@ -1 +1,2 @@
 shared/usr/bin/x264     usr/bin
+debian/x264-10bit	usr/bin
diff --git a/debian/x264.manpages b/debian/x264.manpages
index 349e2e2..1a92a12 100644
--- a/debian/x264.manpages
+++ b/debian/x264.manpages
@@ -1 +1,2 @@
 debian/x264.1
+debian/x264-10bit.1

-- 
x264 packaging



More information about the pkg-multimedia-commits mailing list