summaryrefslogtreecommitdiff
path: root/homebrew/boostpython/.make.sh-auto
blob: 1b5120094b7884e2c57c48bed278c605b678205e (plain)
1
2
3
4
5
6
7
8
9
10
11
pkg:setup
args = ["--prefix=#{prefix}", "--libdir=#{lib}", "-d2", "-j#{ENV.make_jobs}", "--layout=tagged-1.66", "threading=multi,single", "link=shared,static"]
args << "cxxflags=-std=c++14"
if ENV.compiler == :clang
args << "cxxflags=-stdlib=libc++" << "linkflags=-stdlib=libc++"
end
pyver = Language::Python.major_minor_version "python"
./bootstrap.sh --prefix=${PKG_TAPF} --libdir=${PKG_TAPF}/lib --with-libraries=python --with-python=python
./b2 --build-dir=build-python --stagedir=stage-python python=#{pyver} *args
lib.install Dir["stage-python/lib/*py*"]
doc.install Dir["libs/python/doc/*"]