# -*- 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
PortGroup           makefile 1.0

github.setup        manugarg pacparser 1.4.6 v
github.tarball_from archive
revision            0

categories          net devel
license             LGPL-3
maintainers         {judaew @judaew} openmaintainer

description         A library to parse proxy auto-config (PAC) files
long_description    {*}${description}
homepage            https://pacparser.manugarg.com

checksums           rmd160  d8cc7fe9b13282d1818d3fd7454596eaa765f355 \
                    sha256  7c5f4317f59c74a969acf700a6cc8ca838fa437f1ae58bce06422e880cbc9253 \
                    size    905435

worksrcdir          ${worksrcpath}/src

# https://github.com/manugarg/pacparser/issues/211
if {[string match *gcc-4.* ${configure.compiler}]} {
    build.cmd-prepend \
                    CFLAGS=-std=c99
}

destroot.args       PREFIX=${destroot}${prefix}
