Changeset 97961


Ignore:
Timestamp:
Sep 21, 2012, 1:16:18 AM (12 years ago)
Author:
michaelld@…
Message:

qt4-mac-postgresql91-plugin : fix +debug and +universal variants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/aqua/qt4-mac-postgresql91-plugin/Portfile

    r97954 r97961  
    2121master_sites        trolltech
    2222distname            qt-everywhere-opensource-src-${version}
    23 
    2423
    2524checksums           sha1    bc352a283610e0cd2fe0dbedbc45613844090fcb \
     
    6968        depends_lib-append  port:${mp.port}
    7069        configure.args      INCLUDEPATH+="${prefix}/include ${prefix}/include/${mp.port} ${prefix}/include/${mp.port}/server ${prefix}/include/Qt" \
    71                             LIBS+="-L${prefix}/lib -L${prefix}/lib/${mp.port} -lQtSql -lpq" \
    72                             psql.pro
     70                            LIBS+="-L${prefix}/lib -L${prefix}/lib/${mp.port} -lpq"
     71        configure.post_args psql.pro
     72
     73        variant debug description {Build both release and debug plugin} {}
     74
     75        pre-configure {
     76            configure.args-append CONFIG+=\"${qt_arch_types}\"
     77        }
     78
     79        post-patch {
     80            if {![variant_isset debug]} {
     81                reinplace "s@debug_and_release@release@" \
     82                    ${worksrcpath}/src/plugins/qpluginbase.pri
     83            }
     84        }
     85
    7386    } else {
    7487
     
    8093            depends_lib-append  port:${mp.port}
    8194            configure.args      INCLUDEPATH+="${prefix}/include ${prefix}/include/${mp.port} ${prefix}/include/${mp.port}/server ${prefix}/include/Qt" \
    82                                 LIBS+="-L${prefix}/lib -L${prefix}/lib/${mp.port} -lQtSql -lpq" \
    83                                 psql.pro
     95                                LIBS+="-L${prefix}/lib -L${prefix}/lib/${mp.port} -lpq"
     96            configure.post_args psql.pro
     97
     98            variant debug description \
     99                {Build both release and debug plugin} {}
     100
     101            pre-configure {
     102                configure.args-append CONFIG+=\"${qt_arch_types}\"
     103            }
     104
     105            post-patch {
     106                if {![variant_isset debug]} {
     107                    reinplace "s@debug_and_release@release@" \
     108                        ${worksrcpath}/src/plugins/qpluginbase.pri
     109                }
     110            }
    84111        }
    85112    }
Note: See TracChangeset for help on using the changeset viewer.