Ticket #26032: psi-otr.diff

File psi-otr.diff, 2.2 KB (added by michaelld (Michael Dickens), 14 years ago)

Diffs for psi-otr Portfile and files.

  • psi-otr/files/patch-psi-otr.pro.diff

     
    55 CONFIG += plugin
    66 CONFIG += release
    77-LIBS += -lotr
    8 +LIBS += -lotr -LPREFIX/lib
     8+LIBS += -lotr -L@PREFIX@/lib
    99 DEPENDPATH += .
    1010 INCLUDEPATH += .
    11 +INCLUDEPATH += PREFIX/include
     11+INCLUDEPATH += @PREFIX@/include
    1212 QT += xml
    1313 DESTDIR        = .
    1414-target.path = /usr/local/share/psi/plugins
    15 +target.path = PREFIX/share/psi/plugins
     15+target.path = @APPLICATIONS_DIR@/psi.app/Contents/Resources/plugins
    1616 INSTALLS += target
    1717 
    1818 # Input
  • psi-otr/Portfile

     
     1# -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
    12# $Id$
    23
    34PortSystem      1.0
     
    67version         0.5
    78categories      net chat
    89maintainers     rowue
    9 revision        2
     10revision        3
    1011description     otr-plugin for psi - for plugin-enabled psi
    1112long_description \
    1213    Psi is a capable Jabber client aimed at experienced users.  Its design \
     
    2728
    2829patchfiles      patch-psi-otr.pro.diff
    2930
    30 configure.cmd   qmake-mac
     31configure.cmd   qmake
    3132configure.pre_args
    3233configure.post_args
    3334configure.args
    3435
    3536post-patch {
    36                         reinplace "s|PREFIX|${prefix}|" ${worksrcpath}/psi-otr.pro
     37    reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/psi-otr.pro
     38    reinplace "s|@APPLICATIONS_DIR@|${applications_dir}|" \
     39        ${worksrcpath}/psi-otr.pro
    3740}
    3841
    39 destroot {
    40         xinstall -m 755 -d ${destroot}${applications_dir}/psi.app/Contents/Resources/plugins
    41         file copy ${worksrcpath}/libpsi-otr.bundle ${destroot}${applications_dir}/psi.app/Contents/Resources/plugins
     42destroot.destdir INSTALL_ROOT="${destroot}"
     43
     44post-destroot {
     45    # fix library path of installed library/ies
     46    foreach fixfile [exec find ${destroot} -name "*.dylib" | \
     47                         sed -e "s@${destroot}@@g"] {
     48        system "install_name_tool -id ${fixfile} ${destroot}${fixfile}"
     49    }
    4250}
    43 
    44 
    45