source: trunk/dports/graphics/mozjpeg/Portfile @ 117637

Last change on this file since 117637 was 117637, checked in by raimue@…, 6 years ago

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

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- 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
2# $Id: Portfile 117637 2014-03-06 14:56:49Z raimue@macports.org $
3PortSystem          1.0
4PortGroup           muniversal 1.0
5PortGroup           github 1.0
6
7github.setup        mozilla mozjpeg 1.0 v
8categories          graphics
9conflicts           jpeg libjpeg-turbo
10platforms           darwin
11supported_archs     i386 x86_64
12maintainers         raimue openmaintainer
13description         A fork of libjpeg-turbo by Mozilla with 'jpgcrush' feature
14long_description \
15    mozjpeg is a fork of libjpeg-turbo with jpgcrush functionality to reduce \
16    the size of JPEG images. The 'jpgcrush' feature finds the progressive \
17    coding configuration which uses the fewest bits. This most frequently \
18    reduces file size by 2-10%, but those are not hard limits. Significantly \
19    greater reductions have been observed.
20license             BSD
21
22checksums           rmd160  f585b217c6729b78a34fa27b336118897c912a55 \
23                    sha256  6c4845d7fa0bddd77e4a209e8e81bde11af8524dcd2cb0bb10bfd9519548ec95
24
25depends_lib         port:nasm
26use_autoreconf      yes
27autoreconf.args     -fvi
28
29configure.args-append   --with-jpeg8 NASM=${prefix}/bin/nasm
30switch ${build_arch} {
31    i386 {
32        configure.args-append --host i686-apple-darwin
33    }
34    x86_64 {
35        configure.args-append --host x86_64-apple-darwin
36    }
37}
38
39post-destroot {
40    xinstall -d ${destroot}${prefix}/share/doc/${name}
41    move ${destroot}${prefix}/share/doc/example.c ${destroot}${prefix}/share/doc/${name}/
42    move ${destroot}${prefix}/share/doc/libjpeg.txt ${destroot}${prefix}/share/doc/${name}/
43    move ${destroot}${prefix}/share/doc/README ${destroot}${prefix}/share/doc/${name}/
44    move ${destroot}${prefix}/share/doc/README-turbo.txt ${destroot}${prefix}/share/doc/${name}/
45    move ${destroot}${prefix}/share/doc/structure.txt ${destroot}${prefix}/share/doc/${name}/
46    move ${destroot}${prefix}/share/doc/usage.txt ${destroot}${prefix}/share/doc/${name}/
47    move ${destroot}${prefix}/share/doc/wizard.txt ${destroot}${prefix}/share/doc/${name}/
48}
Note: See TracBrowser for help on using the repository browser.