source: trunk/dports/math/lp_solve/Portfile @ 70571

Last change on this file since 70571 was 70571, checked in by ryandesign@…, 7 years ago

lp_solve: update to 5.5.2.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 70571 2010-08-14 03:11:49Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    lp_solve
6version                 5.5.2.0
7set branch              [join [lrange [split ${version} .] 0 1] .]
8categories              math
9platforms               darwin
10maintainers             ryandesign openmaintainer
11
12description             Linear Programming Solver
13
14long_description        Mixed Integer Linear Programming (MILP) solver. \
15                        lp_solve solves pure linear, (mixed) integer/binary, \
16                        semi-continuous and special ordered sets (SOS) models.
17
18homepage                http://lpsolve.sourceforge.net/${branch}/
19master_sites            sourceforge:lpsolve
20distname                ${name}_${version}_source
21worksrcdir              ${name}_${branch}
22
23checksums               md5     167c0fb4ab178e0b7ab50bf0a635a836 \
24                        sha1    e2830053cf079839b9ce21662cbc886ac6d31c80 \
25                        rmd160  23a69c71062747ddf4cbc57120cd7db5f9378ac2
26
27post-extract {
28    xinstall -m 644 ${filespath}/Makefile ${worksrcpath}
29}
30
31patchfiles              patch-Wno-long-double.diff \
32                        patch-CC.diff \
33                        patch-TMPDIR.diff \
34                        patch-install_name.diff
35
36use_configure           no
37
38build.args              CC="${configure.cc} ${configure.cc_archflags}" \
39                        PREFIX="${prefix}"
40
41destroot {
42    switch ${configure.build_arch} {
43        x86_64 -
44        ppc64 {
45            set bits 64
46        }
47        i386 -
48        ppc {
49            set bits 32
50        }
51    }
52    xinstall -m 755 -W ${worksrcpath}/lpsolve55/bin/osx${bits} \
53        liblpsolve55.a liblpsolve55.dylib ${destroot}${prefix}/lib
54    xinstall -m 755 -W ${worksrcpath}/lp_solve/bin/osx${bits} \
55        lp_solve ${destroot}${prefix}/bin
56    xinstall -m 755 -d ${destroot}${prefix}/include/lpsolve
57    eval xinstall -m 644 [glob ${worksrcpath}/*.h] \
58        ${destroot}${prefix}/include/lpsolve/
59}
60
61livecheck.type          regex
62livecheck.url           http://sourceforge.net/projects/lpsolve/files/
63livecheck.regex         ${name}_(\[0-9.\]+)_source\\.tar
Note: See TracBrowser for help on using the repository browser.