[77941] trunk/dports/graphics/openjpeg

mcalhoun at macports.org mcalhoun at macports.org
Sun Apr 17 13:34:20 PDT 2011


Revision: 77941
          http://trac.macports.org/changeset/77941
Author:   mcalhoun at macports.org
Date:     2011-04-17 13:34:20 -0700 (Sun, 17 Apr 2011)
Log Message:
-----------
openjpeg: Update version 1.3 -> 1.4-r697.
New version uses configure files, so build process is entirely different.

Revision Links:
--------------
    http://trac.macports.org/changeset/697

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

Removed Paths:
-------------
    trunk/dports/graphics/openjpeg/files/

Modified: trunk/dports/graphics/openjpeg/Portfile
===================================================================
--- trunk/dports/graphics/openjpeg/Portfile	2011-04-17 19:35:52 UTC (rev 77940)
+++ trunk/dports/graphics/openjpeg/Portfile	2011-04-17 20:34:20 UTC (rev 77941)
@@ -4,10 +4,10 @@
 PortSystem 1.0
 
 name             openjpeg
-version          1.3
-revision         3
+version          1.4-r697
+revision         0
 categories       graphics
-maintainers      mcalhoun
+maintainers      mcalhoun openmaintainer
 description      Library for manipulating JPEG-2000 images
 long_description \
 	The OpenJPEG library is an open-source JPEG 2000 codec. \
@@ -18,56 +18,34 @@
 platforms        darwin
 
 homepage         http://www.openjpeg.org/
-master_sites     ${homepage}
+master_sites     http://${name}.googlecode.com/files/
 
 checksums \
-    md5     f9a3ccfa91ac34b589e9bf7577ce8ff9          \
-    sha1    8d6870d9500ea09e0b1d30b981bea1c8de534de4  \
-    rmd160  2a22cc123058b1974cd1bf3898044acabceba26c
+    md5     7870bb84e810dec63fcf3b712ebb93db \
+    sha1    9ef6a08ecf5944962b4e2cd7569ac01a8eaa66d0 \
+    rmd160  c0d88c4a312651bac17d50bd6917e1b678fcf8f7
 
-use_configure    no
+depends_lib port:libpng port:tiff port:lcms2 port:zlib
 
-patchfiles       patch-opj_malloc.h.diff \
-                 patch-Makefile.osx.diff
+set major [lindex [split [lindex [split ${version} {-}] 0] {.}] 0]
+set minor [lindex [split [lindex [split ${version} {-}] 0] {.}] 1]
+set rev [lindex [split ${version} {-}] 1]
 
-post-patch {
-    reinplace \
-        "s| -o root -g wheel | -o ${install.user} -g ${install.group} |g" \
-        ${worksrcpath}/Makefile.osx
-    reinplace \
-        "s|VER_MINOR = 1.2|VER_MINOR = ${version}|g" \
-        ${worksrcpath}/Makefile.osx
-}
+distname ${name}_v${major}_${minor}_sources_${rev}
+extract.suffix .tgz
 
-post-configure {
-    # Patch is done in post-configure so that ${configure.cc} is available.
-    reinplace -E \
-        "s|^CC = .*$|CC = ${configure.cc}|g" \
-        ${worksrcpath}/Makefile.osx
-    reinplace -E \
-        "s|^LIBTOOLDYN = .*$|LIBTOOLDYN = ${configure.cc}|g" \
-        ${worksrcpath}/Makefile.osx
+use_parallel_build no
+
+if { ![variant_isset universal] } {
+    build.args-append "COMPILERFLAGS='${configure.cflags}'"
+} else {
+    build.args-append "COMPILERFLAGS='${configure.cflags} ${configure.universal_cflags}'"
 }
 
-set verDir       [join [split ${version} {.}] {_}]
-distname         ${name}_v${verDir}
-worksrcdir       OpenJPEG_v${verDir}
-
-build.args \
-    -f Makefile.osx \
-    PREFIX=${prefix}
-
-destroot.args    ${build.args}
-
-variant universal {
-    post-configure {
-        reinplace -E \
-            "s|^\(COMPILERFLAGS = .*\)$|\\1 ${configure.universal_cflags}|" \
-            ${worksrcpath}/Makefile.osx
-        reinplace -E \
-            "s|^\(LIBTOOLDYN = .*\)$|\\1 ${configure.universal_ldflags}|g" \
-            ${worksrcpath}/Makefile.osx
-    }
+post-patch {
+    reinplace \
+        "s|pkgconf_dir = /usr/lib/pkgconfig|pkgconf_dir = \$(DESTDIR)${prefix}/lib/pkgconfig|g" \
+        ${worksrcpath}/Makefile.in
 }
 
 livecheck.url    http://www.openjpeg.org/index.php?menu=news
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110417/90ee12f1/attachment.html>


More information about the macports-changes mailing list