# $Id: Portfile,v 1.1 2005/11/24 19:13:19 mww Exp $

PortSystem 1.0

name			libmba
version			0.9.1
categories		devel
platforms		darwin
maintainers		mww@opendarwin.org
description		A collection of C modules potentially useful to any project
long_description	The libmba package is a collection of mostly independent C \
			modules potentially useful to any project. There are hashmap, \
			linkedlist, and stack ADTs, a DOM-like interface that can load and \
			store XML files for simple XML processing, a module for managing \
			error codes and associated messages across separate C libraries, \
			and more.

homepage		http://www.ioplex.com/~miallen/libmba/
master_sites	http://www.ioplex.com/~miallen/libmba/dl/
checksums		md5 c208fb5c3826a6251d20f492e5afa696
patchfiles		patch-Makefile patch-mktool.c

post-patch {
	reinplace "s|__LIBDIR__|${prefix}/lib|g" ${worksrcpath}/mktool.c
}

use_configure	no

build.args		prefix=${prefix}

destroot.destdir	prefix=${destroot}${prefix}

platform darwin 8 {
	pre-configure {
		reinplace "s|gcc|/usr/bin/gcc-4.0|g" ${worksrcpath}/mktool.c
	}
	build.args-append CC=/usr/bin/gcc-4.0
}

