Ticket #18801: Portfile.diff

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

    old new  
    11# $Id: Portfile 42046 2008-11-13 21:49:32Z nox@macports.org $
    22
    33PortSystem 1.0
     4PortGroup  muniversal 1.0
    45
    56name            tiff
    67version         3.8.2
    7 revision    2
     8revision    3
    89categories      graphics
    910maintainers     waqar@macports.org
    1011description     Library and tools for dealing with Tag Image File Format
     
    3132            sha1 549e67b6a15b42bfcd72fe17cda7c9a198a393eb \
    3233            rmd160 1b4d825e3be08764e953fc58246d0c25ab4dd17d
    3334
     35# Turn on OpenGL with --with-apple-opengl-framework.
     36patchfiles      patch-configure.diff
     37
    3438depends_lib     port:jpeg port:zlib
    3539
    3640test.run        yes
     
    5458}
    5559
    5660platform macosx {
    57     configure.args-append   --with-apple-opengl-framework
    58     if {[variant_isset universal]} {
    59         patchfiles-append patch-universal-pre-configure.diff
    60     }
    61     post-configure {
    62         if {[variant_isset universal]} {
    63             system "cd ${worksrcpath} && patch -p0 < ${filespath}/patch-universal-post-configure.diff"
     61    if { ![variant_isset universal] } {
     62        configure.args-append   --with-apple-opengl-framework
     63    } else {
     64        # Tiger does not have 64-bit OpenGL.
     65        if { ${os.major} > 8 } {
     66            configure.args-append   --with-apple-opengl-framework
     67        } else {
     68            global merger_configure_args
     69            array set merger_configure_args {
     70                ppc  --with-apple-opengl-framework
     71               i386  --with-apple-opengl-framework
     72            }
    6473        }
    6574    }
    6675}
    6776
    68 platform darwin 9 {
    69     configure.ldflags-append    -dylib_file \
    70                         /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:\
    71                         /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    72 }
    73 
    7477livecheck.check regex
    7578livecheck.url   http://www.remotesensing.org/libtiff/
    7679livecheck.regex {v(\d+(?:\.\d+)*)</a>}