source: trunk/dports/graphics/openjpeg/Portfile

Last change on this file was 141802, checked in by ryandesign@…, 21 months ago

openjpeg: rewrite master_sites to avoid redirects

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 141802 2015-10-28 22:37:29Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6
7# see #47197
8cmake.out_of_source yes
9
10name                openjpeg
11version             2.1.0
12categories          graphics
13platforms           darwin
14license             BSD
15
16maintainers         mcalhoun openmaintainer
17
18description         Library for manipulating JPEG-2000 images
19
20long_description    The OpenJPEG library is an open-source JPEG 2000 codec. \
21                    It has been developed in order to promote the use of JPEG \
22                    2000, the new still-image compression standard from the \
23                    Joint Photographic Experts Group (JPEG).
24
25homepage            http://sourceforge.net/projects/openjpeg.mirror/
26master_sites        sourceforge:project/openjpeg.mirror/${version}/
27
28checksums           rmd160  dc6e77a2539ab4071cf1a1b62f653fea13707b54 \
29                    sha256  1232bb814fd88d8ed314c94f0bfebb03de8559583a33abbe8c64ef3fc0a8ff03
30
31depends_build-append \
32                    port:pkgconfig
33
34depends_lib         port:libpng \
35                    port:tiff \
36                    port:lcms2 \
37                    port:zlib \
38                    port:jbigkit
39
40configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include
41
42pre-activate {
43    # openjpeg < 1.5.0 accidentally installed items directly into
44    # ${prefix}/share/man bypassing ${destroot}; remove them if found.
45    foreach m {man1/image_to_j2k.1.gz man1/j2k_dump.1.gz man1/j2k_to_image.1.gz man3/libopenjpeg.3.gz} {
46        set filepath ${prefix}/share/man/${m}
47        if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} {
48            if {[catch {delete ${filepath}}]} {
49                ui_warn "Cannot delete ${filepath}; please remove it manually"
50            }
51        }
52    }
53}
54
55livecheck.type      sourceforge
56livecheck.name      openjpeg.mirror
57livecheck.distname  ${livecheck.name}/files
Note: See TracBrowser for help on using the repository browser.