# $Id: Portfile 72598 2010-10-21 12:36:01Z michaelld@macports.org $

PortSystem      1.0
PortGroup       qt4 1.0

name            psi-otr
version         0.5
categories      net chat
maintainers     rowue
revision        3
description     otr-plugin for psi - for plugin-enabled psi
long_description \
    Psi is a capable Jabber client aimed at experienced users.  Its design \
    goals are simplicity and stability. This plugin adds the support fot \
    off the message recording to psi

platforms       darwin

homepage        http://www.tfh-berlin.de/~s30935/
master_sites    http://www.tfh-berlin.de/~s30935/files/

checksums		md5     134c1c21e9e1bcb1e2a2e159bf895359 \
                sha1    6fcc76f40ee25c284c7c812ce86586c5e624c5d8 \
                rmd160  86eb4db5f6cc96e23bad81f63b6d745cf0beca3e

depends_lib     port:psi \
                port:libotr

patchfiles      patch-psi-otr.pro.diff 

configure.cmd   ${qt_qmake_cmd}
configure.pre_args
configure.post_args
configure.args

post-patch {
			reinplace "s|PREFIX|${prefix}|" ${worksrcpath}/psi-otr.pro
}

destroot {
        xinstall -m 755 -d ${destroot}${applications_dir}/psi.app/Contents/Resources/plugins
        file copy ${worksrcpath}/libpsi-otr.bundle ${destroot}${applications_dir}/psi.app/Contents/Resources/plugins
}



