Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Add --with-c++11 switch to POCO formula #17750

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion Library/Formula/poco.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ class Poco < Formula
url 'http://pocoproject.org/releases/poco-1.4.6/poco-1.4.6.tar.gz'
sha1 'e96260f5a5309e129bdea4251c8e26e14bd0c9bc'

option 'with-c++11', 'Compile using std=c++11 and stdlib=libc++' if MacOS.version >= :lion

def install
arch = Hardware.is_64_bit? ? 'Darwin64': 'Darwin32'
arch << '-clang' if ENV.compiler == :clang
if ENV.compilter == :clang
arch << '-clang'
arch << '-libc++' if build.include? 'with-c++11'
end

system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
Expand Down