# $Id: Portfile,v 1.1 2005/11/05 15:43:47 mww Exp $

PortSystem 1.0

name			lp_solve
version			4.0
categories		math
platforms		darwin
maintainers		mww@opendarwin.org
description		Linear Programming Solver
long_description	This is the lp_solve, A free linear programming solver \
			that can process standard MPL format, LP format or be accessed \
			directly from your code via API calls from a library. This \
			lp_solve versions is released under the LGPL license.

homepage		http://groups.yahoo.com/group/lp_solve/
master_sites	ftp://ftp.es.ele.tue.nl/pub/lp_solve/old_versions_which_you_probably_dont_want/ freebsd
distname		${name}_${version}
checksums		md5 58892f708d7f78664bce80c1ebc250f9

use_configure	no

destroot {
	xinstall -m 755 -W ${worksrcpath} lp2mps lp_solve mps2lp \
		${destroot}${prefix}/bin
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
	xinstall -m 644 -W ${worksrcpath} HARTMUT_DOCUMENTATION MPS.description \
		SOSInterpolation.pdf ${destroot}${prefix}/share/doc/${name}
	eval xinstall -m 644 [glob ${worksrcpath}/lp_examples/*] \
		${destroot}${prefix}/share/doc/${name}/examples
}

