# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
set my_version [strsed ${version} g/\\.//]
description Generator of high-energy physics events
long_description PYTHIA is a program for the generation of high-energy physics events, \
i.e. for the description of collisions at high energies between elementary particles \
such as e+, e-, p and pbar in various combinations. It contains theory and models for \
a number of physics aspects, including hard and soft interactions, parton distributions, \
initial- and final-state parton showers, multiple interactions, fragmentation and decay. \
It is largely based on original research, but also borrows many formulae and other \
knowledge from the literature.
homepage http://home.thep.lu.se/~torbjorn/Pythia.html
master_sites http://home.thep.lu.se/~torbjorn/pythia8/
distname ${name}${my_version}
checksums rmd160 c030640299644c149087eb2c3e2ab7a53df1c5fa \
sha256 f8ec27437d9c75302e192ab68929131a6fd642966fe66178dbe87da6da2b1c79 \
compiler.cxx_standard 2011
configure.cxxflags-append -std=c++11
configure.args --arch=DARWIN --enable-shared \
--cxx-common="${configure.cxxflags}"
# g++-4.2 on 10.6 doesn't know about -stdlib (#44145)
# build.args CC=${configure.cc} CXX="${configure.cxx} -stdlib=${configure.cxx_stdlib}"
if { ${configure.cxx_stdlib} eq "libc++" } {
build.args CC=${configure.cc} CXX="${configure.cxx} -stdlib=${configure.cxx_stdlib}"
build.args CC=${configure.cc} CXX=${configure.cxx}
foreach f [glob -directory ${worksrcpath}/lib *.dylib] {
system "install_name_tool -id ${prefix}/lib/${dylib} ${worksrcpath}/lib/${dylib}"