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

name                cssc
version             1.4.1
revision            0
checksums           rmd160  995c4dffa92c2f8614f139e14d54097e94b1a6ea \
                    sha256  d1bed0c80246ee4cd49d0aa45307c075d0876fe531057bb1c8b28f5330d651ef \
                    size    2269725

categories          devel
maintainers         {ryandesign @ryandesign} openmaintainer
license             GPL-3+

description         SCCS replacement

long_description    CSSC is the GNU Project's replacement for SCCS. SCCS is \
                    a proprietary suite of tools which is provided with most \
                    commercial versions of Unix.

homepage            https://www.gnu.org/software/cssc/
master_sites        gnu
distname            CSSC-${version}

patchfiles          patch-src-version.cc.in.diff \
                    cstdlib.patch

configure.args      --enable-binary

# ld: Undefined symbols:
#   _memrchr, referenced from:
#       _main in ekko.o
# https://github.com/apple/llvm-project/pull/7640
configure.cflags-append \
                    -fno-builtin-strrchr

compiler.cxx_standard 2011
configure.cxxflags-append \
                    -std=c++11

livecheck.distname  CSSC
