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

github.setup        Orc discount 3.0.1.3 v
github.tarball_from archive
revision            0
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/

checksums           rmd160  ef7f13922b532d5f2f5cff33c0f73fc2d71de1fd \
                    sha256  ec04f366cd0a5036598c6a0bf4f7f2582d8ff04b31e81121314b8fde6db6899d \
                    size    143663

license             BSD

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/${name}-markdown
}
