source: trunk/dports/graphics/libjpeg-turbo/Portfile

Last change on this file was 152695, checked in by larryv@…, 10 months ago

libjpeg-turbo: Assume maintainership

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 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 152695 2016-09-14 21:01:11Z ryandesign@macports.org $
3PortSystem          1.0
4PortGroup           muniversal 1.0
5
6name                libjpeg-turbo
7conflicts           jpeg mozjpeg
8
9version             1.5.0
10categories          graphics
11platforms           darwin
12license             BSD
13maintainers         larryv
14
15description         SIMD-accelerated libjpeg-compatible JPEG codec \
16                    library
17long_description    libjpeg-turbo is a JPEG image codec that uses SIMD \
18                    instructions (MMX, SSE2, NEON) to accelerate \
19                    baseline JPEG compression and decompression on \
20                    x86, x86-64, and ARM systems. On such systems, \
21                    libjpeg-turbo is generally 2-4x as fast as \
22                    libjpeg, all else being equal. On other types of \
23                    systems, libjpeg-turbo can still outperform \
24                    libjpeg by a significant amount, by virtue of its \
25                    highly-optimized Huffman coding routines. In many \
26                    cases, the performance of libjpeg-turbo rivals \
27                    that of proprietary high-speed JPEG codecs.
28homepage            http://www.${name}.org
29
30master_sites        sourceforge:project/${name}/${version}
31checksums           md5     3fc5d9b6a8bce96161659ae7a9939257 \
32                    rmd160  5ec39b43d6ab39864739ea4009a22c59cb5924cf \
33                    sha256  9f397c31a67d2b00ee37597da25898b03eb282ccd87b135a50a69993b6a2035f
34
35depends_build       port:nasm
36
37use_autoreconf          yes
38autoreconf.args-append  --force
39
40configure.args      --disable-silent-rules \
41                    --with-jpeg8 \
42                    NASM=${prefix}/bin/nasm
43
44array set merger_host {
45    x86_64  x86_64-apple-darwin
46    i386    i686-apple-darwin
47    ppc64   powerpc64-apple-darwin
48    ppc     powerpc-apple-darwin
49}
50if {![variant_isset universal]
51        && [info exists merger_host(${configure.build_arch})]} {
52    configure.args-append --host=$merger_host(${configure.build_arch})
53}
54
55test.run            yes
56
57destroot.args       docdir='${prefix}/share/doc/${name}' \
58                    exampledir='${prefix}/share/doc/${name}'
59
60livecheck.distname  ${name}/files
Note: See TracBrowser for help on using the repository browser.