Ticket #14780: Portfile.diff

File Portfile.diff, 1.2 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 17 years ago)
  • Portfile

    old new  
    2020
    2121checksums           md5     a342b2b4495b3e1394e161eb5d85d754 \
    2222                    sha1    9c5735f773922e580bf98c7c7dfda9bbed4c5191 \
    23 
     23                    rmd160  fb2c188abf5b8c297078ac1f913101734f72db5c
    2424
    2525depends_lib             port:jpeg
    2626
    27 patchfiles              patch-src_libjasper_base_jas_cm.c \
     27patchfiles              patch-src_libjasper_base_jas_cm.c.diff \
    2828                                patch-src_libjasper_jpc_jpc_dec.c.diff
    2929
    3030configure.args          --enable-shared                                         \
     
    3939post-destroot {
    4040        xinstall -m 755 -d ${destroot}${prefix}/share/doc
    4141        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
     42        system "chmod -R go-w ${destroot}${prefix}/share/doc/${name}"
    4243}
    4344
    4445variant jiv description {build a basic viewer as well} {
     
    4748        configure.args-append   --enable-opengl
    4849        configure.cppflags-append "-I${x11prefix}/include"
    4950}
     51
     52platform darwin 9 {
     53        if {[variant_isset jiv]} {
     54                set glLib \
     55                        /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
     56                configure.ldflags-append -Wl,-dylib_file,${glLib}:${glLib}
     57        }
     58}
     59
     60livecheck.check  regex
     61livecheck.regex  "JasPer version (.*) source distribution \\\(current version\\\)."