# $Id$

PortSystem 1.0
name			mdbconv
version			1.6
description		converts CSV text files to Palm MobileDB databases
categories		palm databases
long_description	This command line program converts from comma- \
			separated values (CSV) text files to MobileDB  \
			database files for use on PalmOS handhelds.

homepage		http://www.mobiledb.com/
platforms		darwin
maintainers		css
master_sites 		http://www.handmark.com/downloads/
distname		${name}freebsd3x
checksums		md5 092f0aa1ec1445c91333f316cc2ed513
use_configure		no

worksrcdir		${name}-${version}
pre-extract {		xinstall -d ${worksrcpath} }

extract.post_args	| tar -xf - -C ${worksrcpath}
post-extract {		file delete ${worksrcpath}/mdbconv }

build.cmd		gcc
build.args		mdbconv.c
build.target		-o ${name}

destroot {
	xinstall -m 755 -s ${worksrcpath}/${name} ${destroot}${prefix}/bin
}