source: trunk/dports/graphics/mozjpeg/Portfile

Last change on this file was 136736, checked in by raimue@…, 2 years ago

graphics/mozjpeg:
Update to version 3.1,
synchronize with libjpeg-turbo, on which this port was based on,
closes #47821

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 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 136736 2015-05-25 12:27:31Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6PortGroup           github 1.0
7
8github.setup        mozilla mozjpeg 3.1 v
9conflicts           jpeg libjpeg-turbo
10categories          graphics
11platforms           darwin
12supported_archs     i386 x86_64
13license             BSD
14maintainers         raimue openmaintainer
15
16description         A fork of libjpeg-turbo by Mozilla with 'jpgcrush' feature
17long_description \
18    mozjpeg is a fork of libjpeg-turbo with jpgcrush functionality to reduce \
19    the size of JPEG images. The 'jpgcrush' feature finds the progressive \
20    coding configuration which uses the fewest bits. This most frequently \
21    reduces file size by 2-10%, but those are not hard limits. Significantly \
22    greater reductions have been observed.
23
24checksums           rmd160  8884d2934aa0fb1e7b193c4506068f4a27106e68 \
25                    sha256  20262eafd43746a120d968533f7ced62ae6ad8d3119d861774419ec13c640d40
26
27depends_build       port:pkgconfig \
28                    port:nasm
29
30use_autoreconf          yes
31autoreconf.args-append  --force
32
33configure.args      --disable-silent-rules \
34                    --with-jpeg8 \
35                    NASM=${prefix}/bin/nasm
36
37array set merger_host {
38    x86_64  x86_64-apple-darwin
39    i386    i686-apple-darwin
40}
41if {![variant_isset universal]
42        && [info exists merger_host(${configure.build_arch})]} {
43    configure.args-append --host=$merger_host(${configure.build_arch})
44}
45
46test.run            yes
47
48destroot.args       docdir='${prefix}/share/doc/${name}' \
49                    exampledir='${prefix}/share/doc/${name}'
Note: See TracBrowser for help on using the repository browser.