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

name                discount
categories          textproc
maintainers         {landonf @landonf} openmaintainer
description         C implementation of the Markdown markup language
long_description    ${description}.
homepage            https://www.pell.portland.or.us/~orc/Code/discount/

github.setup        Orc discount 2.2.7d v
revision            0
checksums           rmd160  324e14590aa71dcefe2859fff678dcbdd78377eb \
                    sha256  eb9f6629dadddb44c3111267b82e51d5fb8364e228cc3533fe937d8a99e0155b \
                    size    133382

license             BSD

github.tarball_from archive

configure.cmd       ./configure.sh
configure.args-append --shared --pkg-config

use_parallel_build  no

post-build {
    system -W ${worksrcpath} "install_name_tool -id ${prefix}/lib/libmarkdown.dylib libmarkdown.dylib"
}

post-destroot {
    file rename ${destroot}${prefix}/bin/markdown \
                ${destroot}${prefix}/bin/discount-markdown
}
