Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pacparser: fix build with Xcode gcc #27060

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}