# -*- 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 name openjpeg15 version 1.5.0 revision 0 categories graphics platforms darwin license BSD maintainers nomaintainer description Library for manipulating JPEG-2000 images long_description The OpenJPEG library is an open-source JPEG 2000 codec. \ It has been developed in order to promote the use of JPEG \ 2000, the new still-image compression standard from the \ Joint Photographic Experts Group (JPEG). homepage http://code.google.com/p/openjpeg/ master_sites googlecode:openjpeg dist_subdir openjpeg distname openjpeg-${version} checksums rmd160 ffa85dbb0a3ba1545bc6974f4950f466789c04ef \ sha256 c9908fab44432a2ed2550c457cb7e736da6d7c326f1203d23d1082d992364ace patchfiles patch-remove-t1_generate_luts.c-causing-main-symbol.diff depends_build port:pkgconfig depends_lib port:libpng \ port:tiff \ port:lcms2 \ port:zlib \ port:jbigkit pre-activate { # openjpeg < 1.5.0 accidentally installed items directly into # ${prefix}/share/man bypassing ${destroot}; remove them if found. foreach m {man1/image_to_j2k.1.gz man1/j2k_dump.1.gz man1/j2k_to_image.1.gz man3/libopenjpeg.3.gz} { set filepath ${prefix}/share/man/${m} if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} { if {[catch {delete ${filepath}}]} { ui_warn "Cannot delete ${filepath}; please remove it manually" } } } if {![catch {set installed [lindex [registry_active openjpeg] 0]}]} { set openjpeg_version [lindex $installed 1] if {[vercmp $openjpeg_version 2.0.0] < 0} { registry_deactivate_composite openjpeg "" [list ports_nodepcheck 1] } } } livecheck.url ${homepage} livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)"