summaryrefslogtreecommitdiffstats
path: root/slackware64-current/source/l/libwebp
diff options
context:
space:
mode:
authorAdrien Nader <adrien@notk.org>2017-07-19 06:43:19 +0200
committerAdrien Nader <adrien@notk.org>2017-07-19 06:43:19 +0200
commit3ed93f7c81917dab9bd818e4561dff80c2bc032e (patch)
tree7d4a04619adab4a7de1a5feb39f0d9c787d62dcc /slackware64-current/source/l/libwebp
parentd592aefa9b0b12f3db492b8d1a150bd6777d6453 (diff)
Tue Jul 18 23:10:25 UTC 2017
a/kernel-generic-4.9.38-x86_64-1.txz: Upgraded. a/kernel-huge-4.9.38-x86_64-1.txz: Upgraded. a/kernel-modules-4.9.38-x86_64-1.txz: Upgraded. a/mkinitrd-1.4.11-x86_64-3.txz: Upgraded. Support btrfs and ocfs2 volume ids in busybox. Thanks to bam80. Handle rootflags in init script. Thanks to davjohn. a/openssl-solibs-1.0.2l-x86_64-1.txz: Upgraded. ap/gutenprint-5.2.13-x86_64-1.txz: Upgraded. d/cmake-3.9.0-x86_64-1.txz: Upgraded. d/kernel-headers-4.9.38-x86-1.txz: Upgraded. k/kernel-source-4.9.38-noarch-1.txz: Upgraded. kde/calligra-2.9.11-x86_64-12.txz: Rebuilt. Linked against exiv2-0.26. kde/gwenview-4.14.3-x86_64-3.txz: Rebuilt. Linked against exiv2-0.26. kde/kde-runtime-4.14.3-x86_64-5.txz: Rebuilt. Linked against exiv2-0.26 and libwebp-0.6.0. kde/kdelibs-4.14.34-x86_64-1.txz: Upgraded. kde/kfilemetadata-4.14.3-x86_64-3.txz: Rebuilt. Linked against exiv2-0.26. kde/libkexiv2-4.14.3-x86_64-3.txz: Rebuilt. Linked against exiv2-0.26. kde/nepomuk-core-4.14.3-x86_64-3.txz: Rebuilt. Linked against exiv2-0.26. l/SDL2_image-2.0.1-x86_64-2.txz: Rebuilt. Linked against libwebp-0.6.0. l/exiv2-0.26-x86_64-1.txz: Upgraded. Shared library .so-version bump. l/expat-2.2.2-x86_64-1.txz: Upgraded. Fixes security issues including: External entity infinite loop DoS For more information, see: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-9233 https://libexpat.github.io/doc/cve-2017-9233/ (* Security fix *) l/ffmpeg-3.3.2-x86_64-2.txz: Rebuilt. Linked against libwebp-0.6.0. l/gd-2.2.4-x86_64-1.txz: Upgraded. Linked against libwebp-0.6.0. Fixes security issues: gdImageCreate() doesn't check for oversized images and as such is prone to DoS vulnerabilities. (CVE-2016-9317) double-free in gdImageWebPtr() (CVE-2016-6912) potential unsigned underflow in gd_interpolation.c (CVE-2016-10166) DOS vulnerability in gdImageCreateFromGd2Ctx() (CVE-2016-10167) Signed Integer Overflow gd_io.c (CVE-2016-10168) For more information, see: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-9317 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-6912 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-10166 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-10167 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-10168 (* Security fix *) l/imagemagick-6.9.9_0-x86_64-1.txz: Upgraded. Linked against libwebp-0.6.0. l/libwebp-0.6.0-x86_64-1.txz: Added. Thanks to powtrix. l/orc-0.4.27-x86_64-1.txz: Upgraded. l/pango-1.40.7-x86_64-1.txz: Upgraded. l/strigi-0.7.8-x86_64-3.txz: Rebuilt. Linked against exiv2-0.26. n/bluez-5.46-x86_64-1.txz: Upgraded. n/libtirpc-1.0.2-x86_64-1.txz: Upgraded. n/nfs-utils-1.3.4-x86_64-2.txz: Rebuilt. Added /etc/default/nfs config file for setting additional options. Thanks to shasta and Robby Workman. n/openssh-7.5p1-x86_64-2.txz: Rebuilt. Added /etc/default/sshd config file for setting additional options. Thanks to shasta and Robby Workman. n/openssl-1.0.2l-x86_64-1.txz: Upgraded. n/rpcbind-0.2.4-x86_64-2.txz: Rebuilt. Fixed a bug in a previous patch where a svc_freeargs() call ended up freeing a static pointer causing rpcbind to crash. Thanks to Jonathan Woithe, Rafael Jorge Csura Szendrodi, and Robby Workman for identifying the problem and helping to test a fix. Added /etc/default/rpc config file (useful for setting static port assignments). Thanks to shasta and Robby Workman. n/stunnel-5.42-x86_64-1.txz: Upgraded. n/yptools-2.14-x86_64-8.txz: Rebuilt. Added /etc/default/yp config file for setting additional options. Thanks to shasta and Robby Workman. xap/geeqie-1.3-x86_64-2.txz: Rebuilt. Linked against exiv2-0.26. xfce/xfce4-terminal-0.8.6-x86_64-1.txz: Upgraded. isolinux/initrd.img: Rebuilt. kernels/*: Upgraded. usb-and-pxe-installers/usbboot.img: Rebuilt.
Diffstat (limited to 'slackware64-current/source/l/libwebp')
-rwxr-xr-xslackware64-current/source/l/libwebp/libwebp.SlackBuild165
-rw-r--r--slackware64-current/source/l/libwebp/slack-desc19
2 files changed, 184 insertions, 0 deletions
diff --git a/slackware64-current/source/l/libwebp/libwebp.SlackBuild b/slackware64-current/source/l/libwebp/libwebp.SlackBuild
new file mode 100755
index 000000000..fac33b128
--- /dev/null
+++ b/slackware64-current/source/l/libwebp/libwebp.SlackBuild
@@ -0,0 +1,165 @@
+#!/bin/sh
+
+# Copyright 2017 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
+
+# Based on original SBo build script by powtrix (@gmail.com)
+
+PKGNAM=libwebp
+VERSION=${VERSION:-$(echo $PKGNAM-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
+BUILD=${BUILD:-1}
+
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$(uname -m)" in
+ i?86) ARCH=i586 ;;
+ arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) ARCH=$(uname -m) ;;
+ esac
+ export ARCH
+fi
+
+NUMJOBS=${NUMJOBS:-" -j7 "}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "s390" ]; then
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "armv7hl" ]; then
+ SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16"
+ LIBDIRSUFFIX=""
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp}
+PKG=$TMP/package-$PKGNAM
+
+rm -rf $PKG
+mkdir -p $TMP $PKG
+
+cd $TMP
+rm -rf $PKGNAM-$VERSION
+tar xvf $CWD/$PKGNAM-$VERSION.tar.xz || exit 1
+cd $PKGNAM-$VERSION || exit 1
+
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+# Configure:
+CFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --mandir=/usr/man \
+ --disable-static \
+ --disable-silent-rules \
+ --enable-everything \
+ --enable-swap-16bit-csp \
+ --enable-experimental \
+ --build=$ARCH-slackware-linux || exit 1
+
+# Build and install:
+make $NUMJOBS || make || exit 1
+make install DESTDIR=$PKG || exit 1
+
+# Build/install SWIG bindings:
+( cd swig
+ # Fix temporary working directory:
+ sed -i "/^tmpdir/s|=.*|= 'tmpdir'|" setup.py
+ CFLAGS="$SLKCFLAGS -I$PKG/usr/include" \
+ LDFLAGS="-L$PKG/usr/lib${LIBDIRSUFFIX} -lwebp" \
+ python setup.py install --root=$PKG
+ # Install the python3 module if python3 is installed:
+ if $(python3 -c 'import sys' 2>/dev/null); then
+ CFLAGS="$SLKCFLAGS -I$PKG/usr/include" \
+ LDFLAGS="-L$PKG/usr/lib${LIBDIRSUFFIX} -lwebp" \
+ python3 setup.py install --root=$PKG
+ fi
+)
+
+# Don't ship .la files:
+rm -f $PKG/usr/lib${LIBDIRSUFFIX}/*.la
+
+# Strip binaries:
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+# Add a documentation directory:
+mkdir -p $PKG/usr/doc/${PKGNAM}-$VERSION
+cp -a \
+ AUTHORS COPYING* ChangeLog NEWS* PATENTS README* \
+ $PKG/usr/doc/${PKGNAM}-$VERSION
+
+# Compress manual pages:
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do
+ ln -s $( readlink $i ).gz $i.gz
+ rm $i
+done
+
+# Compress and link manpages, if any:
+if [ -d $PKG/usr/man ]; then
+ ( cd $PKG/usr/man
+ for manpagedir in $(find . -type d -name "man*") ; do
+ ( cd $manpagedir
+ for eachpage in $( find . -type l -maxdepth 1 | grep -v '\.gz$') ; do
+ ln -s $( readlink $eachpage ).gz $eachpage.gz
+ rm $eachpage
+ done
+ gzip -9 *.?
+ )
+ done
+ )
+fi
+
+# If there's a ChangeLog, installing at least part of the recent history
+# is useful, but don't let it get totally out of control:
+if [ -r ChangeLog ]; then
+ DOCSDIR=$(echo $PKG/usr/doc/${PKGNAM}-$VERSION)
+ cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog
+ touch -r ChangeLog $DOCSDIR/ChangeLog
+fi
+
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz
+
diff --git a/slackware64-current/source/l/libwebp/slack-desc b/slackware64-current/source/l/libwebp/slack-desc
new file mode 100644
index 000000000..c37e841aa
--- /dev/null
+++ b/slackware64-current/source/l/libwebp/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+libwebp: libwebp (WebP photo compression library)
+libwebp:
+libwebp: WebP is a method of lossy compression that can be used on
+libwebp: photographic images. The degree of compression is adjustable so a
+libwebp: user can choose the trade-off between file size and image quality.
+libwebp: WebP typically achieves an average of 39% more compression than
+libwebp: JPEG and JPEG 2000, without loss of image quality.
+libwebp:
+libwebp: Homepage: https://developers.google.com/speed/webp/
+libwebp:
+libwebp: