# -*- 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.5 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  941b9aa469ce95cd4da79f76ff306ca1e63762f1 \
                    sha256  fac205f41d000e245519244dc3e730e649a0ac1c61b5f2d1d0660056e1680b2d \
                    size    905331

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}
