# $Id: Portfile,v 1.2 2006/01/21 01:40:23 mww Exp $

PortSystem 1.0

name			palm-db-tools
version			0.3.6
categories		palm databases
maintainers		cssdev@mac.com
description		convert between CSV text files and Palm databases
long_description	This package contains several utilities that allow \
			you to convert text files to and from several      \
			different Palm Pilot flat-file database formats.   \
			The utilities support DB, MobileDB, List, and      \
			JFile v3.x formats.

homepage		http://pilot-db.sourceforge.net/
platforms		darwin

master_sites		sourceforge
master_sites.mirror_subdir	${name}
distname		${name}-0_3_6
checksums		md5 483d2b18dcc2ef8cd5f7e27715d43bfe
patchfiles		patch-flatfile-Makefile.in

worksrcdir		${name}
configure.args		--disable-warnings --enable-static

destroot {
	xinstall -m 755 -W ${worksrcpath}/flatfile csv2pdb pdb2csv \
		${destroot}${prefix}/bin
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath}/docs manual.html manual.txt \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 ${worksrcpath}/models/xldbtools.xlt \
		${destroot}${prefix}/share/doc/${name}
}

platform darwin 8 {
	configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}
