Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

chromium-dev-codecs-ffmpeg-nonfree-bin

By: a guest on Mar 8th, 2011  |  syntax: None  |  size: 10.95 KB  |  views: 152  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # $Id:$
  2. # Original: Balwinder S "bsd" Dheeman (bdheeman AT gmail.com)
  3. # Contributor: spiderschwoin (eikemail-arch AT yahoo.de)
  4. # Maintainer: spiderschwoin (eikemail-arch AT yahoo.de)
  5.  
  6. pkgname=chromium-dev-codecs-ffmpeg-nonfree-bin
  7. _pkgname=chromium-codecs-ffmpeg-extra
  8. _pkgver1=11.0.693.0
  9. _pkgver2=svn20110305r77055
  10. _pkgsuf=0ubuntu1~ucd1~maverick
  11. pkgver=${_pkgver1}
  12. pkgrel=1
  13. pkgdesc="Extra ffmpeg codecs for 'chromium-dev' (View/Watch HTML5 videos)"
  14. arch=('i686' 'x86_64')
  15. url=https://launchpad.net/chromium-browser/
  16. license=('GPL' 'LGPL' 'custom')
  17. depends=('chromium-dev' 'libvpx')
  18. replaces=('chromium-codecs-ffmpeg-extra-ppa')
  19. install=${pkgname}.install
  20.  
  21. _tgtdir=/usr/lib/
  22. _gogdir=chromium-dev
  23. _gogdir2=chromium-browser
  24. case "$CARCH" in
  25.     i686|i[3-5]86)
  26.         _bldarch='i386'
  27.     md5sums=('47d9bc4bf60d0d7a53b1d68293c9197185458572');;    
  28.     x86_64|amd64)
  29.         _bldarch='amd64'
  30.     md5sums=('ab5b44c6606ce7261962b407990de50d');;
  31.     # The following should not happen; provided you're using 'makepkg' ;)
  32.     *) error "Unknown or invalid CARCH=$CARCH"; exit 1
  33. esac
  34.  
  35. _pkgname=chromium-codecs-ffmpeg-extra
  36. _url=http://ppa.launchpad.net/chromium-daily/ppa/ubuntu/pool/main/c/chromium-browser
  37. source=(${_url}/${_pkgname}_${_pkgver1}~${_pkgver2}-${_pkgsuf}_${_bldarch}.deb)
  38.  
  39. build() {
  40.     msg2 "Extracting files..."
  41.     cd ${srcdir}
  42.     ar x ${_pkgname}_${_pkgver1}~${_pkgver2}-${_pkgsuf}_${_bldarch}.deb
  43.     tar xf data.tar.lzma
  44.     mkdir -p ${pkgdir}/${_tgtdir}/${_gogdir}
  45.     cp -d ${srcdir}/usr/lib/${_gogdir2}/lib* ${pkgdir}/${_tgtdir}/${_gogdir}
  46.     touch mv ${pkgdir}/${_tgtdir}/${_gogdir}/libffmpegsumo.so ${pkgdir}/${_tgtdir}/${_gogdir}/libffmpegsumo.so.NONFREE    
  47.  
  48.     msg2 "Making it nice..."
  49.     #install -Dm644 ${srcdir}/usr/share/doc/${_pkgname}/copyright
  50.     #${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt
  51.     install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
  52.     cat <<EOT >> ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt
  53. This package was created by Fabien Tassin <fta@sofaraway.org> on
  54. Wed, 29 Jul 2009 21:04:32 +0200
  55.  
  56. The sources were downloaded from the Chromium repositories in 3 parts:
  57.  
  58. 1/ ffmpeg-mt.tar.gz and patches/* from
  59.    http://src.chromium.org/svn/trunk/deps/third_party/ffmpeg/
  60. 2/ src/{ffmpeg.gyp,README.chromium,source/*} from
  61.    http://src.chromium.org/svn/trunk/src/third_party/ffmpeg/
  62. 3/ src/build/* from
  63.    http://src.chromium.org/svn/trunk/src/build/
  64.  
  65. Copyrights
  66.  
  67. ======
  68. Files: debian/*
  69. Copyright: 2009, Fabien Tassin <fta@ubuntu.com>
  70. License: LGPL v2.1+
  71.  
  72. Files: src/build/* src/{ffmpeg.gyp,README.chromium,source/*}
  73. Copyright: 2009 The Chromium Authors
  74. License: BSD-style license
  75.  
  76. Files: patches/*
  77. Copyright: 2009, the patch authors
  78. License: Same as patched sources (below)
  79.  
  80. Files: ffmpeg-mt.tar.gz
  81.  
  82. copy of the unpacked ffmpeg-mt/LICENSE:
  83.  
  84.  # Most files in FFmpeg are under the GNU Lesser General Public License version 2.1
  85.  # or later (LGPL v2.1+). Read the file COPYING.LGPL for details. Some other files
  86.  # have a MIT/X11/BSD-style license. In combination the LGPL v2.1+ applies to
  87.  # FFmpeg.
  88.  #
  89.  # Some optional parts of FFmpeg are licensed under the GNU General Public License
  90.  # version 2 or later (GPL v2+). See the file COPYING.GPL for details. None of
  91.  # these parts are used by default, you have to explicitly pass --enable-gpl to
  92.  # configure to activate them. In this case, FFmpeg's license changes to GPL v2+.
  93.  #
  94.  # Specifically, the GPL parts of FFmpeg are
  95.  #
  96.  # - libpostproc
  97.  # - some x86 optimizations in libswscale
  98.  # - optional x86 optimizations in the files
  99.  #   libavcodec/x86/h264_deblock_sse2.asm
  100.  #   libavcodec/x86/h264_idct_sse2.asm
  101.  #   libavcodec/x86/idct_mmx.c
  102.  # - the AC-3 decoder in libavcodec/ac3dec.c
  103.  # - the X11 grabber in libavdevice/x11grab.c
  104.  #
  105.  # Some external libraries, e.g. libx264, are under GPL and can be used in
  106.  # conjunction with FFmpeg. They require --enable-gpl to be passed to configure
  107.  # as well.
  108.  #
  109.  # The nonfree external libraries libamrnb, libamrwb and libfaac can be hooked up
  110.  # in FFmpeg. You need to pass --enable-nonfree to configure to enable them. Employ
  111.  # this option with care as FFmpeg then becomes nonfree and unredistributable.
  112.  # Note that libfaac claims to be LGPL, but is not.
  113.  #
  114.  # There are a handful of files under other licensing terms, namely:
  115.  #
  116.  # * The files libavcodec/jfdctfst.c, libavcodec/jfdctint.c, libavcodec/jrevdct.c
  117.  #   are taken from libjpeg, see the top of the files for licensing details.
  118.  
  119. The code actually built (see src/ffmpeg.gyp) is LGPL v2.1+ with the following
  120. exceptions:
  121.  
  122. Files: source/patched-ffmpeg-mt/libavcodec/arm/jrevdct_arm.S
  123. Copyright: 2001 Lionel Ulmer (lionel.ulmer@free.fr / bbrox@bbrox.org)
  124. License: MIT
  125.  
  126. Files: source/patched-ffmpeg-mt/libavcodec/jrevdct.c
  127. Copyright: 1991, 1992, Thomas G. Lane
  128. License: jpeg license (see below), GPL (v2 or later) compatible
  129.  
  130. Files: source/patched-ffmpeg-mt/libavcodec/x86/vc1dsp_mmx.c
  131. Copyright: 2007 Christophe GISQUET <christophe.gisquet@free.fr>
  132. License: MIT
  133.  
  134. source/patched-ffmpeg-mt/libavformat/{oggdec.c,oggparseogm.c,oggparsetheora.c,oggparsevorbis.c}
  135. Copyright: 2005  Michael Ahlberg, Måns Rullgård
  136. License: MIT
  137.  
  138. Here is the text of the MIT license:
  139.  
  140.  | Permission is hereby granted, free of charge, to any person obtaining a copy
  141.  | of this software and associated documentation files (the "Software"), to deal
  142.  | in the Software without restriction, including without limitation the rights
  143.  | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  144.  | copies of the Software, and to permit persons to whom the Software is
  145.  | furnished to do so, subject to the following conditions:
  146.  
  147.  | The above copyright notice and this permission notice shall be included in
  148.  | all copies or substantial portions of the Software.
  149.  
  150.  | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  151.  | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  152.  | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  153.  | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  154.  | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  155.  | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  156.  
  157. Here is the text of the Chromium BSD-style license:
  158.  
  159.  |  Redistribution and use in source and binary forms, with or without
  160.  |  modification, are permitted provided that the following conditions are
  161.  |  met:
  162.  |  .
  163.  |     * Redistributions of source code must retain the above copyright
  164.  |  notice, this list of conditions and the following disclaimer.
  165.  |     * Redistributions in binary form must reproduce the above
  166.  |  copyright notice, this list of conditions and the following disclaimer
  167.  |  in the documentation and/or other materials provided with the
  168.  |  distribution.
  169.  |     * Neither the name of Google Inc. nor the names of its
  170.  |  contributors may be used to endorse or promote products derived from
  171.  |  this software without specific prior written permission.
  172.  |  .
  173.  |  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  174.  |  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  175.  |  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  176.  |  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  177.  |  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  178.  |  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  179.  |  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  180.  |  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  181.  |  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  182.  |  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  183.  |  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  184.  
  185. Here is the text of the JPEG license:
  186.  
  187.  | The authors make NO WARRANTY or representation, either express or implied,
  188.  | with respect to this software, its quality, accuracy, merchantability, or
  189.  | fitness for a particular purpose.  This software is provided "AS IS", and
  190.  | you, its user, assume the entire risk as to its quality and accuracy.
  191.  |
  192.  | This software is copyright (C) 1991, 1992, Thomas G. Lane.
  193.  | All Rights Reserved except as specified below.
  194.  |
  195.  | Permission is hereby granted to use, copy, modify, and distribute this
  196.  | software (or portions thereof) for any purpose, without fee, subject to
  197.  | these conditions:
  198.  | (1) If any part of the source code for this software is distributed, then
  199.  | this README file must be included, with this copyright and no-warranty
  200.  | notice unaltered; and any additions, deletions, or changes to the original
  201.  | files must be clearly indicated in accompanying documentation.
  202.  | (2) If only executable code is distributed, then the accompanying
  203.  | documentation must state that "this software is based in part on the work
  204.  | of the Independent JPEG Group".
  205.  | (3) Permission for use of this software is granted only if the user accepts
  206.  | full responsibility for any undesirable consequences; the authors accept
  207.  | NO LIABILITY for damages of any kind.
  208.  |
  209.  | These conditions apply to any software derived from or based on the IJG
  210.  | code, not just to the unmodified library.  If you use our work, you ought
  211.  | to acknowledge us.
  212.  |
  213.  | Permission is NOT granted for the use of any IJG author's name or company
  214.  | name in advertising or publicity relating to this software or products
  215.  | derived from it.  This software may be referred to only as "the Independent
  216.  | JPEG Group's software".
  217.  |
  218.  | We specifically permit and encourage the use of this software as the basis
  219.  | of commercial products, provided that all warranty or liability claims are
  220.  | assumed by the product vendor.
  221.  
  222. The rest of the code is licensed under the GNU LGPL:
  223.  
  224.  | This library is free software; you can redistribute it and/or
  225.  | modify it under the terms of the GNU Lesser General Public License as
  226.  | published by the Free Software Foundation; either version 2.1 of
  227.  | the License, or (at your option) any later version.
  228.  |
  229.  | This library is distributed in the hope that it will be useful,
  230.  | but WITHOUT ANY WARRANTY; without even the implied warranty of
  231.  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  232.  | Lesser General Public License for more details.
  233.  |
  234.  | You should have received a copy of the GNU General Public License
  235.  | along with this program; if not, write to the Free Software
  236.  | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  237.  
  238. On Debian GNU/Linux systems, the complete text of the GNU General Public
  239. License can be found in `/usr/share/common-licenses/GPL' and the text of the
  240. GNU Lesser General Public License is in `/usr/share/common-licenses/LGPL'.
  241. On ArchLinux machines, a complete text of the GNU General Public
  242. License can be found in '/usr/share/licenses/common/GPL' and a text of the
  243. GNU Lesser General Public License is in '/usr/share/licenses/common/LGPL' ;)
  244. EOT
  245. }