initial import
This commit is contained in:
25
libjpeg-turbo/COPYING.BSD3
Normal file
25
libjpeg-turbo/COPYING.BSD3
Normal file
@@ -0,0 +1,25 @@
|
||||
Copyright (C)2009-2016 D. R. Commander. All Rights Reserved.
|
||||
|
||||
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 libjpeg-turbo Project 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 HOLDERS 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.
|
||||
53
libjpeg-turbo/COPYING.IJG
Normal file
53
libjpeg-turbo/COPYING.IJG
Normal file
@@ -0,0 +1,53 @@
|
||||
The authors make NO WARRANTY or representation, either express or implied,
|
||||
with respect to this software, its quality, accuracy, merchantability, or
|
||||
fitness for a particular purpose. This software is provided "AS IS", and you,
|
||||
its user, assume the entire risk as to its quality and accuracy.
|
||||
|
||||
This software is copyright (C) 1991-2016, Thomas G. Lane, Guido Vollbeding.
|
||||
All Rights Reserved except as specified below.
|
||||
|
||||
Permission is hereby granted to use, copy, modify, and distribute this
|
||||
software (or portions thereof) for any purpose, without fee, subject to these
|
||||
conditions:
|
||||
(1) If any part of the source code for this software is distributed, then this
|
||||
README file must be included, with this copyright and no-warranty notice
|
||||
unaltered; and any additions, deletions, or changes to the original files
|
||||
must be clearly indicated in accompanying documentation.
|
||||
(2) If only executable code is distributed, then the accompanying
|
||||
documentation must state that "this software is based in part on the work of
|
||||
the Independent JPEG Group".
|
||||
(3) Permission for use of this software is granted only if the user accepts
|
||||
full responsibility for any undesirable consequences; the authors accept
|
||||
NO LIABILITY for damages of any kind.
|
||||
|
||||
These conditions apply to any software derived from or based on the IJG code,
|
||||
not just to the unmodified library. If you use our work, you ought to
|
||||
acknowledge us.
|
||||
|
||||
Permission is NOT granted for the use of any IJG author's name or company name
|
||||
in advertising or publicity relating to this software or products derived from
|
||||
it. This software may be referred to only as "the Independent JPEG Group's
|
||||
software".
|
||||
|
||||
We specifically permit and encourage the use of this software as the basis of
|
||||
commercial products, provided that all warranty or liability claims are
|
||||
assumed by the product vendor.
|
||||
|
||||
|
||||
The Unix configuration script "configure" was produced with GNU Autoconf.
|
||||
It is copyright by the Free Software Foundation but is freely distributable.
|
||||
The same holds for its supporting scripts (config.guess, config.sub,
|
||||
ltmain.sh). Another support script, install-sh, is copyright by X Consortium
|
||||
but is also freely distributable.
|
||||
|
||||
The IJG distribution formerly included code to read and write GIF files.
|
||||
To avoid entanglement with the Unisys LZW patent (now expired), GIF reading
|
||||
support has been removed altogether, and the GIF writer has been simplified
|
||||
to produce "uncompressed GIFs". This technique does not use the LZW
|
||||
algorithm; the resulting GIF files are larger than usual, but are readable
|
||||
by all standard GIF decoders.
|
||||
|
||||
We are required to state that
|
||||
"The Graphics Interchange Format(c) is the Copyright property of
|
||||
CompuServe Incorporated. GIF(sm) is a Service Mark property of
|
||||
CompuServe Incorporated."
|
||||
19
libjpeg-turbo/COPYING.ZLIB
Normal file
19
libjpeg-turbo/COPYING.ZLIB
Normal file
@@ -0,0 +1,19 @@
|
||||
Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
|
||||
Copyright (C) 2010, D. R. Commander.
|
||||
Copyright (C) 1999-2006, MIYASAKA Masaru.
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
arising from the use of this software.
|
||||
|
||||
Permission is granted to anyone to use this software for any purpose,
|
||||
including commercial applications, and to alter it and redistribute it
|
||||
freely, subject to the following restrictions:
|
||||
|
||||
1. The origin of this software must not be misrepresented; you must not
|
||||
claim that you wrote the original software. If you use this software
|
||||
in a product, an acknowledgment in the product documentation would be
|
||||
appreciated but is not required.
|
||||
2. Altered source versions must be plainly marked as such, and must not be
|
||||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
74
libjpeg-turbo/PKGBUILD
Normal file
74
libjpeg-turbo/PKGBUILD
Normal file
@@ -0,0 +1,74 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=libjpeg-turbo
|
||||
pkgver=2.0.5
|
||||
_debver=2.0.5
|
||||
_debrel=2
|
||||
pkgrel=2
|
||||
pkgdesc='JPEG image codec with accelerated baseline compression and decompression'
|
||||
url='https://libjpeg-turbo.org/'
|
||||
arch=('i686' 'x86_64')
|
||||
license=('custom:IJG' 'Modified-BSD' 'zlib')
|
||||
makedepends=('cmake' 'nasm' 'quilt')
|
||||
validpgpkeys=('7D6293CC6378786E1B5C496885C7044E033FDE16')
|
||||
source=("https://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
|
||||
"https://deb.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg-turbo_$_debver-$_debrel.debian.tar.xz"
|
||||
'COPYING.BSD3'
|
||||
'COPYING.IJG'
|
||||
'COPYING.ZLIB')
|
||||
sha512sums=('5bf9ecf069b43783ff24365febf36dda69ccb92d6397efec6069b2b4f359bfd7b87934a6ce4311873220fccc73acabdacef5ce0604b79209eb1912e8ba478555'
|
||||
'ca6ee52c3fa944e56139054249aaedae7615f7f619f4ba39ae3c57fcac111466de4f7da0db8e6d9b4073cb07b9d32a3941fcdba5098031e4882e8a55e6bad1e6'
|
||||
'99bf74a259f531b79309ce5e02ced1beceebb0a7269231ee2ea7f496b4584670dbb72c06cb60f7b8f84db1212a14b7b818beb3cac3b5e503aa2852c6166e9a74'
|
||||
'77a09897f1f637a3ff3acfffb2bbdda0e446bd8b1307f1b4dc3a40566247123b39fe4755318380cf38d5afc8724055f4f27496340b6f4a1e2931299e2259d4fb'
|
||||
'3bdfc937b59fd314f57f32d9943f332a2196d29935967dc5677e2eb81355511027d9411bf8937369732ca3adccf54bb91d563de295e841e896758d4441516586')
|
||||
|
||||
provides=('libjpeg=8.2.2' 'turbojpeg')
|
||||
conflicts=('libjpeg' 'turbojpeg')
|
||||
replaces=('libjpeg' 'turbojpeg')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
||||
# Debian patches
|
||||
export QUILT_PATCHES=debian/patches
|
||||
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
||||
export QUILT_DIFF_ARGS='--no-timestamps'
|
||||
|
||||
mv "$srcdir"/debian .
|
||||
|
||||
quilt push -av
|
||||
fi
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
|
||||
cmake \
|
||||
-DWITH_JAVA=0 \
|
||||
-DWITH_JPEG8=1 \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
||||
.
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
make \
|
||||
DESTDIR="${pkgdir}" \
|
||||
docdir="/usr/share/doc/${pkgname}" \
|
||||
exampledir="/usr/share/doc/${pkgname}" \
|
||||
install
|
||||
|
||||
install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/libjpeg-turbo/LICENSE.md"
|
||||
for i in COPYING.{BSD3,IJG,ZLIB}; do
|
||||
install -Dm644 "${srcdir}/${i}" "${pkgdir}/usr/share/licenses/libjpeg-turbo/${i}"
|
||||
done
|
||||
install -m644 jpegint.h "${pkgdir}/usr/include" # required by other software
|
||||
}
|
||||
Reference in New Issue
Block a user