Ticket #15353: qt4-mac-pkgconfig-location.patch

File qt4-mac-pkgconfig-location.patch, 1.6 KB (added by clubjuggler@…, 16 years ago)

Move pkgconfig files to ${prefix}/lib/ directory to match default pkgconfig directory.

  • Portfile

    old new  
    3434# Once installed, they should not be moved so they can find each other
    3535# (e.g. assistant.app) and the examples directory
    3636set bindir ${prefix}/libexec/${name}/bin
     37set frameworkdir ${prefix}/Library/Frameworks
    3738
    3839post-configure {
    3940    # Assures local header is included instead of one from PCRE and OpenJPEG (and perhaps others).
     
    6162    -system-zlib        -qt-gif                                             \
    6263    -no-sql-ibase       -no-sql-mysql   -no-sql-odbc    -no-sql-psql        \
    6364    -no-sql-sqlite      -no-nis         -no-cups                            \
    64     -framework          -libdir '${prefix}/Library/Frameworks'              \
     65    -framework          -libdir '${frameworkdir}'                       \
    6566    -make libs          -make tools                                         \
    6667    -I${worksrcpath}/include -I${prefix}/include \
    6768    -L${worksrcpath}/lib -L${prefix}/lib
     
    101102        }
    102103    }
    103104   
     105    # Put pkgconfig directory in correct place (Fix Ticket #15353)
     106    system "mv ${destroot}${frameworkdir}/pkgconfig ${destroot}${prefix}/lib/"
     107
    104108    # install documentation
    105109    foreach doc {INSTALL LICENSE.GPL2 LICENSE.GPL3 OPENSOURCE-NOTICE.TXT README \
    106110                 GPL_EXCEPTION_ADDENDUM.TXT GPL_EXCEPTION.TXT} {
     
    116120}
    117121
    118122variant noframework description "Do not build frameworks" {
    119     configure.args-delete   -framework -libdir '${prefix}/Library/Frameworks'
     123    configure.args-delete   -framework -libdir '${frameworkdir}'
    120124    configure.args-append   -no-framework
    121125}
    122126