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

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

graphics/mozjpeg:
Upgrade to version 3.0

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