source: trunk/dports/graphics/openjpeg15/Portfile

Last change on this file was 141801, checked in by ryandesign@…, 2 years ago

openjpeg15: update to 1.5.2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 141801 2015-10-28 22:36:22Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        uclouvain openjpeg 1.5.2 version.
8name                openjpeg15
9categories          graphics
10platforms           darwin
11license             BSD
12
13maintainers         nomaintainer
14
15description         Library for manipulating JPEG-2000 images
16
17long_description    The OpenJPEG library is an open-source JPEG 2000 codec. \
18                    It has been developed in order to promote the use of JPEG \
19                    2000, the new still-image compression standard from the \
20                    Joint Photographic Experts Group (JPEG).
21
22master_sites        sourceforge:project/openjpeg.mirror/${version}/
23dist_subdir         openjpeg
24
25checksums           rmd160  7b97b05e7a604da082ec8db03b6021b58537fb91 \
26                    sha256  15df7b194a5d8dba0052cd21c17a4dc761149a770a907d73fffb972078c28a87
27
28patchfiles          patch-configure.ac.diff
29
30depends_build       port:pkgconfig
31
32depends_lib         port:libpng \
33                    port:tiff \
34                    port:lcms2 \
35                    port:zlib \
36                    port:jbigkit
37
38use_autoreconf      yes
39autoreconf.args     -fvi
40
41pre-activate {
42    # openjpeg < 1.5.0 accidentally installed items directly into
43    # ${prefix}/share/man bypassing ${destroot}; remove them if found.
44    foreach m {man1/image_to_j2k.1.gz man1/j2k_dump.1.gz man1/j2k_to_image.1.gz man3/libopenjpeg.3.gz} {
45        set filepath ${prefix}/share/man/${m}
46        if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} {
47            if {[catch {delete ${filepath}}]} {
48                ui_warn "Cannot delete ${filepath}; please remove it manually"
49            }
50        }
51    }
52
53    if {![catch {set installed [lindex [registry_active openjpeg] 0]}]} {
54        set openjpeg_version [lindex $installed 1]
55        if {[vercmp $openjpeg_version 2.0.0] < 0} {
56            registry_deactivate_composite openjpeg "" [list ports_nodepcheck 1]
57        }
58    }
59}
60
61livecheck.regex     archive/${github.tag_prefix}(1\.\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.