media-libs/mozjpeg: update to 3.3.1

Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
Anton Schubert 2018-06-11 15:13:42 +02:00
parent 17a90e9acd
commit 746f1850ff
2 changed files with 11 additions and 4 deletions

View file

@ -0,0 +1,37 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools
DESCRIPTION="Improved JPEG encoder based on libjpeg-turbo"
HOMEPAGE="https://github.com/mozilla/mozjpeg"
SRC_URI="https://github.com/mozilla/mozjpeg/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD IJG"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="sys-libs/zlib"
DEPEND="${RDEPEND}"
#S=${WORKDIR}/${P}
src_configure() {
eautoreconf
default
}
src_install() {
# wrapper to use renamed libjpeg.so (allows coexistence with libjpeg-turbo)
echo -e '#!/bin/sh\nLD_PRELOAD="libmozjpeg.so $LD_PRELOAD" .$(basename $0) "$@"' > wrapper
newbin wrapper mozcjpeg
newbin wrapper mozjpegtran
newbin .libs/cjpeg .mozcjpeg
newbin .libs/jpegtran .mozjpegtran
newlib.so .libs/libjpeg.so.62.2.0 libmozjpeg.so
dodoc README.md README-mozilla.txt usage.txt wizard.txt
}