configure.env-append "PYTHON_EXTRA_LIBS=-Wl,-stack_size,1000000 -framework CoreFoundation ${python.lib}"
# -*- coding: utf-8; mode: tcl; tab-width: 4; c-basic-offset: 4 -*-
PortGroup active_variants 1.1
PortGroup compiler_blacklist_versions 1.0
categories python science
maintainers skewed.de:tiago {mmoll @mamoll}
description Efficient python graph module
long_description graph-tool is an efficient python module for manipulation \
and statistical analysis of graphs. The internal data \
structures and most algorithms are implemented in C++ with \
homepage http://graph-tool.skewed.de
master_sites http://downloads.skewed.de/graph-tool/
checksums rmd160 3da208242310af40b795974a6cf3d50af7edf631 \
sha256 4740c69720dfbebf8fb3e77057b3e6a257ccf0432cdaf7345f873247390e4313 \
distname ${realname}-${version}
python.versions 27 35 36 37
python.default_version 27
if {${os.major} <= 12 && ${os.platform} eq "darwin"} {
master_sites https://downloads.skewed.de/graph-tool/old/
distname ${realname}-${version}
checksums md5 317b29de0d3ef715fdc9281e078cfb17 \
sha1 108be4cf6212eb6886f172ea03813187f73e4c3c \
rmd160 cd2e8506522821750d70a97b951254f0a133d218
if {${name} ne ${subport}} {
compiler.blacklist *gcc* {clang <= 700.1.81} {macports-clang-3.[0-6]}
compiler.fallback-append macports-clang-4.0
configure.cxxflags-append -std=c++14 -stdlib=libc++
variant openmp description "Enable OpenMP" {
# make sure libomp is installed at runtime, even if the compiler gets uninstalled
depends_lib-append lib:${prefix}/lib/libomp/libomp:libomp
configure.args-append --enable-openmp
variant clang60 requires openmp conflicts clang70 description "Use clang-6.0 and enable OpenMP" {
configure.compiler macports-clang-6.0
variant clang70 requires openmp conflicts clang60 description "Use clang-6.0 and enable OpenMP" {
configure.compiler macports-clang-7.0
if {![variant_isset clang60]} {
default_variants-append +clang70