8 pkgdesc='StdHep contains a set of translation routines which convert Herwig, Jetset, Isajet, or QQ events to and from the standard HEP event format, using the Particle Data Group numbering scheme. StdHep also contains utility routines to work with the HEPEVT common block and a set of I/O routines. The HEPEVT common block allows 4000 particles per event. The numbering scheme is detailed in the 2006 Edition of the Review of Particle Physics.'
9 url="http://cepa.fnal.gov/psm/stdhep/"
11 ##g77自己搞定吧,换个专业点的编译器,或者重新编译gcc34加上f77选项
12 depend=(cernlib g77 lesstif)
14 install=stdhep.install
15 source=(http://cepa.fnal.gov/dist/stdhep/stdhep-5-06-01.tar.gz)
18 cd $srcdir/${pkgname}-${pkgver_}
20 ###加上cernlib编译选项,example文件夹下的cernlib等选项自己按要求修改吧
21 sed -i -e '18d' -e '20d' GNUmakefile || return 1
23 sed -i -e "s/#BUILD_SHARED/BUILD_SHARED/" src/stdhep_arch || return 1
24 sed -i -e "s/#BUILD_SHARED/BUILD_SHARED/" mcfio/arch_mcfio ||return 1
30 INSTALLDIR=/opt/Science/StdHEP
32 [ -d $pkgdir$INSTALLDIR ] || mkdir -p $pkgdir$INSTALLDIR
33 cp -r * $pkgdir$INSTALLDIR/