Skip to content

Commit

Permalink
pacparser: fix build with Xcode gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Dec 13, 2024
1 parent f22b352 commit 7458d5a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions net/pacparser/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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}

0 comments on commit 7458d5a

Please sign in to comment.