diff --git a/net/pacparser/Portfile b/net/pacparser/Portfile index 1b8dc0fc6e00d..bfeb6dc1024d2 100644 --- a/net/pacparser/Portfile +++ b/net/pacparser/Portfile @@ -2,8 +2,9 @@ PortSystem 1.0 PortGroup github 1.0 +PortGroup makefile 1.0 -github.setup pacparser pacparser 1.4.5 v +github.setup manugarg pacparser 1.4.5 v github.tarball_from archive revision 0 @@ -19,6 +20,12 @@ checksums rmd160 941b9aa469ce95cd4da79f76ff306ca1e63762f1 \ sha256 fac205f41d000e245519244dc3e730e649a0ac1c61b5f2d1d0660056e1680b2d \ size 905331 -use_configure no 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}