Changeset 136736


Ignore:
Timestamp:
May 25, 2015, 12:27:31 PM (5 years ago)
Author:
raimue@…
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/mozjpeg/Portfile

    r130884 r136736  
    66PortGroup           github 1.0
    77
    8 github.setup        mozilla mozjpeg 3.0 v
    9 revision            1
     8github.setup        mozilla mozjpeg 3.1 v
     9conflicts           jpeg libjpeg-turbo
    1010categories          graphics
    11 conflicts           jpeg libjpeg-turbo
    1211platforms           darwin
    1312supported_archs     i386 x86_64
     13license             BSD
    1414maintainers         raimue openmaintainer
     15
    1516description         A fork of libjpeg-turbo by Mozilla with 'jpgcrush' feature
    1617long_description \
     
    2021    reduces file size by 2-10%, but those are not hard limits. Significantly \
    2122    greater reductions have been observed.
    22 license             BSD
    2323
    24 checksums           rmd160  fd8fbfaa3d4592181dc0d088c93c47938fa9fa04 \
    25                     sha256  e73cac2e2503eb9b974913e16e89421daa2289111d1daa874295ccfc34a175ef
     24checksums           rmd160  8884d2934aa0fb1e7b193c4506068f4a27106e68 \
     25                    sha256  20262eafd43746a120d968533f7ced62ae6ad8d3119d861774419ec13c640d40
    2626
    2727depends_build       port:pkgconfig \
    2828                    port:nasm
    2929
    30 use_autoreconf      yes
    31 autoreconf.args     -fvi
     30use_autoreconf          yes
     31autoreconf.args-append  --force
    3232
    33 configure.args-append   --with-jpeg8 NASM=${prefix}/bin/nasm
    34 switch ${build_arch} {
    35     i386 {
    36         configure.args-append --host i686-apple-darwin
    37     }
    38     x86_64 {
    39         configure.args-append --host x86_64-apple-darwin
    40     }
     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
    4140}
    42 lappend merger_configure_args(i386) --host i686-apple-darwin
    43 lappend merger_configure_args(x86_64) --host x86_64-apple-darwin
     41if {![variant_isset universal]
     42        && [info exists merger_host(${configure.build_arch})]} {
     43    configure.args-append --host=$merger_host(${configure.build_arch})
     44}
    4445
    45 post-destroot {
    46     xinstall -d ${destroot}${prefix}/share/doc/${name}
    47     move ${destroot}${prefix}/share/doc/example.c ${destroot}${prefix}/share/doc/${name}/
    48     move ${destroot}${prefix}/share/doc/libjpeg.txt ${destroot}${prefix}/share/doc/${name}/
    49     move ${destroot}${prefix}/share/doc/README ${destroot}${prefix}/share/doc/${name}/
    50     move ${destroot}${prefix}/share/doc/README-turbo.txt ${destroot}${prefix}/share/doc/${name}/
    51     move ${destroot}${prefix}/share/doc/structure.txt ${destroot}${prefix}/share/doc/${name}/
    52     move ${destroot}${prefix}/share/doc/usage.txt ${destroot}${prefix}/share/doc/${name}/
    53     move ${destroot}${prefix}/share/doc/wizard.txt ${destroot}${prefix}/share/doc/${name}/
    54 }
     46test.run            yes
     47
     48destroot.args       docdir='${prefix}/share/doc/${name}' \
     49                    exampledir='${prefix}/share/doc/${name}'
Note: See TracChangeset for help on using the changeset viewer.