Ticket #26032: psi-otr.diff
File psi-otr.diff, 2.2 KB (added by michaelld (Michael Dickens), 14 years ago) |
---|
-
psi-otr/files/patch-psi-otr.pro.diff
5 5 CONFIG += plugin 6 6 CONFIG += release 7 7 -LIBS += -lotr 8 +LIBS += -lotr -L PREFIX/lib8 +LIBS += -lotr -L@PREFIX@/lib 9 9 DEPENDPATH += . 10 10 INCLUDEPATH += . 11 +INCLUDEPATH += PREFIX/include11 +INCLUDEPATH += @PREFIX@/include 12 12 QT += xml 13 13 DESTDIR = . 14 14 -target.path = /usr/local/share/psi/plugins 15 +target.path = PREFIX/share/psi/plugins15 +target.path = @APPLICATIONS_DIR@/psi.app/Contents/Resources/plugins 16 16 INSTALLS += target 17 17 18 18 # 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 1 2 # $Id$ 2 3 3 4 PortSystem 1.0 … … 6 7 version 0.5 7 8 categories net chat 8 9 maintainers rowue 9 revision 210 revision 3 10 11 description otr-plugin for psi - for plugin-enabled psi 11 12 long_description \ 12 13 Psi is a capable Jabber client aimed at experienced users. Its design \ … … 27 28 28 29 patchfiles patch-psi-otr.pro.diff 29 30 30 configure.cmd qmake -mac31 configure.cmd qmake 31 32 configure.pre_args 32 33 configure.post_args 33 34 configure.args 34 35 35 36 post-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 37 40 } 38 41 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 42 destroot.destdir INSTALL_ROOT="${destroot}" 43 44 post-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 } 42 50 } 43 44 45