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

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

graphics/mozjpeg:
Update to version 1.0.1.
Fix +universal using muniversal port group.

  • 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 119203 2014-04-20 12:50:23Z raimue@macports.org $
3PortSystem          1.0
4PortGroup           muniversal 1.0
5PortGroup           github 1.0
6
7github.setup        mozilla mozjpeg 1.0.1 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  83a1aef7d730a41fd9d564321ec4b8cc221cc91b \
23                    sha256  f3ddbdc323ef3daf6b6958ba1365fc869819d07b201727be1ab3fdaa3213b0c4
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}
38lappend merger_configure_args(i386) --host i686-apple-darwin
39lappend merger_configure_args(x86_64) --host x86_64-apple-darwin
40
41post-destroot {
42    xinstall -d ${destroot}${prefix}/share/doc/${name}
43    move ${destroot}${prefix}/share/doc/example.c ${destroot}${prefix}/share/doc/${name}/
44    move ${destroot}${prefix}/share/doc/libjpeg.txt ${destroot}${prefix}/share/doc/${name}/
45    move ${destroot}${prefix}/share/doc/README ${destroot}${prefix}/share/doc/${name}/
46    move ${destroot}${prefix}/share/doc/README-turbo.txt ${destroot}${prefix}/share/doc/${name}/
47    move ${destroot}${prefix}/share/doc/structure.txt ${destroot}${prefix}/share/doc/${name}/
48    move ${destroot}${prefix}/share/doc/usage.txt ${destroot}${prefix}/share/doc/${name}/
49    move ${destroot}${prefix}/share/doc/wizard.txt ${destroot}${prefix}/share/doc/${name}/
50}
Note: See TracBrowser for help on using the repository browser.