# -*- 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.5.0 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  332dcf751586ef7038f257ed0021576830191c06 \
                    sha256  2601a0e58e87caba6f4866aebefde2f5a44a277c05f01f17541ba8857c7a566e \
                    size    586068

worksrcdir          ${worksrcpath}/src

build.args-append   VERSION=v${version}

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