Skip to content

Commit

Permalink
building all FxFx libraries including the ones required for FxFx anal…
Browse files Browse the repository at this point in the history
…ysis
  • Loading branch information
Andrej-CMS committed Nov 14, 2018
1 parent a5d0bb7 commit 31c9794
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions herwigpp.spec
Expand Up @@ -60,6 +60,8 @@ make %makeprocesses install LHAPDF_DATA_PATH=$LHAPDF_ROOT/share/LHAPDF
#FxFx.so needs to be build after herwigpp installation so that it can correctly pick up needed headers
#FIX for 7.1.4: need to fix path in Makefile to build the FxFx.so library correctly
#Maybe not needed for future versions. Bug has been reported to the authors
sed -i -e "s|UEBase.fh|Shower/UEBase.fh|g" Shower/UEBase.h
sed -i -e "s|Herwig/Shower/Couplings/ShowerAlpha.h|Herwig/Shower/Core/Couplings/ShowerAlpha.h|g" Contrib/FxFx/FxFxHandler.h
sed -i -e "s|^HERWIGINCLUDE.*|HERWIGINCLUDE = -I%{i}/include|g" Contrib/FxFx/Makefile
sed -i -e "s|^RIVETINCLUDE.*|RIVETINCLUDE = -I${RIVET_ROOT}/include|g" Contrib/FxFx/Makefile
sed -i -e "s|^HEPMCINCLUDE.*|HEPMCINCLUDE = -I${HEPMC_ROOT}/include|g" Contrib/FxFx/Makefile
Expand All @@ -69,8 +71,8 @@ sed -i -e "/^INCLUDE.*/s/$/ \$(YODAINCLUDE) \$(BOOSTINCLUDE)/" Contrib/FxFx/Make
sed -i "/^FASTJETLIB.*/a HERWIGINSTALL = %{i}" Contrib/FxFx/Makefile
sed -i -e '0,/\$(HERWIGINSTALL)\/lib\/Herwig/s//\$(HERWIGINSTALL)\/lib\/./' Contrib/FxFx/Makefile

make -C Contrib/FxFx %makeprocesses FxFx.so
cp Contrib/FxFx/FxFx.so %{i}/lib/Herwig/FxFx.so
make -C Contrib/FxFx %makeprocesses FxFx.so FxFxHandler.so FxFxAnalysis.so
cp Contrib/FxFx/*.so %{i}/lib/Herwig/.

mv %{i}/bin/Herwig %{i}/bin/Herwig-cms
cat << \HERWIG_WRAPPER > %{i}/bin/Herwig
Expand Down

0 comments on commit 31c9794

Please sign in to comment.