# $Id: Portfile 30236 2007-10-22 23:15:10Z jmpp@macports.org $

PortSystem 1.0

name			libb64
version			1.1
categories		mail
platforms		darwin
maintainers		nomaintainer
description		C library for fast encoding/decoding into and from base64
long_description	\
libb64 is a library of ANSI C routines for fast encoding/decoding data into \
and from a base64-encoded format. C++ wrappers are included, as well as the \
source code for standalone encoding and decoding executables.

homepage		http://libb64.sourceforge.net/
master_sites	sourceforge
distname		${distname}.src
checksums		md5 bd4e95e62f2dd8a220503e0bf5a2dfad

worksrcdir		${name}

use_configure	no

destroot {
	xinstall -m 755 -W ${worksrcpath}/src b64dec b64enc decoder encoder \
		${destroot}${prefix}/bin
	xinstall -m 644 ${worksrcpath}/src/libb64.a \
		${destroot}${prefix}/lib
	file copy ${worksrcpath}/include/b64 ${destroot}${prefix}/include
}

