media-libs/mozjpeg: add ebuild
Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
parent
4c8dd39940
commit
17a90e9acd
3 changed files with 42 additions and 0 deletions
30
media-libs/mozjpeg/mozjpeg-3.2.ebuild
Normal file
30
media-libs/mozjpeg/mozjpeg-3.2.ebuild
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Improved JPEG encoder based on libjpeg-turbo"
|
||||
HOMEPAGE="https://github.com/mozilla/mozjpeg"
|
||||
SRC_URI="https://github.com/mozilla/${PN}/releases/download/v${PV}/${P}-release-source.tar.gz"
|
||||
|
||||
LICENSE="BSD IJG"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="sys-libs/zlib"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue