# -*- 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 select    1.0

# Pick the gcc version that provides the primary runtime.
# NOTE : The logic here must match that in the gccX ports *and*
# that in _resources/port1.0/group/compilers-1.0.tcl
set gcc_version     15

name                libgcc
epoch               3
version             ${gcc_version}
revision            0

conflicts           libgcc-devel

categories          lang
maintainers         nomaintainer

distfiles

use_configure       no

description         Provides the gcc runtime based on major version ${gcc_version}
long_description    {*}${description}

license             BSD
platforms           any

homepage            https://www.macports.org/

variant universal   { }

depends_lib         port:libgcc${gcc_version}

build { }

destroot {
   xinstall -d ${destroot}${prefix}/share/doc/${name}
   system "echo 'libgcc runtime is provided by libgcc${gcc_version}' > ${destroot}${prefix}/share/doc/${name}/README"
}
