Skip to content
Permalink
Browse files

graphics/mozjpeg:

Add new port, a fork of libjpeg-turbo.
Mark as conflicting with both jpeg and libjpeg-turbo.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@117637 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
raimue committed Mar 6, 2014
1 parent e7a55d3 commit a249fe3d5f405b9bb3f221725a78e99ee69cd595
Showing with 50 additions and 2 deletions.
  1. +1 −1 graphics/jpeg/Portfile
  2. +1 −1 graphics/libjpeg-turbo/Portfile
  3. +48 −0 graphics/mozjpeg/Portfile
@@ -4,7 +4,7 @@
PortSystem 1.0

name jpeg
conflicts libjpeg-turbo
conflicts libjpeg-turbo mozjpeg
version 9a
revision 1
categories graphics
@@ -6,7 +6,7 @@ PortGroup muniversal 1.0
name libjpeg-turbo
version 1.3.0
categories graphics
conflicts jpeg
conflicts jpeg mozjpeg
platforms darwin
supported_archs i386 x86_64
maintainers rmstonecipher openmaintainer
@@ -0,0 +1,48 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
PortSystem 1.0
PortGroup muniversal 1.0
PortGroup github 1.0

github.setup mozilla mozjpeg 1.0 v
categories graphics
conflicts jpeg libjpeg-turbo
platforms darwin
supported_archs i386 x86_64
maintainers raimue openmaintainer
description A fork of libjpeg-turbo by Mozilla with 'jpgcrush' feature
long_description \
mozjpeg is a fork of libjpeg-turbo with jpgcrush functionality to reduce \
the size of JPEG images. The 'jpgcrush' feature finds the progressive \
coding configuration which uses the fewest bits. This most frequently \
reduces file size by 2-10%, but those are not hard limits. Significantly \
greater reductions have been observed.
license BSD

checksums rmd160 f585b217c6729b78a34fa27b336118897c912a55 \
sha256 6c4845d7fa0bddd77e4a209e8e81bde11af8524dcd2cb0bb10bfd9519548ec95

depends_lib port:nasm
use_autoreconf yes
autoreconf.args -fvi

configure.args-append --with-jpeg8 NASM=${prefix}/bin/nasm
switch ${build_arch} {
i386 {
configure.args-append --host i686-apple-darwin
}
x86_64 {
configure.args-append --host x86_64-apple-darwin
}
}

post-destroot {
xinstall -d ${destroot}${prefix}/share/doc/${name}
move ${destroot}${prefix}/share/doc/example.c ${destroot}${prefix}/share/doc/${name}/
move ${destroot}${prefix}/share/doc/libjpeg.txt ${destroot}${prefix}/share/doc/${name}/
move ${destroot}${prefix}/share/doc/README ${destroot}${prefix}/share/doc/${name}/
move ${destroot}${prefix}/share/doc/README-turbo.txt ${destroot}${prefix}/share/doc/${name}/
move ${destroot}${prefix}/share/doc/structure.txt ${destroot}${prefix}/share/doc/${name}/
move ${destroot}${prefix}/share/doc/usage.txt ${destroot}${prefix}/share/doc/${name}/
move ${destroot}${prefix}/share/doc/wizard.txt ${destroot}${prefix}/share/doc/${name}/
}

0 comments on commit a249fe3

Please sign in to comment.
You can’t perform that action at this time.