# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0
name             bsflite
version          0.84
categories       net
maintainers      toby
description      The Minimalist AIM Client
long_description \
	BSFlite is a rather small and "minimalistic" client for AOL's \
	Instant Messenger service. Instead of having a full screen \
	console interface, BSFlite employs a command line interface \
	that allows your fingers to do all of the work without \
	needlessly sifting through windows.
homepage         http://bsflite.sourceforge.net/
platforms        darwin
master_sites     sourceforge
checksums        md5 3a99ffaa6ce03175e87e974a13c44690 \
                 sha1 2d2f97f17725f8a2dd55fbfc8bcbe6379205bddd \
                 rmd160 ad33b826dcc5b7ea44673305bd5271648e0bd119

patchfiles       patch-Makefile \
                 patch-imcomm__Makefile

configure {
	reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/Makefile
	reinplace "s|__CC__|${configure.cc}|" ${worksrcpath}/Makefile
	reinplace "s|__CFLAGS__|${configure.cflags}|" ${worksrcpath}/Makefile
	reinplace "s|__LDFLAGS__|${configure.ldflags}|" ${worksrcpath}/Makefile

	reinplace "s|__CC__|${configure.cc}|" ${worksrcpath}/imcomm/Makefile
	reinplace "s|__CFLAGS__|${configure.cflags}|" ${worksrcpath}/imcomm/Makefile
}

livecheck.type   regex
livecheck.regex  current release is (\[^ \]+)
