diff -urN /opt/local/var/macports/sources/rsync.macports.org/release/ports/math/lp_solve/Portfile math/lp_solve/Portfile
old
|
new
|
|
2 | 2 | # $Id: Portfile 71090 2010-09-01 06:47:44Z ryandesign@macports.org $ |
3 | 3 | |
4 | 4 | PortSystem 1.0 |
| 5 | PortGroup muniversal 1.0 |
5 | 6 | |
6 | 7 | name lp_solve |
7 | 8 | version 5.5.2.0 |
| 9 | revision 1 |
8 | 10 | set branch [join [lrange [split ${version} .] 0 1] .] |
9 | 11 | categories math |
10 | 12 | platforms darwin |
… |
… |
|
36 | 38 | |
37 | 39 | use_configure no |
38 | 40 | |
39 | | build.args CC="${configure.cc} ${configure.cc_archflags}" \ |
40 | | PREFIX="${prefix}" |
41 | | |
42 | | destroot { |
43 | | switch ${configure.build_arch} { |
44 | | x86_64 - |
45 | | ppc64 { |
46 | | set bits 64 |
47 | | } |
48 | | i386 - |
49 | | ppc { |
50 | | set bits 32 |
51 | | } |
| 41 | if { ![variant_isset universal] } { |
| 42 | build.args-append PREFIX="${prefix}" CC='${configure.cc} -arch ${build_arch}' |
| 43 | } else { |
| 44 | set merger_must_run_binaries "yes" |
| 45 | foreach arch {i386 x86_64 ppc ppc64} { |
| 46 | lappend merger_build_args(${arch}) PREFIX="${prefix}" CC='${configure.cc} -arch ${arch}' |
52 | 47 | } |
53 | | xinstall -m 755 -W ${worksrcpath}/lpsolve55/bin/osx${bits} \ |
54 | | liblpsolve55.a liblpsolve55.dylib ${destroot}${prefix}/lib |
55 | | xinstall -m 755 -W ${worksrcpath}/lp_solve/bin/osx${bits} \ |
56 | | lp_solve ${destroot}${prefix}/bin |
57 | | xinstall -m 755 -d ${destroot}${prefix}/include/lpsolve |
58 | | eval xinstall -m 644 [glob ${worksrcpath}/*.h] \ |
59 | | ${destroot}${prefix}/include/lpsolve/ |
60 | 48 | } |
61 | 49 | |
| 50 | destroot.args PREFIX="${prefix}" |
| 51 | |
62 | 52 | livecheck.type regex |
63 | 53 | livecheck.url http://sourceforge.net/projects/lpsolve/files/ |
64 | 54 | livecheck.regex ${name}_(\[0-9.\]+)_source\\.tar |
diff -urN /opt/local/var/macports/sources/rsync.macports.org/release/ports/math/lp_solve/files/Makefile math/lp_solve/files/Makefile
old
|
new
|
|
8 | 8 | |
9 | 9 | $(SUBDIRS): |
10 | 10 | cd "$@" && c="$(CC)" prefix="$(PREFIX)" sh -x ./ccc.osx |
| 11 | |
| 12 | install: |
| 13 | install -m 755 -d ${DESTDIR}${PREFIX}/lib |
| 14 | install -m 755 lpsolve55/bin/*/liblpsolve55.a lpsolve55/bin/*/liblpsolve55.dylib ${DESTDIR}${PREFIX}/lib/ |
| 15 | install -m 755 -d ${DESTDIR}${PREFIX}/bin |
| 16 | install -m 755 lp_solve/bin/*/lp_solve ${DESTDIR}${PREFIX}/bin/ |
| 17 | install -m 755 -d ${DESTDIR}${PREFIX}/include/lpsolve |
| 18 | install -m 644 *.h ${DESTDIR}${PREFIX}/include/lpsolve/ |