[136736] trunk/dports/graphics/mozjpeg/Portfile

raimue at macports.org raimue at macports.org
Mon May 25 05:27:32 PDT 2015


Revision: 136736
          https://trac.macports.org/changeset/136736
Author:   raimue at macports.org
Date:     2015-05-25 05:27:31 -0700 (Mon, 25 May 2015)
Log Message:
-----------
graphics/mozjpeg:
Update to version 3.1,
synchronize with libjpeg-turbo, on which this port was based on,
closes #47821

Modified Paths:
--------------
    trunk/dports/graphics/mozjpeg/Portfile

Modified: trunk/dports/graphics/mozjpeg/Portfile
===================================================================
--- trunk/dports/graphics/mozjpeg/Portfile	2015-05-25 12:25:15 UTC (rev 136735)
+++ trunk/dports/graphics/mozjpeg/Portfile	2015-05-25 12:27:31 UTC (rev 136736)
@@ -5,13 +5,14 @@
 PortGroup           muniversal 1.0
 PortGroup           github 1.0
 
-github.setup        mozilla mozjpeg 3.0 v
-revision            1
-categories          graphics
+github.setup        mozilla mozjpeg 3.1 v
 conflicts           jpeg libjpeg-turbo
+categories          graphics
 platforms           darwin
 supported_archs     i386 x86_64
+license             BSD
 maintainers         raimue openmaintainer
+
 description         A fork of libjpeg-turbo by Mozilla with 'jpgcrush' feature
 long_description \
     mozjpeg is a fork of libjpeg-turbo with jpgcrush functionality to reduce \
@@ -19,36 +20,30 @@
     coding configuration which uses the fewest bits. This most frequently \
     reduces file size by 2-10%, but those are not hard limits. Significantly \
     greater reductions have been observed.
-license             BSD
 
-checksums           rmd160  fd8fbfaa3d4592181dc0d088c93c47938fa9fa04 \
-                    sha256  e73cac2e2503eb9b974913e16e89421daa2289111d1daa874295ccfc34a175ef
+checksums           rmd160  8884d2934aa0fb1e7b193c4506068f4a27106e68 \
+                    sha256  20262eafd43746a120d968533f7ced62ae6ad8d3119d861774419ec13c640d40
 
 depends_build       port:pkgconfig \
                     port:nasm
 
-use_autoreconf      yes
-autoreconf.args     -fvi
+use_autoreconf          yes
+autoreconf.args-append  --force
 
-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
-    }
-}
-lappend merger_configure_args(i386) --host i686-apple-darwin
-lappend merger_configure_args(x86_64) --host x86_64-apple-darwin
+configure.args      --disable-silent-rules \
+                    --with-jpeg8 \
+                    NASM=${prefix}/bin/nasm
 
-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}/
+array set merger_host {
+    x86_64  x86_64-apple-darwin
+    i386    i686-apple-darwin
 }
+if {![variant_isset universal]
+        && [info exists merger_host(${configure.build_arch})]} {
+    configure.args-append --host=$merger_host(${configure.build_arch})
+}
+
+test.run            yes
+
+destroot.args       docdir='${prefix}/share/doc/${name}' \
+                    exampledir='${prefix}/share/doc/${name}'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150525/f428484c/attachment-0001.html>


More information about the macports-changes mailing list