Ticket #16941: Portfile.patch

File Portfile.patch, 1.7 KB (added by adfernandes (Andrew Fernandes), 16 years ago)

slightly different patch (keeps old djview3 as a variant)

  • Portfile

    old new  
    33PortSystem 1.0
    44
    55name       djvulibre
    6 version    3.5.19
     6version    3.5.21
    77categories      graphics www
    88platforms       darwin
    99maintainers     nomaintainer
     
    1515                            looks nicer on a screen and consume less client resources than competing \
    1616                            formats.
    1717
    18 homepage        http://djvulibre.djvuzone.org/
     18homepage        http://djvulibre.sourceforge.net/
    1919master_sites    sourceforge:djvu
    20 checksums       md5 0330d87ad337e408e21e1018eb511839
     20checksums       md5 4c6f3eb03ffbd067b6d2fe2344b0d9ad
    2121
    2222depends_lib     port:libiconv \
    23                 port:jpeg \
     23                        port:jpeg \
    2424                port:tiff \
    25                 port:qt3
    26 
    27 configure.cflags-append "-I${prefix}/include"
    28 
    29 configure.ldflags-append    "-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
     25                port:png \
     26                        port:zlib
    3027
    3128configure.args  --mandir=${prefix}/share/man \
    3229                --enable-threads \
    3330                --enable-shared \
    3431                --enable-xmltools \
    35                 --with-qt=${prefix}/lib/qt3
     32                --disable-djview
     33               
     34
     35variant djview3 description {Build the (outdated) djview3 viewer. The newer QT4-based viewer called 'djview4' is now a separate package called 'djview'.} {
     36    depends_lib-append          port:qt3
     37    configure.args-delete       --disable-djview
     38    configure.args-append       --with-qt=${prefix}/lib/qt3
     39    configure.ldflags-append    "-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
     40}
     41