# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 97504 2012-09-07 16:16:54Z hum@macports.org $ PortSystem 1.0 PortGroup muniversal 1.0 name lp_solve version 5.5.2.0 set branch [join [lrange [split ${version} .] 0 1] .] categories math platforms darwin license LGPL maintainers ryandesign openmaintainer description Linear Programming Solver long_description Mixed Integer Linear Programming (MILP) solver. \ lp_solve solves pure linear, (mixed) integer/binary, \ semi-continuous and special ordered sets (SOS) models. homepage http://lpsolve.sourceforge.net/${branch}/ master_sites sourceforge:project/lpsolve/lpsolve/${version} distname ${name}_${version}_source worksrcdir ${name}_${branch} checksums md5 167c0fb4ab178e0b7ab50bf0a635a836 \ sha1 e2830053cf079839b9ce21662cbc886ac6d31c80 \ rmd160 23a69c71062747ddf4cbc57120cd7db5f9378ac2 post-extract { xinstall -m 644 ${filespath}/Makefile ${worksrcpath} } patchfiles patch-Wno-long-double.diff \ patch-CC.diff \ patch-TMPDIR.diff \ patch-install_name.diff use_configure no build.args PREFIX="${prefix}" destroot.args PREFIX="${prefix}" if {[variant_isset universal]} { set merger_must_run_binaries yes foreach arch ${configure.universal_archs} { lappend merger_build_args(${arch}) CC='${configure.cc} -arch ${arch}' } } else { build.args-append CC='${configure.cc} ${configure.cc_archflags}' } livecheck.type regex livecheck.url http://sourceforge.net/projects/lpsolve/files/ livecheck.regex ${name}_(\[0-9.\]+)_source\\.tar