mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
86 lines
2.7 KiB
Tcl
86 lines
2.7 KiB
Tcl
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
PortGroup boost 1.0
|
|
PortGroup cmake 1.1
|
|
PortGroup github 1.0
|
|
PortGroup compilers 1.0
|
|
|
|
# Boost 1.76 has a bug in multiprecision library,
|
|
# which leads to including x86 header on powerpc.
|
|
boost.version 1.88
|
|
|
|
# NOTE: PaPILO is a header-based library, please bump all dependent ports on update
|
|
github.setup scipopt papilo 3.0.0 v
|
|
revision 1
|
|
categories math
|
|
license {LGPL-3 GPL-3}
|
|
|
|
maintainers nomaintainer
|
|
|
|
description Parallel Presolve for Integer and Linear Optimization
|
|
long_description {*}${description}
|
|
|
|
checksums rmd160 94102a2c01a27f1ec03bc9d1d2062ef3cad16772 \
|
|
sha256 04e2437c41404782fa31cd74a881b475d75a6e692e4c88a24bf48cf5d263a93d \
|
|
size 1949555
|
|
github.tarball_from archive
|
|
|
|
compilers.setup require_fortran
|
|
compiler.cxx_standard 2014
|
|
|
|
compiler.blacklist-append {clang < 1000}
|
|
|
|
depends_lib-append path:lib/libopenblas.dylib:OpenBLAS \
|
|
port:gmp \
|
|
port:onetbb
|
|
|
|
# In fact this has no effect at the moment:
|
|
# https://github.com/scipopt/papilo/issues/61
|
|
configure.args-append -DBUILD_SHARED_LIBS=ON
|
|
|
|
subport libpapilo {
|
|
# PaPILO as a library doesn't need any solver nor binaries
|
|
configure.args-append \
|
|
-DSCIP=OFF \
|
|
-DSOPLEX=OFF \
|
|
-DHIGHS=OFF \
|
|
-DPAPILO_NO_BINARIES=ON
|
|
}
|
|
|
|
if {${name} eq ${subport}} {
|
|
# and main port installs binaries, which are linked
|
|
# against HiGHS, soplex and scipt
|
|
depends_build-append \
|
|
port:soplex
|
|
depends_lib-append port:HiGHS \
|
|
port:mpfr \
|
|
port:scip \
|
|
port:zlib
|
|
|
|
configure.args-append \
|
|
-DSCIP=ON \
|
|
-DSOPLEX=ON \
|
|
-DHIGHS=ON
|
|
|
|
# but it shouldn't install libraries and headers
|
|
post-destroot {
|
|
delete ${destroot}${prefix}/lib
|
|
delete ${destroot}${prefix}/include
|
|
delete ${destroot}${prefix}/share
|
|
}
|
|
}
|
|
|
|
# PAPILO may be linked against libquadmath, prevent that by using GMP.
|
|
configure.args-append -DGMP=ON \
|
|
-DQUADMATH=OFF
|
|
|
|
# https://github.com/scipopt/papilo/issues/60
|
|
if {[string match *gcc* ${configure.compiler}]} {
|
|
# ___atomic_fetch_add_8
|
|
configure.ldflags-append \
|
|
-latomic
|
|
}
|
|
|
|
test.run yes
|