Ticket #24613: Portfile

File Portfile, 2.2 KB (added by mattiafrancescomoro@…, 15 years ago)
Line 
1# $Id $
2
3PortSystem          1.0
4
5name                pythia
6version             8.135
7categories          science
8maintainers         gmail.com:mattiafrancescomoro
9license             LGPLv2.1
10description         Generator of high-energy physics events
11long_description    PYTHIA is a program for the generation of high-energy physics events, \
12                                        i.e. for the description of collisions at high energies between elementary particles \
13                                        such as e+, e-, p and pbar in various combinations. It contains theory and models for \
14                                        a number of physics aspects, including hard and soft interactions, parton distributions, \
15                                        initial- and final-state parton showers, multiple interactions, fragmentation and decay. \
16                                        It is largely based on original research, but also borrows many formulae and other \
17                                        knowledge from the literature.
18homepage            http://home.thep.lu.se/~torbjorn/Pythia.html
19platforms           darwin
20distfiles           ${name}8135.tgz
21master_sites        http://home.thep.lu.se/~torbjorn/pythia8/
22
23checksums           md5     5843543118f82dc1316f687138eb4628 \
24                    sha1    40e56df0f7479d47753d20f0821f344065edbf4e
25
26worksrcdir          ${name}8135
27                               
28pre-configure {
29    build.args      CC=${configure.cc} \
30                    CXX=${configure.cxx} \
31                    F77=${configure.f77}
32}
33
34configure.args      --with-cc=${configure.cc} \
35                    --with-f77="${configure.f77}" \
36                    --with-cxx="${configure.cxx}" \
37                    --enable-shared
38
39
40destroot {
41                        xinstall -d ${destroot}${prefix}/lib
42                        xinstall ${worksrcpath}/lib/libpythia8.dylib ${destroot}${prefix}/lib
43                        xinstall ${worksrcpath}/lib/liblhapdfdummy.dylib ${destroot}${prefix}/lib
44                        xinstall ${worksrcpath}/lib/archive/liblhapdfdummy.a ${destroot}${prefix}/lib
45                        xinstall ${worksrcpath}/lib/archive/libpythia8.a ${destroot}${prefix}/lib
46                        xinstall -d ${destroot}${prefix}/include/$name$version
47                        eval xinstall -m 644 [ glob ${worksrcpath}/include/*.h ] ${destroot}${prefix}/include/
48                        # xinstall -d ${destroot}${prefix}/share/$name$version/examples
49                        # xinstall -m 644 [ glob ${worksrcpath}/examples/* ] ${destroot}${prefix}/share/$name$version/examples
50}