source: trunk/dports/math/lp_solve/Portfile

Last change on this file was 148627, checked in by ryandesign@…, 19 months ago

lp_solve: update to 5.5.2.3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- 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
2# $Id: Portfile 148627 2016-05-13 03:50:40Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               muniversal 1.0
6
7name                    lp_solve
8version                 5.5.2.3
9set branch              [join [lrange [split ${version} .] 0 1] .]
10categories              math
11platforms               darwin
12license                 LGPL
13maintainers             ryandesign openmaintainer
14
15description             Linear Programming Solver
16
17long_description        Mixed Integer Linear Programming (MILP) solver. \
18                        lp_solve solves pure linear, (mixed) integer/binary, \
19                        semi-continuous and special ordered sets (SOS) models.
20
21homepage                http://lpsolve.sourceforge.net/${branch}/
22master_sites            sourceforge:project/lpsolve/lpsolve/${version}
23distname                ${name}_${version}_source
24worksrcdir              ${name}_${branch}
25
26checksums               rmd160  5657c47cf996979072fb2a1135d071e48da52ea1 \
27                        sha256  fb43ae8ad3bb4cee617863f7fc03b26ccc0ff7946a9cc4665cb9afa04c0a1cab
28
29post-extract {
30    xinstall -m 644 ${filespath}/Makefile ${worksrcpath}
31}
32
33patchfiles              patch-Wno-long-double.diff \
34                        patch-CC.diff \
35                        patch-TMPDIR.diff \
36                        patch-install_name.diff
37
38use_configure           no
39
40build.args              PREFIX="${prefix}"
41destroot.args           PREFIX="${prefix}"
42
43if {[variant_isset universal]} {
44    set merger_must_run_binaries yes
45    foreach arch ${configure.universal_archs} {
46        lappend merger_build_args(${arch}) CC='${configure.cc} -arch ${arch}'
47    }
48} else {
49    build.args-append CC='${configure.cc} ${configure.cc_archflags}'
50}
51
52livecheck.type          regex
53livecheck.url           http://sourceforge.net/projects/lpsolve/files/
54livecheck.regex         ${name}_(\[0-9.\]+)_source\\.tar
Note: See TracBrowser for help on using the repository browser.