# -*- 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$ PortSystem 1.0 PortGroup muniversal 1.0 name lp_solve version 5.5.2.3 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 rmd160 5657c47cf996979072fb2a1135d071e48da52ea1 \ sha256 fb43ae8ad3bb4cee617863f7fc03b26ccc0ff7946a9cc4665cb9afa04c0a1cab 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