Imported Debian patch 1.4+222+hg5f9f7194267b-1~trusty debian/1.4+222+hg5f9f7194267b-1_trusty
authorMarshall Banana <djcj@gmx.de>
Tue, 23 Dec 2014 19:53:39 +0000 (20:53 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 14 Jan 2015 16:51:30 +0000 (17:51 +0100)
25 files changed:
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/confflags [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/control.in [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/getapi.sh [new file with mode: 0755]
debian/libx265-dev.install [new file with mode: 0644]
debian/libx265N.install [new file with mode: 0644]
debian/patches/cpu-detection.patch [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]
debian/source/include-binaries [new file with mode: 0644]
debian/source/options [new file with mode: 0644]
debian/test.y4m.xz [new file with mode: 0644]
debian/upstream-changelog_help.txt [new file with mode: 0644]
debian/watch [new file with mode: 0644]
debian/x265-10bit.in [new file with mode: 0644]
debian/x265-doc.doc-base [new file with mode: 0644]
debian/x265-doc.docs [new file with mode: 0644]
debian/x265-doc.links [new file with mode: 0644]
debian/x265.install [new file with mode: 0644]
debian/x265.links [new file with mode: 0644]
debian/x265.manpages [new file with mode: 0644]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..cf4aaf1
--- /dev/null
@@ -0,0 +1,171 @@
+x265 (1.4+222+hg5f9f7194267b-1~trusty) trusty; urgency=low
+
+  * Current snapshot
+
+ -- Marshall Banana <djcj@gmx.de>  Tue, 23 Dec 2014 20:53:39 +0100
+
+x265 (1.4+179-hg88498ec9b10b-1~trusty1) trusty; urgency=low
+
+  * Current snapshot
+
+ -- Marshall Banana <djcj@gmx.de>  Tue, 09 Dec 2014 13:40:18 +0100
+
+x265 (1.4+164-hg511dde5ac1de-1~trusty) trusty; urgency=low
+
+  * Latest snapshot with API version 39
+
+ -- Marshall Banana <djcj@gmx.de>  Tue, 09 Dec 2014 05:49:59 +0100
+
+x265 (1.4+154-hgde54cffaecf2-2~trusty) trusty; urgency=low
+
+  * Don't install manpages in lib packages to avoid package conflicts.
+
+ -- Marshall Banana <djcj@gmx.de>  Wed, 03 Dec 2014 18:51:58 +0100
+
+x265 (1.4+154-hgde54cffaecf2-1~trusty) trusty; urgency=low
+
+  * Current snapshot
+
+ -- Marshall Banana <djcj@gmx.de>  Wed, 03 Dec 2014 16:32:16 +0100
+
+x265 (1.4-5~trusty) trusty; urgency=low
+
+  * Build manpages from documentation source files, including libx265.3
+  * Typo in docs: '--chromalocs' -> '--chromaloc'
+  * Upstream bugfixes:
+    * luma_hpp[4x4]: AVX2 asm code bug fix
+    * analysis: explicit locking for pmode and pme parameters
+
+ -- Marshall Banana <djcj@gmx.de>  Mon, 24 Nov 2014 16:26:11 +0100
+
+x265 (1.4-4~trusty1) trusty; urgency=low
+
+  * Build static libraries without -fPIC
+
+ -- Marshall Banana <djcj@gmx.de>  Wed, 19 Nov 2014 14:43:48 +0100
+
+x265 (1.4-3~trusty) trusty; urgency=low
+
+  * Upstream bugfixes:
+    * cli: bug fix for validatefanout param analysis-mode=save and load
+    * docs: fix reST parsing issues
+
+ -- Marshall Banana <djcj@gmx.de>  Wed, 05 Nov 2014 01:29:32 +0100
+
+x265 (1.4-2~trusty2) trusty; urgency=low
+
+  * Install documentation in x265-doc package to avoid package conflicts
+
+ -- Marshall Banana <djcj@gmx.de>  Sat, 01 Nov 2014 02:49:51 +0100
+
+x265 (1.4-1~trusty) trusty; urgency=low
+
+  * New upstream release
+
+ -- Marshall Banana <djcj@gmx.de>  Sat, 01 Nov 2014 00:20:42 +0100
+
+x265 (1.3-4~trusty) trusty; urgency=low
+
+  * Update manpage
+
+ -- Marshall Banana <djcj@gmx.de>  Wed, 01 Oct 2014 18:09:33 +0200
+
+x265 (1.3-3~trusty) trusty; urgency=low
+
+  * Rename x265-10b to x265-10bit
+  * Provide x265-16bit via symbolic link
+
+ -- Marshall Banana <djcj@gmx.de>  Wed, 01 Oct 2014 17:56:41 +0200
+
+x265 (1.3-2~trusty) trusty; urgency=low
+
+  * Add doc-base control file
+
+ -- Marshall Banana <djcj@gmx.de>  Fri, 05 Sep 2014 04:07:20 +0200
+
+x265 (1.3-1~trusty) trusty; urgency=low
+
+  * New upstream release
+
+ -- Marshall Banana <djcj@gmx.de>  Fri, 22 Aug 2014 20:30:50 +0200
+
+x265 (1.2+510-hg2bdcfcc1bb33-1~trusty) trusty; urgency=low
+
+  * Current snapshot
+
+ -- Marshall Banana <djcj@gmx.de>  Mon, 11 Aug 2014 12:51:05 +0200
+
+x265 (1.2-3~trusty) trusty; urgency=low
+
+  * Build static library from different object files
+
+ -- Marshall Banana <djcj@gmx.de>  Mon, 21 Jul 2014 05:29:20 +0200
+
+x265 (1.2-2~trusty1) trusty; urgency=low
+
+  * Provide separate optimized shared libraries for i686
+
+ -- Marshall Banana <djcj@gmx.de>  Fri, 11 Jul 2014 20:36:37 +0200
+
+x265 (1.2-1~trusty) trusty; urgency=low
+
+  * New upstream version
+  * Update patch
+  * Update man page
+  * Install upstream changelog
+
+ -- Marshall Banana <djcj@gmx.de>  Thu, 10 Jul 2014 19:40:33 +0200
+
+x265 (1.1-4~trusty) trusty; urgency=low
+
+  * Install 10bit binary to make usage of 10bit library possible.
+
+ -- Marshall Banana <djcj@gmx.de>  Tue, 17 Jun 2014 10:53:50 +0200
+
+x265 (1.1-3~trusty) trusty; urgency=low
+
+  * Don't rename 10 bit library
+
+ -- Marshall Banana <djcj@gmx.de>  Fri, 13 Jun 2014 16:43:34 +0200
+
+x265 (1.1-2~trusty) trusty; urgency=low
+
+  * Build less packages
+
+ -- Marshall Banana <djcj@gmx.de>  Wed, 11 Jun 2014 03:47:39 +0200
+
+x265 (1.1-1~trusty) trusty; urgency=low
+
+  * New upstream version
+
+ -- Marshall Banana <djcj@gmx.de>  Fri, 13 Jun 2014 16:42:16 +0200
+
+x265 (1.1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Marshall Banana <djcj@gmx.de>  Sat, 07 Jun 2014 17:44:06 +0200
+
+x265 (1.0+5-dcf74ea39e31) unstable; urgency=low
+
+  * New upstream version
+
+ -- Marshall Banana <djcj@gmx.de>  Sun, 04 May 2014 19:07:30 +0100
+
+x265 (0.9+114-c630b0b393ee) unstable; urgency=low
+
+  * New upstream version
+
+ -- Marshall Banana <djcj@gmx.de>  Fri, 04 Apr 2014 01:45:30 +0100
+
+x265 (0.8+52-93861c42b879) unstable; urgency=low
+
+  * New upstream version
+
+ -- Marshall Banana <djcj@gmx.de>  Sat, 08 Mar 2014 10:08:00 +0100
+
+x265 (0.7+216-591ca91f0501) unstable; urgency=low
+
+  * Initial upload
+
+ -- Marshall Banana <djcj@gmx.de>  Wed, 19 Feb 2014 21:30:00 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
diff --git a/debian/confflags b/debian/confflags
new file mode 100644 (file)
index 0000000..6ae0f49
--- /dev/null
@@ -0,0 +1,44 @@
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+CFLAGS   := -O3 $(filter-out -g -O2,$(shell dpkg-buildflags --get CFLAGS)) $(CPPFLAGS)
+CXXFLAGS := -O3 $(filter-out -g -O2,$(shell dpkg-buildflags --get CXXFLAGS)) $(CPPFLAGS)
+
+libdir := lib/$(DEB_HOST_MULTIARCH)
+
+
+common_confflags += \
+       -DCMAKE_INSTALL_PREFIX=/usr \
+       -DCMAKE_VERBOSE_MAKEFILE=ON
+
+
+shared_confflags := \
+       $(common_confflags) \
+       -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+       -DENABLE_PIC=ON
+
+8bit_confflags := \
+       $(shared_confflags) \
+       -DLIB_INSTALL_DIR=$(libdir)
+
+10bit_confflags := \
+       $(shared_confflags) \
+       -DBIN_INSTALL_DIR=$(libdir)/x265-10bit \
+       -DLIB_INSTALL_DIR=$(libdir)/x265-10bit \
+       -DHIGH_BIT_DEPTH=ON
+
+
+static_confflags := \
+       $(common_confflags) \
+       -DCMAKE_BUILD_TYPE=Release \
+       -DENABLE_SHARED=OFF \
+       -DENABLE_PIC=OFF
+
+8bit_static_confflags  := \
+       $(static_confflags) \
+       -DLIB_INSTALL_DIR=$(libdir)
+
+10bit_static_confflags := \
+       $(static_confflags) \
+       -DLIB_INSTALL_DIR=$(libdir)/x265-10bit \
+       -DHIGH_BIT_DEPTH=ON
+
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..0b09e9f
--- /dev/null
@@ -0,0 +1,73 @@
+Source: x265
+Section: libs
+Priority: optional
+Maintainer: Marshall Banana <djcj@gmx.de>
+Homepage: https://bitbucket.org/multicoreware/x265/wiki/Home
+Standards-Version: 3.9.5
+Build-Depends:
+ debhelper (>= 9),
+ cmake (>= 2.8.8),
+ python3-sphinx,
+ yasm (>= 1.2.0)
+Vcs-Browser: https://bitbucket.org/multicoreware/x265/src
+
+Package: x265
+Architecture: any
+Section: video
+Depends:
+ ${misc:Depends},
+ ${shlibs:Depends}
+Description: H.265/HEVC video encoder - frontend binary
+ library for encoding video using the High
+ Efficiency Video Coding (HEVC/H.265) standard.
+
+Package: libx265-39
+Architecture: any
+Pre-Depends:
+ ${misc:Pre-Depends}
+Depends:
+ ${misc:Depends},
+ ${shlibs:Depends}
+Description: H.265/HEVC video encoder - runtime files
+ library for encoding video using the High
+ Efficiency Video Coding (HEVC/H.265) standard.
+
+Package: libx265-dev
+Architecture: any
+Section: libdevel
+Depends:
+ ${misc:Depends},
+ libx265-39 (= ${binary:Version})
+Description: H.265/HEVC video encoder - development files
+ library for encoding video using the High
+ Efficiency Video Coding (HEVC/H.265) standard.
+ .
+ This package contains the static library and
+ headers used to build programs that use libx265-39.
+
+Package: x265-doc
+Architecture: all
+Section: doc
+Depends:
+ ${misc:Depends},
+ libjs-jquery (>= 1.4),
+ libjs-underscore
+Description: x265 documentation
+ library for encoding video using the High
+ Efficiency Video Coding (HEVC/H.265) standard.
+ .
+ This package contains the x265 documentation.
+
+Package: x265-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends:
+ ${misc:Depends},
+ x265 (= ${binary:Version}),
+ libx265-39 (= ${binary:Version})
+Description: debugging symbols for x265 and libx265
+ library for encoding video using the High
+ Efficiency Video Coding (HEVC/H.265) standard.
+ .
+ This package contains the debugging symbols for x265.
diff --git a/debian/control.in b/debian/control.in
new file mode 100644 (file)
index 0000000..434ba69
--- /dev/null
@@ -0,0 +1,73 @@
+Source: x265
+Section: libs
+Priority: optional
+Maintainer: Marshall Banana <djcj@gmx.de>
+Homepage: https://bitbucket.org/multicoreware/x265/wiki/Home
+Standards-Version: 3.9.5
+Build-Depends:
+ debhelper (>= 9),
+ cmake (>= 2.8.8),
+ python3-sphinx,
+ yasm (>= 1.2.0)
+Vcs-Browser: https://bitbucket.org/multicoreware/x265/src
+
+Package: x265
+Architecture: any
+Section: video
+Depends:
+ ${misc:Depends},
+ ${shlibs:Depends}
+Description: H.265/HEVC video encoder - frontend binary
+ library for encoding video using the High
+ Efficiency Video Coding (HEVC/H.265) standard.
+
+Package: libx265-@API@
+Architecture: any
+Pre-Depends:
+ ${misc:Pre-Depends}
+Depends:
+ ${misc:Depends},
+ ${shlibs:Depends}
+Description: H.265/HEVC video encoder - runtime files
+ library for encoding video using the High
+ Efficiency Video Coding (HEVC/H.265) standard.
+
+Package: libx265-dev
+Architecture: any
+Section: libdevel
+Depends:
+ ${misc:Depends},
+ libx265-@API@ (= ${binary:Version})
+Description: H.265/HEVC video encoder - development files
+ library for encoding video using the High
+ Efficiency Video Coding (HEVC/H.265) standard.
+ .
+ This package contains the static library and
+ headers used to build programs that use libx265-@API@.
+
+Package: x265-doc
+Architecture: all
+Section: doc
+Depends:
+ ${misc:Depends},
+ libjs-jquery (>= 1.4),
+ libjs-underscore
+Description: x265 documentation
+ library for encoding video using the High
+ Efficiency Video Coding (HEVC/H.265) standard.
+ .
+ This package contains the x265 documentation.
+
+Package: x265-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends:
+ ${misc:Depends},
+ x265 (= ${binary:Version}),
+ libx265-@API@ (= ${binary:Version})
+Description: debugging symbols for x265 and libx265
+ library for encoding video using the High
+ Efficiency Video Coding (HEVC/H.265) standard.
+ .
+ This package contains the debugging symbols for x265.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..bd5f670
--- /dev/null
@@ -0,0 +1,115 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: x265
+Upstream-Contact: Steve Borho <steve@borho.org>
+Source: https://bitbucket.org/multicoreware/x265/wiki/Home
+
+
+Files: *
+Copyright: 2013-2014 x265 project
+License: GPL-2.0+
+
+Files: source/common/const-a.asm
+       source/common/cpu-a.asm
+       source/common/intrapred.h
+       source/common/mc-a*.asm
+       source/common/pixel.h
+       source/common/pixel-32.asm
+       source/common/pixel-a.asm
+       source/common/sad*.asm
+       source/common/ssd.asm
+       source/common/x86inc.asm
+       source/test/checkasm-a.asm
+Copyright: 2003-2014 x264 project
+License: GPL-2.0+
+
+Files: source/common/x86util.asm
+Copyright: 2008-2013 x264 project
+License: ISC
+
+Files: source/compat/getopt/*
+Copyright: 1987-2001 Free Software Foundation, Inc.
+License: LGPL-2.1+
+
+Files: source/Lib/*
+Copyright: 2010-2013 ITU/ISO/IEC
+License: BSD-3-clause
+
+Files: debian/*
+Copyright: 2014 djcj <djcj@gmx.de>
+License: ISC
+
+
+License: GPL-2.0+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian GNU/Linux systems, the complete text of the GNU General Public
+ License version 2 can be found in '/usr/share/common-licenses/GPL-2'.
+
+
+License: ISC
+ Permission to use, copy, modify, and/or distribute this software for any
+ purpose with or without fee is hereby granted, provided that the above
+ copyright notice and this permission notice appear in all copies.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+
+License: LGPL-2.1+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU Lesser General
+ Public License version 3 can be found in '/usr/share/common-licenses/LGPL-2.1'.
+
+
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+  * Redistributions of source code must retain the above copyright notice,
+    this list of conditions and the following disclaimer.
+  * Redistributions in binary form must reproduce the above copyright notice,
+    this list of conditions and the following disclaimer in the documentation
+    and/or other materials provided with the distribution.
+  * Neither the name of the ITU/ISO/IEC nor the names of its contributors may
+    be used to endorse or promote products derived from this software without
+    specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
+ BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/debian/getapi.sh b/debian/getapi.sh
new file mode 100755 (executable)
index 0000000..c23fd26
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+egrep 'set\(X265_BUILD ' source/CMakeLists.txt | sed -e 's/set(X265_BUILD //; s/)//g'
diff --git a/debian/libx265-dev.install b/debian/libx265-dev.install
new file mode 100644 (file)
index 0000000..f58613d
--- /dev/null
@@ -0,0 +1,6 @@
+usr/include
+usr/lib/*/*.a
+usr/lib/*/*.so
+usr/lib/*/pkgconfig
+usr/lib/*/x265-10bit/*.a
+usr/lib/*/x265-10bit/*.so
diff --git a/debian/libx265N.install b/debian/libx265N.install
new file mode 100644 (file)
index 0000000..3d608f1
--- /dev/null
@@ -0,0 +1,2 @@
+usr/lib/*/*.so.*
+usr/lib/*/x265-10bit/*.so.*
diff --git a/debian/patches/cpu-detection.patch b/debian/patches/cpu-detection.patch
new file mode 100644 (file)
index 0000000..1a441ac
--- /dev/null
@@ -0,0 +1,18 @@
+--- a/source/CMakeLists.txt
++++ b/source/CMakeLists.txt
+@@ -39,12 +39,14 @@
+ set(X86_ALIASES x86 i386 i686 x86_64 amd64)
+ list(FIND X86_ALIASES "${SYSPROC}" X86MATCH)
+ if("${SYSPROC}" STREQUAL "" OR X86MATCH GREATER "-1")
+-    message(STATUS "Detected x86 target processor")
+     set(X86 1)
+     add_definitions(-DX265_ARCH_X86=1)
+     if("${CMAKE_SIZEOF_VOID_P}" MATCHES 8)
++        message(STATUS "Detected x86_64 system processor")
+         set(X64 1)
+         add_definitions(-DX86_64=1)
++    else()
++        message(STATUS "Detected x86 system processor")
+     endif()
+ elseif(${SYSPROC} STREQUAL "armv6l")
+     message(STATUS "Detected ARM target processor")
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..1422308
--- /dev/null
@@ -0,0 +1 @@
+cpu-detection.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..30cd9d1
--- /dev/null
@@ -0,0 +1,80 @@
+#!/usr/bin/make -f
+
+include debian/confflags
+
+API = $(shell debian/getapi.sh)
+LIB = $(CURDIR)/debian/install/usr/lib/$(DEB_HOST_MULTIARCH)
+
+builddir     = compiling
+x265-clean   = rm -rf $(builddir) && mkdir -p $(builddir)
+x265-install = $(MAKE) -C $(builddir) install DESTDIR=$(CURDIR)/debian/install
+x265-build   = dh_auto_build -D$(builddir)
+test-build   = \
+       $(builddir)/x265 --pass 1 --bitrate 10 -o /dev/null debian/test.y4m && \
+       $(builddir)/x265 --pass 2 --bitrate 10 -o test.hevc debian/test.y4m
+
+
+%:
+       dh ${@} --parallel
+
+override_dh_auto_clean:
+       dh_auto_clean
+       dh_auto_clean -Ddoc/reST || true
+       rm -rf $(builddir) debian/install debian/libx265-$(API).* \
+       debian/test.y4m x265_2pass.log* test.hevc
+
+override_dh_auto_build:
+       sed -e 's/@API@/$(API)/g' debian/control.in > debian/control
+       cp -f debian/libx265N.install debian/libx265-$(API).install
+       unxz -fk debian/test.y4m.xz
+# build x265 8-bit
+       mkdir -p $(builddir)
+       cd $(builddir) && cmake $(8bit_confflags) ../source
+       $(x265-build)
+       $(x265-install)
+# test x265 8-bit
+       $(test-build)
+# build x265 10-bit
+       $(x265-clean)
+       cd $(builddir) && cmake $(10bit_confflags) ../source
+       $(x265-build)
+       $(x265-install)
+       sed -e 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' \
+               debian/x265-10bit.in > $(builddir)/x265-10bit
+       install -c -D -m755 $(builddir)/x265-10bit $(CURDIR)/debian/install/usr/bin
+# test x265 10-bit
+       $(test-build)
+# build x265 8-bit static
+       $(x265-clean)
+       rm -f $(LIB)/libx265.a
+       cd $(builddir) && cmake $(8bit_static_confflags) ../source
+       $(x265-build)
+       install -c -D -m644 $(builddir)/libx265.a $(LIB)
+# build x265 10-bit static
+       $(x265-clean)
+       rm -f $(LIB)/x265-10bit/libx265.a
+       cd $(builddir) && cmake $(10bit_static_confflags) -DENABLE_TESTS=ON ../source
+       $(x265-build)
+       install -c -D -m644 $(builddir)/libx265.a $(LIB)/x265-10bit
+# build documentation
+       $(MAKE) -C doc/reST pickle html man
+
+override_dh_auto_test:
+       $(builddir)/test/TestBench
+
+override_dh_install:
+       dh_install --list-missing --sourcedir=$(CURDIR)/debian/install
+
+override_dh_installchangelogs:
+       dh_installchangelogs -px265-doc -plibx265-$(API) ChangeLog
+
+override_dh_installdocs:
+       dh_installdocs -plibx265-$(API) -px265-doc -X.buildinfo
+       dh_installdocs -px265 -px265-dbg -plibx265-dev --link-doc=libx265-$(API)
+
+override_dh_strip:
+       dh_strip --dbg-package=x265-dbg
+
+override_dh_builddeb:
+       dh_builddeb -- -Zxz -z9
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/include-binaries b/debian/source/include-binaries
new file mode 100644 (file)
index 0000000..c489363
--- /dev/null
@@ -0,0 +1 @@
+debian/test.y4m.xz
diff --git a/debian/source/options b/debian/source/options
new file mode 100644 (file)
index 0000000..74a452b
--- /dev/null
@@ -0,0 +1,2 @@
+compression = "xz"
+compression-level = 9
diff --git a/debian/test.y4m.xz b/debian/test.y4m.xz
new file mode 100644 (file)
index 0000000..28d3c1c
Binary files /dev/null and b/debian/test.y4m.xz differ
diff --git a/debian/upstream-changelog_help.txt b/debian/upstream-changelog_help.txt
new file mode 100644 (file)
index 0000000..7539445
--- /dev/null
@@ -0,0 +1 @@
+hg log --style changelog > ChangeLog
diff --git a/debian/watch b/debian/watch
new file mode 100644 (file)
index 0000000..4867948
--- /dev/null
@@ -0,0 +1,2 @@
+version=3
+https://bitbucket.org/multicoreware/x265/get/([0-9.]+)\.tar\.(?:xz|bz2|gz)
\ No newline at end of file
diff --git a/debian/x265-10bit.in b/debian/x265-10bit.in
new file mode 100644 (file)
index 0000000..18b1fb7
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+LIBX265_PATH=/usr/lib/@DEB_HOST_MULTIARCH@/x265-10bit
+LD_LIBRARY_PATH="$LIBX265_PATH:$LD_LIBRARY_PATH" $LIBX265_PATH/x265 "$@"
diff --git a/debian/x265-doc.doc-base b/debian/x265-doc.doc-base
new file mode 100644 (file)
index 0000000..904a43c
--- /dev/null
@@ -0,0 +1,10 @@
+Document: x265
+Title: x265 Documentation
+Author: Steve Borho <steve@borho.org>
+Abstract: This is the official documentation x265,
+ a free H.265/HEVC video encoder.
+Section: Video
+
+Format: HTML
+Index: /usr/share/doc/x265-doc/html/index.html
+Files: /usr/share/doc/x265-doc/html/*.html
diff --git a/debian/x265-doc.docs b/debian/x265-doc.docs
new file mode 100644 (file)
index 0000000..b05b5c7
--- /dev/null
@@ -0,0 +1,2 @@
+doc/intra
+doc/reST/build/html
diff --git a/debian/x265-doc.links b/debian/x265-doc.links
new file mode 100644 (file)
index 0000000..29586c4
--- /dev/null
@@ -0,0 +1,2 @@
+/usr/share/javascript/jquery/jquery.js           /usr/share/doc/x265-doc/html/_static/jquery.js
+/usr/share/javascript/underscore/underscore.js   /usr/share/doc/x265-doc/html/_static/underscore.js
diff --git a/debian/x265.install b/debian/x265.install
new file mode 100644 (file)
index 0000000..3500295
--- /dev/null
@@ -0,0 +1,2 @@
+usr/bin
+usr/lib/*/x265-10bit/x265
diff --git a/debian/x265.links b/debian/x265.links
new file mode 100644 (file)
index 0000000..740a041
--- /dev/null
@@ -0,0 +1,3 @@
+/usr/bin/x265-10bit             /usr/bin/x265-16bit
+/usr/share/man/man1/x265.1.gz   /usr/share/man/man1/x265-10bit.1.gz
+/usr/share/man/man1/x265.1.gz   /usr/share/man/man1/x265-16bit.1.gz
diff --git a/debian/x265.manpages b/debian/x265.manpages
new file mode 100644 (file)
index 0000000..c13a98f
--- /dev/null
@@ -0,0 +1,2 @@
+doc/reST/build/man/libx265.3
+doc/reST/build/man/x265.1