# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
PortSystem	1.0
name		pidgin-encryption
version		3.0
categories	net
maintainers	reifferscheid.org:rsync
description	Pidgin encryption plugin
depends_lib	port:nss port:pidgin

long_description ${description}
configure.args	--with-nss-includes=${prefix}/include/nss \
		--with-nss-libs=${prefix}/lib \
		--with-nspr-includes=${prefix}/include/nspr \
		--with-nspr-libs=${prefix}/lib

homepage	http://pidgin-encrypt.sourceforge.net/
platforms       darwin
master_sites	http://downloads.sourceforge.net/pidgin-encrypt/
checksums	pidgin-encryption-3.0.tar.gz md5 3f3f8e9a15d19e084d54bfbbd2db9d77

worksrcdir      ${worksrcpath}

build {system "cd ${worksrcdir} && make"}

destroot {
        xinstall -m 755 -d ${destroot}${prefix}/lib/pidgin/
        eval xinstall -m 755 ${worksrcpath}/.libs/encrypt.so ${destroot}${prefix}/lib/pidgin/
        eval xinstall -m 755 ${worksrcpath}/.libs/encrypt.la ${destroot}${prefix}/lib/pidgin/
}
