diff options
author | haarp <main.haarp@gmail.com> | 2016-03-19 23:25:06 +0100 |
---|---|---|
committer | haarp <main.haarp@gmail.com> | 2016-03-19 23:25:06 +0100 |
commit | 5a03387c40e73ca12ac44da7a2328ec17a8cc103 (patch) | |
tree | 15a523830fc10b784d635cdcbe76c240ff5b252c /media-libs | |
parent | Add Ken Silverman's kzip (closed-source but great compression) (diff) | |
download | haarp-5a03387c40e73ca12ac44da7a2328ec17a8cc103.tar.gz haarp-5a03387c40e73ca12ac44da7a2328ec17a8cc103.tar.bz2 haarp-5a03387c40e73ca12ac44da7a2328ec17a8cc103.zip |
Add (hacky ebuild of) mozjpeg, an encoder that beats jpegoptim
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/mozjpeg/Manifest | 2 | ||||
-rw-r--r-- | media-libs/mozjpeg/mozjpeg-3.1.ebuild | 31 |
2 files changed, 33 insertions, 0 deletions
diff --git a/media-libs/mozjpeg/Manifest b/media-libs/mozjpeg/Manifest new file mode 100644 index 0000000..86dadb4 --- /dev/null +++ b/media-libs/mozjpeg/Manifest @@ -0,0 +1,2 @@ +DIST mozjpeg-3.1-release-source.tar.gz 1550798 SHA256 deedd88342c5da219f0047d9a290cd58eebe1b7a513564fcd8ebc49670077a1f SHA512 2d6423a1776d1af3e5bea31b6e5e5ff50d9c333befa0a65bf8e502fb2216780136e3bf409e7b8cd52a13b7c2a04bb4496de84d377ab5c4ff7ea327c91d58a498 WHIRLPOOL 21fd5b791ffb2011f2e8dd67ee760e37dce2468d4efee26944f14344c43df29fddef0134d6ba60b761fda88c25f1d7a58f0f056763d732a413dbaad8a2f20d37 +EBUILD mozjpeg-3.1.ebuild 845 SHA256 a3c02adacdfece473a3fb759a6ccf41e7a12485cc59c48b264e8d0adf367db92 SHA512 515af199a66775443cafc059675c64fcfe00619c8a9bf89c08e79c70088d7e77074d634ee108a79542a36c693612d87cb9b5e38a1f16e0727c254968544433c9 WHIRLPOOL 32cd5b17028861f3175e7900c1bab698a0151eb3d4715b9279c54e5fc78c276e59eebccd41a60a19a4211346dcd8143dfe69c4e5d58f5c75c0e415df1e9bfbb0 diff --git a/media-libs/mozjpeg/mozjpeg-3.1.ebuild b/media-libs/mozjpeg/mozjpeg-3.1.ebuild new file mode 100644 index 0000000..4953af9 --- /dev/null +++ b/media-libs/mozjpeg/mozjpeg-3.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +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 .$(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 +} |