# $Id$ PortSystem 1.0 name jasper version 1.900.1 revision 1 categories graphics platforms darwin maintainers nomaintainer description Library for manipulating JPEG-2000 images long_description \ The JasPer Project is an open-source initiative to provide a free \ software-based reference implementation of the codec specified in the \ JPEG-2000 Part-1 standard (i.e., ISO/IEC 15444-1). homepage http://www.ece.uvic.ca/~mdadams/jasper/ master_sites ${homepage}software/ use_zip yes checksums md5 a342b2b4495b3e1394e161eb5d85d754 \ sha1 9c5735f773922e580bf98c7c7dfda9bbed4c5191 \ rmd160 fb2c188abf5b8c297078ac1f913101734f72db5c depends_lib port:jpeg patchfiles patch-src_libjasper_base_jas_cm.c.diff \ patch-src_libjasper_jpc_jpc_dec.c.diff configure.args --enable-shared \ --disable-static \ --disable-opengl \ --mandir=\\\${prefix}/share/man \ --infodir=\\\${prefix}/share/info use_parallel_build yes test.run yes test.target check post-destroot { xinstall -m 755 -d ${destroot}${prefix}/share/doc copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}-${version} file attributes ${destroot}${prefix}/share/doc/${name}-${version} -permissions go-w } variant jiv description {build a basic viewer as well} { depends_lib-append port:glut \ lib:libX11.6:xorg configure.args-delete --disable-opengl configure.args-append --enable-opengl configure.cppflags-append "-I${x11prefix}/include" } platform darwin 9 { if {[variant_isset jiv]} { set glLib \ /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib configure.ldflags-append -Wl,-dylib_file,${glLib}:${glLib} } } livecheck.check regex livecheck.regex "JasPer version (.*) source distribution \\\(current version\\\)."