2023-08-26 11:23:44 +02:00
|
|
|
|
# -*- 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 cmake 1.1
|
|
|
|
|
|
PortGroup github 1.0
|
|
|
|
|
|
PortGroup muniversal 1.1
|
|
|
|
|
|
|
2024-07-26 10:54:45 +08:00
|
|
|
|
github.setup ampl asl 2f5d9de248c53a3063bba23af2013cd3db768bf8
|
|
|
|
|
|
version 20240106
|
2023-08-26 11:23:44 +02:00
|
|
|
|
revision 0
|
|
|
|
|
|
|
|
|
|
|
|
categories math
|
2024-11-06 15:34:34 +01:00
|
|
|
|
maintainers nomaintainer
|
2023-08-26 11:23:44 +02:00
|
|
|
|
|
2023-09-07 20:25:03 +02:00
|
|
|
|
license BSD
|
2023-08-26 11:23:44 +02:00
|
|
|
|
|
|
|
|
|
|
description ASL is A Modeling Language for Mathematical Programming (AMPL) Solver Library
|
|
|
|
|
|
long_description {*}${description}.
|
|
|
|
|
|
|
2024-07-26 10:54:45 +08:00
|
|
|
|
checksums rmd160 5556051b6addff78eff4d69c53e45bf4e898e28b \
|
|
|
|
|
|
sha256 79c7ffa64f686231cf75b008df48a8dc3d176326c0d1563c7f78911cd51d2579 \
|
|
|
|
|
|
size 1615712
|
|
|
|
|
|
github.tarball_from archive
|
2023-08-27 01:08:09 +02:00
|
|
|
|
|
2023-08-26 11:23:44 +02:00
|
|
|
|
configure.args-append -DBUILD_SHARED_LIBS=ON \
|
|
|
|
|
|
-DBUILD_CPP=ON
|
|
|
|
|
|
|
|
|
|
|
|
variant threads description {builds multithreaded libraries, compiled using OpenMP switches} {
|
2024-07-26 10:56:10 +08:00
|
|
|
|
compiler.openmp_version 2.5
|
|
|
|
|
|
|
|
|
|
|
|
if {[string match *clang* ${configure.compiler}]} {
|
|
|
|
|
|
depends_lib-append port:libomp
|
|
|
|
|
|
|
|
|
|
|
|
configure.cflags-append -I${prefix}/include/libomp
|
|
|
|
|
|
configure.ldflags-append \
|
|
|
|
|
|
-L${prefix}/lib/libomp -lomp
|
|
|
|
|
|
} elseif {[string match *gcc* ${configure.compiler}]} {
|
|
|
|
|
|
# The build fails to add needed flags automatically:
|
|
|
|
|
|
# https://github.com/ampl/asl/issues/17
|
|
|
|
|
|
configure.cflags-append -fopenmp
|
|
|
|
|
|
configure.ldflags-append \
|
|
|
|
|
|
-fopenmp
|
|
|
|
|
|
}
|
2023-08-26 11:23:44 +02:00
|
|
|
|
|
|
|
|
|
|
configure.args-append -DBUILD_MT_LIBS=ON
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-07-26 10:56:10 +08:00
|
|
|
|
# cc1: error: unrecognized command line option "-Wno-unused-result"
|
|
|
|
|
|
# arith.h: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘byte’
|
|
|
|
|
|
compiler.blacklist-append *gcc-4.0 *gcc-4.2
|
2023-08-27 14:41:17 +02:00
|
|
|
|
|
|
|
|
|
|
# PowerPC support should be enabled manually
|
|
|
|
|
|
if {${build_arch} in [list ppc ppc64]} {
|
|
|
|
|
|
configure.args-append -Dppc_support=ON
|
|
|
|
|
|
}
|
2024-07-26 10:56:10 +08:00
|
|
|
|
|
|
|
|
|
|
default_variants-append +threads
|