Files

66 lines
2.2 KiB
Tcl
Raw Permalink Normal View History

2022-11-15 23:23:49 +01: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 boost 1.0
2024-09-10 07:04:09 +08:00
# Match soplex
2026-05-03 10:41:13 +04:00
boost.version 1.88
2024-09-10 07:04:09 +08:00
2022-11-15 23:23:49 +01:00
name TOPCOM
version 1.1.2
2026-05-03 10:41:13 +04:00
revision 3
2022-11-15 23:23:49 +01:00
categories math
license GPL-2+
maintainers nomaintainer
2022-11-15 23:23:49 +01:00
homepage https://www.wm.uni-bayreuth.de/de/team/rambau_joerg/TOPCOM/
description Triangulations Of Point Configurations and Oriented Matroids
long_description {*}${description}
master_sites https://www.wm.uni-bayreuth.de/de/team/rambau_joerg/TOPCOM-Downloads/
extract.suffix .tgz
2022-11-24 02:14:10 +01:00
distfiles ${name}-[string map {. _} ${version}]${extract.suffix}
2022-11-15 23:23:49 +01:00
checksums rmd160 145443b533690b34529475661b58703d5be0011e \
sha256 4fb10754ee5b76056441fea98f2c8dee5db6f2984d8c14283b49239ad4378ab6 \
size 7924000
2023-06-14 22:31:08 -05:00
worksrcdir topcom-${version}
2022-11-15 23:23:49 +01:00
patchfiles system-cddlib-qso.diff
compiler.cxx_standard 2017
configure.cxxflags-append -std=c++17
2022-11-24 02:14:10 +01:00
# error: 'shared_mutex' is unavailable: introduced in macOS 10.12
if {${os.platform} eq "darwin" && ${os.major} < 16} {
# lucky me I may simple replaces std::shared_mutex to boost::shared_mutex
# anyway, it requires to link against boost_thread-mt
patchfiles-append boost-shared-mutex.diff
configure.ldflags-append \
-lboost_thread-mt
}
2022-11-15 23:23:49 +01:00
use_autoreconf yes
autoreconf.args -fvi
2024-09-10 07:04:09 +08:00
depends_lib-append port:bzip2 \
2022-11-15 23:23:49 +01:00
port:cddlib \
port:gmp \
2024-09-10 07:04:09 +08:00
port:libpapilo \
port:QSopt_ex \
2022-11-15 23:23:49 +01:00
port:soplex
configure.args --enable-soplex \
--enable-qsoptex
2024-09-10 07:04:09 +08:00
# /opt/local/include/papilo/misc/tbb.hpp: fatal error:
# tbb/blocked_range.h: No such file or directory
depends_build-append port:onetbb
2022-11-15 23:23:49 +01:00
livecheck.type regex
livecheck.regex "Download ${name}-(\[\\d.\]+)"
livecheck.url https://www.wm.uni-bayreuth.de/de/team/rambau_joerg/TOPCOM-Downloads/index.html