# -*- 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 # $Id$ PortSystem 1.0 PortGroup muniversal 1.0 name libjpeg-turbo version 1.2.1 categories graphics conflicts jpeg platforms darwin supported_archs i386 x86_64 maintainers rmstonecipher openmaintainer description libjpeg-turbo is a derivative of libjpeg that uses SIMD instructions (MMX, SSE2, \ NEON) to accelerate baseline JPEG compression and decompression on x86, x86-64, \ and ARM systems. long_description ${description} On such systems, libjpeg-turbo is generally 2-4x as fast as the \ unmodified version of libjpeg, all else being equal. license BSD homepage http://www.${name}.org master_sites sourceforge:project/${name}/${version}/ checksums rmd160 2298b1a919018695fa4a9851dac3e50443235196 \ sha256 cb3323f054a02cedad193bd0ca418d46934447f995d19e678ea64f78e4903770 depends_lib port:nasm use_autoreconf yes autoreconf.args -fvi configure.args-append --with-jpeg8 NASM=${prefix}/bin/nasm switch ${build_arch} { i386 { configure.args-append --host i686-apple-darwin } x86_64 { configure.args-append --host x86_64-apple-darwin } } post-destroot { xinstall -d ${destroot}${prefix}/share/doc/${name} move ${destroot}${prefix}/share/doc/example.c ${destroot}${prefix}/share/doc/${name}/ move ${destroot}${prefix}/share/doc/libjpeg.txt ${destroot}${prefix}/share/doc/${name}/ move ${destroot}${prefix}/share/doc/README ${destroot}${prefix}/share/doc/${name}/ move ${destroot}${prefix}/share/doc/README-turbo.txt ${destroot}${prefix}/share/doc/${name}/ move ${destroot}${prefix}/share/doc/structure.txt ${destroot}${prefix}/share/doc/${name}/ move ${destroot}${prefix}/share/doc/usage.txt ${destroot}${prefix}/share/doc/${name}/ move ${destroot}${prefix}/share/doc/wizard.txt ${destroot}${prefix}/share/doc/${name}/ } livecheck.url http://sourceforge.net/projects/libjpeg-turbo/files/ livecheck.regex "${name}\/files\/(\\d+(?:\\.\\d+)*)"