Blob Blame History Raw
--- mclibs-2005.dfsg.orig/debian/control
+++ mclibs-2005.dfsg/debian/control
@@ -0,0 +1,242 @@
+Source: mclibs
+Maintainer: Kevin B. McCarty <kmccarty@debian.org>
+Standards-Version: 3.7.2
+Priority: optional
+Section: science
+Build-Depends: dpatch (>= 2.0.9), patch, mawk | gawk, xutils-dev, debhelper (>= 5.0.0), g77, cernlib-base (>= 2005.05.09.dfsg-9), libmathlib2-dev, tetex-bin
+
+Package: cernlib-montecarlo
+Architecture: all
+Section: science
+Depends: cernlib-base, montecarlo-base (= ${Source-Version}), libcojets2-dev, libeurodec1-dev, libherwig59-2-dev, libpdflib804-2-dev, libphotos202-dev, libphtools2-dev
+Recommends: libisajet758-2-dev
+Description: Cernlib Monte Carlo libraries
+ Cernlib is a suite of data analysis tools and libraries created for
+ use in physics experiments, but also with applications to other
+ fields such as the biological sciences.
+ .
+ This metapackage provides various Monte Carlo libraries included in Cernlib
+ (both shared and static).  Likely only physicists will be interested in
+ these packages.  Note that the Geant 3.21 program is not included, but it may
+ be obtained by also installing the geant321 Debian package.
+ .
+ Be aware that the libraries of Ariadne, Fritiof, Jetset, Lepto, and Pythia are
+ not available within Debian due to licensing issues; see the README.Debian
+ file in the montecarlo-base package for information on obtaining them.
+ .
+ Additionally, the Isajet library is not available on the m68k architecture
+ due to a compiler flaw.
+
+Package: libcojets2-dev
+Architecture: any
+Section: libdevel
+Depends: libcojets2 (= ${Source-Version}), libmathlib2-dev
+Replaces: libcojets1-dev
+Conflicts: libcojets1-dev
+Description: [Physics] COJETS p-p and pbar-p interaction Monte Carlo
+ COJETS is a Monte Carlo library which simulates pbar-p and p-p interactions at
+ high energy.  The interaction process is first calculated at the parton level
+ by means of perturbative QCD and the Weinberg-Salam model for electroweak
+ interactions.  Partons are then independently fragmented into jets of hadrons,
+ according to the Field-Feynman model, and the beam jets contribution is
+ added, according to a longitudinal phase-space model.  Multiple QCD radiation
+ of initial and final partons is included.
+ .
+ This is the static version of the library.  The package also includes
+ FORTRAN header files and documentation for COJETS.
+
+Package: libcojets2
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, montecarlo-base
+Description: [Physics] COJETS p-p and pbar-p interaction Monte Carlo library
+ COJETS is a Monte Carlo library which simulates pbar-p and p-p interactions at
+ high energy.  The interaction process is first calculated at the parton level
+ by means of perturbative QCD and the Weinberg-Salam model for electroweak
+ interactions.  Partons are then independently fragmented into jets of hadrons,
+ according to the Field-Feynman model, and the beam jets contribution is
+ added, according to a longitudinal phase-space model.  Multiple QCD radiation
+ of initial and final partons is included.
+ .
+ Note that in order to compile and link programs against this library, you
+ must also install the libcojets2-dev package.
+
+Package: libeurodec1-dev
+Architecture: any
+Section: libdevel
+Depends: libeurodec1 (= ${Source-Version}), cfortran, libc6-dev | libc-dev
+Description: [Physics] Monte Carlo library for quark / heavy lepton decays
+ Eurodec is a general purpose Monte Carlo library for the fragmentation and
+ decay of quarks, di-quarks, heavy leptons, etc.  It can be used with the
+ included event generator EUROJET, or with your own event generator.
+ .
+ This is the static version of the library.  FORTRAN header files are also
+ included.
+
+Package: libeurodec1
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, cernlib-base, montecarlo-base
+Description: [Physics] Monte Carlo library for quark and heavy lepton decays
+ Eurodec is a general purpose Monte Carlo library for the fragmentation and
+ decay of quarks, di-quarks, heavy leptons, etc.  It can be used with the
+ included event generator EUROJET, or with your own event generator.
+ .
+ Note that in order to compile and link programs against this library, you
+ must also install the libeurodec1-dev package.
+
+Package: libherwig59-2-dev
+Architecture: any
+Section: libdevel
+Depends: libherwig59-2 (= ${Source-Version}), libpdflib804-2-dev (= ${Source-Version})
+Replaces: libherwig59-dev
+Conflicts: libherwig59-dev
+Description: [Physics] Monte Carlo event generator for hadrons (development)
+ HERWIG is a general-purpose event generator for high energy hadronic
+ processes, with particular emphasis on the detailed simulation of
+ QCD parton showers.
+ .  
+ This is the static version of the library.  Also included are a FORTRAN
+ header file and some documentation.
+
+Package: libherwig59-2
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, montecarlo-base
+Description: [Physics] Monte Carlo event generator simulating hadronic events
+ HERWIG is a general-purpose event generator for high energy hadronic
+ processes, with particular emphasis on the detailed simulation of
+ QCD parton showers. 
+ .
+ Note that in order to compile and link programs against this library, you
+ must also install the libherwig59-2-dev package.
+
+Package: libisajet758-2-dev
+Architecture: any
+Section: libdevel
+Depends: libisajet758-2 (= ${Source-Version}), libpdflib804-2-dev (= ${Source-Version})
+Replaces: libisajet758-dev
+Conflicts: libisajet758-dev
+Description: [Physics] Monte Carlo generator for proton/electron reactions
+ ISAJET is a Monte Carlo library which simulates p-p, pbar-p, and e+ e-
+ interactions at high energies.  The library is based on perturbative QCD
+ combined with phenomenological models for parton and beam jet fragmentation.
+ ISAJET incorporates ISASUSY, which evaluates branching ratios for the minimal
+ supersymmetric extension of the Standard Model.
+ .  
+ This is the static version of the library.  Also included are FORTRAN header
+ files and some documentation.
+
+Package: libisajet758-2
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, montecarlo-base
+Description: [Physics] Monte Carlo generator for proton / electron reactions
+ ISAJET is a Monte Carlo library which simulates p-p, pbar-p, and e+ e-
+ interactions at high energies.  The library is based on perturbative QCD
+ combined with phenomenological models for parton and beam jet fragmentation.
+ ISAJET incorporates ISASUSY, which evaluates branching ratios for the minimal
+ supersymmetric extension of the Standard Model.
+ .
+ Note that in order to compile and link programs against this library, you
+ must also install the libisajet758-2-dev package.
+
+Package: libpdflib804-2-dev
+Architecture: any
+Section: libdevel
+Depends: libpdflib804-2 (= ${Source-Version}), libmathlib2-dev
+Replaces: libpdflib804-dev
+Conflicts: libpdflib804-dev
+Description: [Physics] Comprehensive library of parton density functions
+ The PDFLIB package gathers about 100 different sets of Parton Density
+ Functions into a comprehensive library in a consistent way.  Density functions
+ are available for the nucleon, pion and photon.  The library also allows the
+ calculation of the strong force coupling constant to first or second order
+ at a given value of Q-squared.
+ .
+ This is the static version of the library.  Also included are FORTRAN
+ header files and some documentation.
+
+Package: libpdflib804-2
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, montecarlo-base
+Description: [Physics] Comprehensive library of parton density functions
+ The PDFLIB package gathers about 100 different sets of Parton Density
+ Functions into a comprehensive library in a consistent way.  Density functions
+ are available for the nucleon, pion and photon.  The library also allows the
+ calculation of the strong force coupling constant to first or second order
+ at a given value of Q-squared.
+ .
+ Note that in order to compile and link programs against this library, you
+ must also install the libpdflib804-2-dev package.
+
+Package: libphotos202-dev
+Architecture: any
+Section: libdevel
+Depends: libphotos202 (= ${Source-Version}), cfortran, libc6-dev | libc-dev
+Description: [Physics] Monte Carlo simulation of photon radiation in decays
+ The PHOTOS library simulates QED photon radiative corrections in
+ electromagnetic decays.  The library is universal; it allows for easy
+ interface with any program generating decays of any particle.  It can be
+ used to estimate the size of the QED bremsstrahlung in leading-logarithmic
+ approximation.  The proper soft photon behavior is also reproduced.
+ .  
+ This is the static version of the library.
+
+Package: libphotos202
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, cernlib-base, montecarlo-base
+Description: [Physics] Monte Carlo simulation of photon radiation in decays
+ The PHOTOS library simulates QED photon radiative corrections in
+ electromagnetic decays.  The library is universal; it allows for easy
+ interface with any program generating decays of any particle.  It can be
+ used to estimate the size of the QED bremsstrahlung in leading-logarithmic
+ approximation.  The proper soft photon behavior is also reproduced.
+ .
+ Note that in order to compile and link programs against this library, you
+ must also install the libphotos202-dev package.
+
+Package: libphtools2-dev
+Architecture: any
+Section: libdevel
+Depends: libphtools2 (= ${Source-Version}), libmathlib2-dev
+Replaces: libphtools1-dev
+Conflicts: libphtools1-dev
+Description: [Physics] General purpose Monte Carlo routines (development files)
+ This library contains three main routines.  FOWL allows calculation of phase
+ space distributions arising from particle interactions, generated in a
+ Lorentz-invariant way.  GENBOD is an N-body event generator, taking as
+ input the center-of-mass energy, number and masses of outgoing particles.
+ WICO traces a ray geometrically in a "Winston Cone" light concentrator.
+ .  
+ This is the static version of the library.
+
+Package: libphtools2
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, montecarlo-base
+Description: [Physics] General purpose Monte Carlo routines
+ This library contains three main routines.  FOWL allows calculation of phase
+ space distributions arising from particle interactions, generated in a
+ Lorentz-invariant way.  GENBOD is an N-body event generator, taking as
+ input the center-of-mass energy, number and masses of outgoing particles.
+ WICO traces a ray geometrically in a "Winston Cone" light concentrator.
+ .
+ Note that in order to compile and link programs against this library, you
+ must also install the libphtools2-dev package.
+
+Package: montecarlo-base
+Architecture: all
+Section: science
+Depends: cernlib-base
+Description: [Physics] Common files for Cernlib Monte Carlo libraries
+ Cernlib is a suite of data analysis tools and libraries created for
+ use in physics experiments, but also with applications to other
+ fields such as the biological sciences.
+ .
+ This package contains common files for Cernlib Monte Carlo libraries,
+ including a README.Debian file that explains how to obtain the libraries
+ of Ariadne, Fritiof, Jetset, Lepto, and Pythia.
+
--- mclibs-2005.dfsg.orig/debian/copyright
+++ mclibs-2005.dfsg/debian/copyright
@@ -0,0 +1,96 @@
+This package was debianized by Kevin B. McCarty <kmccarty@debian.org>.
+It was downloaded from the web page
+http://wwwinfo.cern.ch/asd/cernlib/download/2005_source/tar/
+
+
+COPYRIGHT
+---------
+
+Cernlib, including the CERN Monte Carlo libraries, is copyright (C) CERN and
+others.  As of this writing (29 June 2006), the web page
+http://wwwinfo.cern.ch/asd/cernlib/conditions.html (which gives the terms under
+which Cernlib may be used) states:
+
+  CERNLIB Availability
+
+  (C) Copyright CERN except where explicitly stated otherwise. Permission to
+  use and/or redistribute this work is granted under the terms of the GNU
+  General Public License. FLUKA routines included in GEANT3 are joint copyright
+  of INFN and CERN and are not licensed under the GPL: permission to use and/or
+  redistribute outside GEANT3 should be negotiated. The software and
+  documentation made available under the terms of this license are provided
+  with no warranty.
+
+  Last modified: 18-March-2004
+
+On Debian systems, the complete text of the GNU General Public License can be
+found in the file `/usr/share/common-licenses/GPL'.
+
+It should be noted that the above license supersedes the non-free license
+stated in the file located at
+
+  /usr/share/doc/libpdflib804-2-dev/pdfdoc.txt.gz  (package libpdflib804-2-dev)
+  mclibs-$VERSION/src/mclibs/pdf/doc/pdfdoc.dat    (unpacked Debian source).
+
+
+EXCEPTIONS
+----------
+
+The files jetset74.h and lepto62.h in the montecarlo-base binary package,
+and all files included in the tarball upstream/src_cfortran.tar.gz in the
+mclibs source package, are instead
+
+  Copyright (C) 1990-2003  Burkhard Burow, <burow@desy.de>,
+  http://www-zeus.desy.de/~burow/cfortran/index.htm
+
+and are licensed (at your choice) under either the GNU Library General Public
+License or an alternate non-free license.
+
+On Debian systems, the complete text of the GNU Library General Public License
+can be found in the file `/usr/share/common-licenses/LGPL-2'.
+
+The alternate license for the cfortran-related files is as follows:
+
+THIS PACKAGE, I.E. CFORTRAN.H, THIS DOCUMENT, AND THE CFORTRAN.H EXAMPLE
+PROGRAMS ARE PROPERTY OF THE AUTHOR WHO RESERVES ALL RIGHTS. THIS PACKAGE AND
+THE CODE IT PRODUCES MAY BE FREELY DISTRIBUTED WITHOUT FEES, SUBJECT TO THE
+FOLLOWING RESTRICTIONS:
+- YOU MUST ACCOMPANY ANY COPIES OR DISTRIBUTION WITH THIS (UNALTERED) NOTICE.
+- YOU MAY NOT RECEIVE MONEY FOR THE DISTRIBUTION OR FOR ITS MEDIA
+  (E.G. TAPE, DISK, COMPUTER, PAPER.)
+- YOU MAY NOT PREVENT OTHERS FROM COPYING IT FREELY.
+- YOU MAY NOT DISTRIBUTE MODIFIED VERSIONS WITHOUT CLEARLY DOCUMENTING YOUR
+  CHANGES AND NOTIFYING THE AUTHOR.
+- YOU MAY NOT MISREPRESENTED THE ORIGIN OF THIS SOFTWARE, EITHER BY EXPLICIT
+  CLAIM OR BY OMISSION.
+
+THE INTENT OF THE ABOVE TERMS IS TO ENSURE THAT THE CFORTRAN.H PACKAGE NOT BE
+USED FOR PROFIT MAKING ACTIVITIES UNLESS SOME ROYALTY ARRANGEMENT IS ENTERED
+INTO WITH ITS AUTHOR.
+
+THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
+EXPRESSED OR IMPLIED. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST
+OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. THE AUTHOR IS NOT RESPONSIBLE
+FOR ANY SUPPORT OR SERVICE OF THE CFORTRAN.H PACKAGE.
+
+                                              Burkhard Burow
+                                              burow@desy.de
+
+
+DELETIA
+-------
+
+The following files and directories have been removed from the Debian source
+package of Cernlib due to license ambiguities or incompatibilities with the GPL
+(e.g. positive BSD advertising clause).  If needed, they may be found in the
+upstream source tarballs.  Please see the README.Debian file of the
+montecarlo-base package for more information on obtaining the Ariadne, Fritiof,
+Jetset, Lepto, and Pythia libraries.
+
+mclibs/ariadne/
+mclibs/ariadne_407/
+mclibs/fritiof/
+mclibs/jetset/
+mclibs/lepto63/
+mclibs/pythia/
--- mclibs-2005.dfsg.orig/debian/copyright.in
+++ mclibs-2005.dfsg/debian/copyright.in
@@ -0,0 +1,91 @@
+This package was debianized by Kevin B. McCarty <kmccarty@debian.org>.
+It was downloaded from the web page
+http://wwwinfo.cern.ch/asd/cernlib/download/2005_source/tar/
+
+
+COPYRIGHT
+---------
+
+Cernlib, including the CERN Monte Carlo libraries, is copyright (C) CERN and
+others.  As of this writing (29 June 2006), the web page
+http://wwwinfo.cern.ch/asd/cernlib/conditions.html (which gives the terms under
+which Cernlib may be used) states:
+
+  CERNLIB Availability
+
+  (C) Copyright CERN except where explicitly stated otherwise. Permission to
+  use and/or redistribute this work is granted under the terms of the GNU
+  General Public License. FLUKA routines included in GEANT3 are joint copyright
+  of INFN and CERN and are not licensed under the GPL: permission to use and/or
+  redistribute outside GEANT3 should be negotiated. The software and
+  documentation made available under the terms of this license are provided
+  with no warranty.
+
+  Last modified: 18-March-2004
+
+On Debian systems, the complete text of the GNU General Public License can be
+found in the file `/usr/share/common-licenses/GPL'.
+
+It should be noted that the above license supersedes the non-free license
+stated in the file located at
+
+  /usr/share/doc/libpdflib804-2-dev/pdfdoc.txt.gz  (package libpdflib804-2-dev)
+  mclibs-$VERSION/src/mclibs/pdf/doc/pdfdoc.dat    (unpacked Debian source).
+
+
+EXCEPTIONS
+----------
+
+The files jetset74.h and lepto62.h in the montecarlo-base binary package,
+and all files included in the tarball upstream/src_cfortran.tar.gz in the
+mclibs source package, are instead
+
+  Copyright (C) 1990-2003  Burkhard Burow, <burow@desy.de>,
+  http://www-zeus.desy.de/~burow/cfortran/index.htm
+
+and are licensed (at your choice) under either the GNU Library General Public
+License or an alternate non-free license.
+
+On Debian systems, the complete text of the GNU Library General Public License
+can be found in the file `/usr/share/common-licenses/LGPL-2'.
+
+The alternate license for the cfortran-related files is as follows:
+
+THIS PACKAGE, I.E. CFORTRAN.H, THIS DOCUMENT, AND THE CFORTRAN.H EXAMPLE
+PROGRAMS ARE PROPERTY OF THE AUTHOR WHO RESERVES ALL RIGHTS. THIS PACKAGE AND
+THE CODE IT PRODUCES MAY BE FREELY DISTRIBUTED WITHOUT FEES, SUBJECT TO THE
+FOLLOWING RESTRICTIONS:
+- YOU MUST ACCOMPANY ANY COPIES OR DISTRIBUTION WITH THIS (UNALTERED) NOTICE.
+- YOU MAY NOT RECEIVE MONEY FOR THE DISTRIBUTION OR FOR ITS MEDIA
+  (E.G. TAPE, DISK, COMPUTER, PAPER.)
+- YOU MAY NOT PREVENT OTHERS FROM COPYING IT FREELY.
+- YOU MAY NOT DISTRIBUTE MODIFIED VERSIONS WITHOUT CLEARLY DOCUMENTING YOUR
+  CHANGES AND NOTIFYING THE AUTHOR.
+- YOU MAY NOT MISREPRESENTED THE ORIGIN OF THIS SOFTWARE, EITHER BY EXPLICIT
+  CLAIM OR BY OMISSION.
+
+THE INTENT OF THE ABOVE TERMS IS TO ENSURE THAT THE CFORTRAN.H PACKAGE NOT BE
+USED FOR PROFIT MAKING ACTIVITIES UNLESS SOME ROYALTY ARRANGEMENT IS ENTERED
+INTO WITH ITS AUTHOR.
+
+THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
+EXPRESSED OR IMPLIED. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST
+OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. THE AUTHOR IS NOT RESPONSIBLE
+FOR ANY SUPPORT OR SERVICE OF THE CFORTRAN.H PACKAGE.
+
+                                              Burkhard Burow
+                                              burow@desy.de
+
+
+DELETIA
+-------
+
+The following files and directories have been removed from the Debian source
+package of Cernlib due to license ambiguities or incompatibilities with the GPL
+(e.g. positive BSD advertising clause).  If needed, they may be found in the
+upstream source tarballs.  Please see the README.Debian file of the
+montecarlo-base package for more information on obtaining the Ariadne, Fritiof,
+Jetset, Lepto, and Pythia libraries.
+
+DEADPOOL_LIST_GOES_HERE
--- mclibs-2005.dfsg.orig/debian/rules
+++ mclibs-2005.dfsg/debian/rules
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+
+# source package name and modules included in the source package
+MY_NAME = mclibs
+MY_MODULES = Imakefile cfortran include mclibs phtools
+
+include /usr/share/cernlib/cernlib-debian.mk
+
+binary-arch: install-arch
+	dh_testdir
+	dh_testroot
+	dh_install -a
+	dh_installdocs -a
+	dh_installexamples -a
+	set -e ; \
+	# Lintian overrides of spurious warnings
+	#for file in `cd debian/lintian && ls -1` ; do \
+	#	cp -p debian/lintian/$$file \
+	#	debian/$$file/usr/share/lintian/overrides/ ; \
+	#done
+	dh_installchangelogs -a
+	dh_strip -a
+	dh_link -a
+	dh_compress -a
+	dh_fixperms -a
+	for package in libeurodec1 ; do \
+		dh_makeshlibs -p$$package -V"$$package (>= 2004.01.20-6)" ; \
+	done
+	for package in libcojets2 libherwig59-2 libisajet758-2 \
+		libpdflib804-2 libphotos202 libphtools2 ; do \
+		dh_makeshlibs -p$$package ; \
+	done
+	dh_shlibdeps -a -lshlib
+	dh_installdeb -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+binary-indep: install-indep
+	dh_testdir
+	dh_testroot
+	dh_install -i
+	dh_installdocs -i
+	dh_installexamples -i
+	dh_installman -i
+	dh_installchangelogs -i
+	dh_link -i
+	dh_compress -i -X.dat -X.kumac -X.F -X.sh
+
+	# Fudge metapackage docs a little bit for efficiency:
+	rm -rf debian/cernlib-montecarlo/usr/share/doc/cernlib-montecarlo
+	ln -sf montecarlo-base \
+		debian/cernlib-montecarlo/usr/share/doc/cernlib-montecarlo
+
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+binary: binary-indep binary-arch
+
+.PHONY: binary binary-indep binary-arch
+
--- mclibs-2005.dfsg.orig/debian/patches/00list
+++ mclibs-2005.dfsg/debian/patches/00list
@@ -0,0 +1,18 @@
+000-unpack.sh.dpatch
+002-fix-missing-mclibs.dpatch
+100-fix-isajet-manual-corruption.dpatch
+101-undefine-PPC.dpatch
+102-dont-optimize-some-code.dpatch
+204-compile-isajet-with-isasrt.dpatch
+206-herwig-uses-DBLE-not-REAL.dpatch
+210-improve-cfortran-header-files.dpatch
+301-datafiles-comply-with-FHS.dpatch
+305-use-POWERPC-not-PPC-as-test.dpatch
+306-patch-assert.h-for-makedepend.dpatch
+307-use-canonical-cfortran.dpatch
+309-define-dummy-herwig-routines.dpatch
+310-define-dummy-fowl-routines.dpatch
+312-skip-duplicate-gamma.dpatch
+315-fixes-for-MacOSX.dpatch
+802-create-shared-libraries.dpatch
+806-bump-mathlib-and-dependents-sonames.dpatch
--- mclibs-2005.dfsg.orig/debian/patches/301-datafiles-comply-with-FHS.dpatch
+++ mclibs-2005.dfsg/debian/patches/301-datafiles-comply-with-FHS.dpatch
@@ -0,0 +1,43 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 301-datafiles-comply-with-FHS.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Put data files under /usr/share (defined in add-ons/Makefile).
+
+@DPATCH@
+diff -urNad cernlib-2005.05.09/src/mclibs/cojets/test/test.F /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/cojets/test/test.F
+--- cernlib-2005.05.09/src/mclibs/cojets/test/test.F	1996-03-25 07:53:36.000000000 -0500
++++ /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/cojets/test/test.F	2005-06-08 16:39:52.846851314 -0400
+@@ -6,7 +6,7 @@
+ #if defined(CERNLIB_IBMVM)
+       PARAMETER (DFILE='/COJETS DATA *')
+ #else
+-      PARAMETER (DFILE='cojets.dat')
++      PARAMETER (DFILE='/usr/share/cojets/cojets.dat')
+ #endif
+ C
+ C          MAIN PROGRAM FOR COJETS
+diff -urNad cernlib-2005.05.09/src/mclibs/eurodec/eurodec/eufiles.inc /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/eurodec/eurodec/eufiles.inc
+--- cernlib-2005.05.09/src/mclibs/eurodec/eurodec/eufiles.inc	1996-03-08 11:58:49.000000000 -0500
++++ /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/eurodec/eurodec/eufiles.inc	2005-06-08 16:40:14.175049565 -0400
+@@ -18,7 +18,7 @@
+       PARAMETER (ETFILE='/EUTITLE DAT   *')
+ #endif
+       CHARACTER*(*) EDFILE,ETFILE
+-      PARAMETER (EDFILE='eurodec.dat')
++      PARAMETER (EDFILE='/usr/share/eurodec/eurodec.dat')
+       PARAMETER (ETFILE='eutitle.dat')
+ 
+ #endif
+diff -urNad cernlib-2005.05.09/src/mclibs/isajet/test/isajett.F /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/isajet/test/isajett.F
+--- cernlib-2005.05.09/src/mclibs/isajet/test/isajett.F	1997-03-14 12:32:39.000000000 -0500
++++ /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/isajet/test/isajett.F	2005-06-08 16:40:43.746393067 -0400
+@@ -8,7 +8,7 @@
+ #if defined(CERNLIB_VAXVMS)
+       PARAMETER (DFILE='CERN_ROOT:[lib]isajet.dat')
+ #else
+-      PARAMETER (DFILE='isajet.dat')
++      PARAMETER (DFILE='/usr/share/isajet/isajet.dat')
+ #endif
+ #endif
+ C
--- mclibs-2005.dfsg.orig/debian/patches/002-fix-missing-mclibs.dpatch
+++ mclibs-2005.dfsg/debian/patches/002-fix-missing-mclibs.dpatch
@@ -0,0 +1,48 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 002-fix-missing-mclibs.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Deal with several of the MC libs having to be purged from source.
+
+@DPATCH@
+diff -urNad mclibs-2005.05.09.dfsg~/src/Imakefile mclibs-2005.05.09.dfsg/src/Imakefile
+--- mclibs-2005.05.09.dfsg~/src/Imakefile	1996-12-16 10:08:41.000000000 -0500
++++ mclibs-2005.05.09.dfsg/src/Imakefile	2006-06-29 14:09:15.024360574 -0400
+@@ -2,7 +2,7 @@
+ #define PassCDebugFlags
+ 
+ 
+-LIBDIRS= packlib pawlib graflib mathlib geant321 mclibs phtools
++LIBDIRS= mclibs phtools
+ 
+ SUBDIRS= $(LIBDIRS) patchy cfortran
+ 
+diff -urNad mclibs-2005.05.09.dfsg~/src/mclibs/Imakefile mclibs-2005.05.09.dfsg/src/mclibs/Imakefile
+--- mclibs-2005.05.09.dfsg~/src/mclibs/Imakefile	1999-05-20 09:30:20.000000000 -0400
++++ mclibs-2005.05.09.dfsg/src/mclibs/Imakefile	2006-06-29 14:08:23.769355915 -0400
+@@ -2,9 +2,11 @@
+ #define IHaveSubdirs
+ #define PassCDebugFlags
+ 
+-
+-LIBDIRS= ariadne cojets eurodec herwig fritiof \ @@\
+-	 isajet jetset lepto63 pdf photos pythia
++/* Pythia and Jetset are not under GPL, so we must remove references
++   to them and their dependents.  They have already been purged from
++   Debianized source code.  Also, re-order libs so that dependent ones
++   come after dependees. */
++LIBDIRS= cojets eurodec pdf photos herwig isajet
+ 
+ SUBDIRS = $(LIBDIRS)
+ 
+@@ -12,8 +14,8 @@
+ 
+ InstallLibSubdirs($(LIBDIRS))
+ 
+-INCLUDEDIRS= ariadne cojets eurodec herwig fritiof \ @@\
+-	 isajet jetset lepto63 pdf pythia
++/* Again, purge Pythia, Jetset and dependents. */
++INCLUDEDIRS= cojets eurodec herwig isajet pdf
+ 
+ InstallIncludeSubdirs($(INCLUDEDIRS))
+ 
--- mclibs-2005.dfsg.orig/debian/patches/307-use-canonical-cfortran.dpatch
+++ mclibs-2005.dfsg/debian/patches/307-use-canonical-cfortran.dpatch
@@ -0,0 +1,470 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 307-use-canonical-cfortran.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Use the most recent version of cfortran.h and cfortran.doc from
+## DP: Debian package of cfortran, version 4.4-6.
+
+@DPATCH@
+diff -urNad cernlib-2005.05.09.dfsg~/src/cfortran/cfortran.doc cernlib-2005.05.09.dfsg/src/cfortran/cfortran.doc
+--- cernlib-2005.05.09.dfsg~/src/cfortran/cfortran.doc	1998-12-11 12:17:09.000000000 -0500
++++ cernlib-2005.05.09.dfsg/src/cfortran/cfortran.doc	2006-05-16 16:45:01.329802364 -0400
+@@ -195,13 +195,13 @@
+ HP9000> f77 -c cfortex.f
+ HP9000> CC -o cfortest cfortest.c cfortex.o -lI77 -lF77 && cfortest
+ 
+-HP0000> # If old-style f77 +800 compiled objects are required:
++HP9000> # If old-style f77 +800 compiled objects are required:
+ HP9000> # #define hpuxFortran800
+ HP9000> cc -c -Aa -DhpuxFortran800 cfortest.c
+ HP9000> f77 +800 -o cfortest cfortest.o cfortex.f
+ 
+ f2c> # In the following, 'CC' is any C compiler.
+-f2c> f2c -R cfortex.f
++f2c> f2c cfortex.f
+ f2c> CC -o cfortest -Df2cFortran cfortest.c cfortex.c -lf2c  &&  cfortest
+ 
+ Portland Group $ # Presumably other C compilers also work.
+@@ -533,9 +533,10 @@
+ FORTRAN_REAL thus corresponds to FORTRAN's REAL on all machines, including t3e.
+ 
+ 
+-o f2c
+-  f2c, by default promotes REAL functions to double. cfortran.h does not (yet)
+-support this, so the f2c -R option must be used to turn this promotion off.
++o f2c / g77
++  f2c and g77 by default promote REAL functions to double.  As of December 9,
++2005, the Debian package of cfortran supports this behavior, so the f2c -R
++option must *NOT* be used to turn this promotion off.
+ 
+ o f2c
+ [Thanks to Dario Autiero for pointing out the following.]
+@@ -573,6 +574,11 @@
+ #endif
+ /* Last three lines are a work-around for the strange f2c naming feature. */
+ 
++o gfortran
++  gfortran behaves similarly to f2c and g77, EXCEPT that it does NOT by default
++promote REAL functions to double.  Therefore you should use -DgFortran instead
++of -Dg77Fortran or -Df2cFortran to let cfortran.h know about this difference.
++
+ o NAG f90
+   The Fortran 77 subset of Fortran 90 is supported. Extending cfortran.h to 
+ interface C with all of Fortran 90 has not yet been examined.
+@@ -643,7 +649,7 @@
+    [For an ancient math.h on a 386 or sparc, get similar from a new math.h.]
+    #ifdef mc68000     /* 5 lines Copyright (c) 1988 by Sun Microsystems, Inc. */
+    #define FLOATFUNCTIONTYPE	int
+-   #define RETURNFLOAT(x) 		return (*(int *)(&(x)))
++   #define RETURNFLOAT(x) 	return (*(int *)(&(x)))
+    #define ASSIGNFLOAT(x,y)	*(int *)(&x) = y
+    #endif
+ 
+@@ -874,7 +880,7 @@
+ works everywhere and would seem to be an obvious choice.
+ 
+ 
+-3. <BYTE|DOUBLE|BYTE|DOUBLE|FLOAT|INT|LOGICAL|LONG|SHORT><V|VV|VVV|...>
++3. <BYTE|DOUBLE|FLOAT|INT|LOGICAL|LONG|SHORT><V|VV|VVV|...>
+ 
+ cfortran.h encourages the exact specification of the type and dimension of
+ array parameters because it allows the C compiler to detect errors in the
+@@ -1835,7 +1841,7 @@
+ 
+ Unlike all other C compilers supported by cfortran.h,
+ 'gcc -traditional' promotes to double all functions returning float
+-as demonstrated bu the following example.
++as demonstrated by the following example.
+ 
+ /* m.c */
+ #include <stdio.h>
+@@ -2017,8 +2023,9 @@
+ 
+ THIS PACKAGE, I.E. CFORTRAN.H, THIS DOCUMENT, AND THE CFORTRAN.H EXAMPLE
+ PROGRAMS ARE PROPERTY OF THE AUTHOR WHO RESERVES ALL RIGHTS. THIS PACKAGE AND
+-THE CODE IT PRODUCES MAY BE FREELY DISTRIBUTED WITHOUT FEES, SUBJECT TO THE
+-FOLLOWING RESTRICTIONS:
++THE CODE IT PRODUCES MAY BE FREELY DISTRIBUTED WITHOUT FEES, SUBJECT
++(AT YOUR CHOICE) EITHER TO THE GNU LIBRARY GENERAL PUBLIC LICENSE
++AT http://www.gnu.org/licenses/lgpl.html OR TO THE FOLLOWING RESTRICTIONS:
+ - YOU MUST ACCOMPANY ANY COPIES OR DISTRIBUTION WITH THIS (UNALTERED) NOTICE.
+ - YOU MAY NOT RECEIVE MONEY FOR THE DISTRIBUTION OR FOR ITS MEDIA 
+   (E.G. TAPE, DISK, COMPUTER, PAPER.)
+diff -urNad cernlib-2005.05.09.dfsg~/src/cfortran/cfortran.h cernlib-2005.05.09.dfsg/src/cfortran/cfortran.h
+--- cernlib-2005.05.09.dfsg~/src/cfortran/cfortran.h	2002-09-11 13:05:51.000000000 -0400
++++ cernlib-2005.05.09.dfsg/src/cfortran/cfortran.h	2006-05-16 16:44:47.680553957 -0400
+@@ -1,4 +1,4 @@
+-/* cfortran.h  4.4_cernlib2002 */
++/* cfortran.h  4.4 */
+ /* http://www-zeus.desy.de/~burow/cfortran/                   */
+ /* Burkhard Burow  burow@desy.de                 1990 - 2002. */
+ 
+@@ -11,11 +11,71 @@
+    MODIFYING, COPYING AND DISTRIBUTING THE CFORTRAN.H PACKAGE.
+ */
+ 
++/* The following modifications were made by the authors of CFITSIO or by me. 
++ * They are flagged below with CFITSIO, the author's initials, or KMCCARTY.
++ * PDW = Peter Wilson
++ * DM  = Doug Mink
++ * LEB = Lee E Brotzman
++ * MR  = Martin Reinecke
++ * WDP = William D Pence
++ * -- Kevin McCarty, for Debian (19 Dec. 2005) */
++
++/*******
++   Modifications:
++      Oct 1997: Changed symbol name extname to appendus (PDW/HSTX)
++                (Conflicted with a common variable name in FTOOLS)
++      Nov 1997: If g77Fortran defined, also define f2cFortran (PDW/HSTX)
++      Feb 1998: Let VMS see the NUM_ELEMS code. Lets programs treat
++                single strings as vectors with single elements
++      Nov 1999: If macintoxh defined, also define f2cfortran (for Mac OS-X)
++      Apr 2000: If WIN32 defined, also define PowerStationFortran and
++                VISUAL_CPLUSPLUS (Visual C++)
++      Jun 2000: If __GNUC__ and linux defined, also define f2cFortran
++                (linux/gcc environment detection)
++      Apr 2002: If __CYGWIN__ is defined, also define f2cFortran
++      Nov 2002: If __APPLE__ defined, also define f2cfortran (for Mac OS-X)
++
++      Nov 2003: If __INTEL_COMPILER or INTEL_COMPILER defined, also define
++                f2cFortran (KMCCARTY)
++      Dec 2005: If f2cFortran is defined, enforce REAL functions in FORTRAN
++                returning "double" in C.  This was one of the items on
++		Burkhard's TODO list. (KMCCARTY)
++      Dec 2005: Modifications to support 8-byte integers. (MR)
++		USE AT YOUR OWN RISK!
++      Feb 2006  Added logic to typedef the symbol 'LONGLONG' to an appropriate
++                intrinsic 8-byte integer datatype  (WDP)
++      Apr 2006: Modifications to support gfortran (and g77 with -fno-f2c flag)
++                since by default it returns "float" for FORTRAN REAL function.
++                (KMCCARTY)
++ *******/
++
+ /* 
+   Avoid symbols already used by compilers and system *.h:
+   __ - OSF1 zukal06 V3.0 347 alpha, cc -c -std1 cfortest.c
+ 
+- */
++*/
++
++/* 
++   Determine what 8-byte integer data type is available.
++  'long long' is now supported by most compilers, but older
++  MS Visual C++ compilers before V7.0 use '__int64' instead. (WDP)
++*/
++
++#ifndef LONGLONG_TYPE   /* this may have been previously defined */
++#if defined(_MSC_VER)   /* Microsoft Visual C++ */
++
++#if (_MSC_VER < 1300)   /* versions earlier than V7.0 do not have 'long long' */
++    typedef __int64 LONGLONG;
++#else                   /* newer versions do support 'long long' */
++    typedef long long LONGLONG; 
++#endif
++
++#else
++    typedef long long LONGLONG; 
++#endif
++
++#define LONGLONG_TYPE
++#endif  
+ 
+ 
+ /* First prepare for the C compiler. */
+@@ -75,7 +135,9 @@
+ 
+ /* Remainder of cfortran.h depends on the Fortran compiler. */
+ 
+-#if defined(CLIPPERFortran) || defined(pgiFortran)
++/* 11/29/2003 (KMCCARTY): add *INTEL_COMPILER symbols here */
++/* 04/05/2006 (KMCCARTY): add gFortran symbol here */
++#if defined(CLIPPERFortran) || defined(pgiFortran) || defined(__INTEL_COMPILER) || defined(INTEL_COMPILER) || defined(gFortran)
+ #define f2cFortran
+ #endif
+ 
+@@ -90,6 +152,27 @@
+                            Support f2c or f77 with gcc, vcc with f2c. 
+                            f77 with vcc works, missing link magic for f77 I/O.*/
+ #endif
++/* 04/13/00 DM (CFITSIO): Add these lines for NT */
++/*   with PowerStationFortran and and Visual C++ */
++#if defined(WIN32) && !defined(__CYGWIN__)
++#define PowerStationFortran   
++#define VISUAL_CPLUSPLUS
++#endif
++#if defined(g77Fortran)                        /* 11/03/97 PDW (CFITSIO) */
++#define f2cFortran
++#endif
++#if        defined(__CYGWIN__)                 /* 04/11/02 LEB (CFITSIO) */
++#define       f2cFortran 
++#endif
++#if        defined(__GNUC__) && defined(linux) /* 06/21/00 PDW (CFITSIO) */
++#define       f2cFortran 
++#endif
++#if defined(macintosh)                         /* 11/1999 (CFITSIO) */
++#define f2cFortran
++#endif
++#if defined(__APPLE__)                         /* 11/2002 (CFITSIO) */
++#define f2cFortran
++#endif
+ #if defined(__hpux)             /* 921107: Use __hpux instead of __hp9000s300 */
+ #define       hpuxFortran       /*         Should also allow hp9000s7/800 use.*/
+ #endif
+@@ -131,6 +214,7 @@
+ #if !(defined(mipsFortran)||defined(DECFortran)||defined(vmsFortran)||defined(CONVEXFortran)||defined(PowerStationFortran)||defined(AbsoftUNIXFortran)||defined(AbsoftProFortran)||defined(SXFortran))
+ /* If your compiler barfs on ' #error', replace # with the trigraph for #     */
+  #error "cfortran.h:  Can't find your environment among:\
++    - GNU gcc (g77) on Linux.                                            \
+     - MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...)     \
+     - IBM AIX XL C and FORTRAN Compiler/6000 Version 01.01.0000.0000     \
+     - VAX   VMS CC 3.1 and FORTRAN 5.4.                                  \
+@@ -147,11 +231,14 @@
+     - VAXUltrix: vcc,cc or gcc with f2c. gcc or cc with f77.             \
+     -            f77 with vcc works; but missing link magic for f77 I/O. \
+     -            NO fort. None of gcc, cc or vcc generate required names.\
+-    - f2c    : Use #define    f2cFortran, or cc -Df2cFortran             \
++    - f2c/g77:   Use #define    f2cFortran, or cc -Df2cFortran           \
++    - gfortran:  Use #define    gFortran,   or cc -DgFortran             \
++                 (also necessary for g77 with -fno-f2c option)           \
+     - NAG f90: Use #define NAGf90Fortran, or cc -DNAGf90Fortran          \
+     - Absoft UNIX F77: Use #define AbsoftUNIXFortran or cc -DAbsoftUNIXFortran \
+     - Absoft Pro Fortran: Use #define AbsoftProFortran \
+-    - Portland Group Fortran: Use #define pgiFortran"
++    - Portland Group Fortran: Use #define pgiFortran \
++    - Intel Fortran: Use #define INTEL_COMPILER"
+ /* Compiler must throw us out at this point! */
+ #endif
+ #endif
+@@ -164,7 +251,8 @@
+ 
+ /* Throughout cfortran.h we use: UN = Uppercase Name.  LN = Lowercase Name.   */
+ 
+-#if defined(f2cFortran) || defined(NAGf90Fortran) || defined(DECFortran) || defined(mipsFortran) || defined(apolloFortran) || defined(sunFortran) || defined(CONVEXFortran) || defined(SXFortran) || defined(extname)
++/* "extname" changed to "appendus" below (CFITSIO) */
++#if defined(f2cFortran) || defined(NAGf90Fortran) || defined(DECFortran) || defined(mipsFortran) || defined(apolloFortran) || defined(sunFortran) || defined(CONVEXFortran) || defined(SXFortran) || defined(appendus)
+ #define CFC_(UN,LN)            _(LN,_)      /* Lowercase FORTRAN symbols.     */
+ #define orig_fcallsc(UN,LN)    CFC_(UN,LN)
+ #else 
+@@ -268,7 +356,8 @@
+ #endif
+ 
+ #ifndef apolloFortran
+-#define COMMON_BLOCK_DEF(DEFINITION, NAME) DEFINITION NAME
++/* "extern" removed (CFITSIO) */
++#define COMMON_BLOCK_DEF(DEFINITION, NAME) /* extern */ DEFINITION NAME
+ #define CF_NULL_PROTO
+ #else                                         /* HP doesn't understand #elif. */
+ /* Without ANSI prototyping, Apollo promotes float functions to double.    */
+@@ -512,7 +601,7 @@
+                     *( (F).dsc$l_m[0]=(F).dsc$bounds[0].dsc$l_u=(ELEMNO)  ),   \
+   (F).dsc$a_a0    =  ( (F).dsc$a_pointer=(C) ) - (F).dsc$w_length          ,(F))
+ 
+-#else
++#endif      /* PDW: 2/10/98 (CFITSIO) -- Let VMS see NUM_ELEMS definitions */
+ #define _NUM_ELEMS      -1
+ #define _NUM_ELEM_ARG   -2
+ #define NUM_ELEMS(A)    A,_NUM_ELEMS
+@@ -538,9 +627,14 @@
+   if (i==(unsigned)num_term) break;
+   else strv += elem_len-i;
+ }
++if (0) {  /* to prevent not used warnings in gcc (added by ROOT) */
++   c2fstrv(0, 0, 0, 0); f2cstrv(0, 0, 0, 0); kill_trailing(0, 0);
++   vkill_trailing(0, 0, 0, 0); num_elem(0, 0, 0, 0);
++}
+ return (int)num;
+ }
+-#endif
++/* #endif removed 2/10/98 (CFITSIO) */
++
+ /*-------------------------------------------------------------------------*/
+ 
+ /*           UTILITIES FOR C TO USE STRINGS IN FORTRAN COMMON BLOCKS       */
+@@ -1318,6 +1412,7 @@
+ #define     INTVVVVVVV_cfTYPE int
+ #define LOGICALVVVVVVV_cfTYPE int
+ #define    LONGVVVVVVV_cfTYPE long
++#define LONGLONGVVVVVVV_cfTYPE LONGLONG   /* added by MR December 2005 */
+ #define   SHORTVVVVVVV_cfTYPE short
+ #define          PBYTE_cfTYPE INTEGER_BYTE
+ #define        PDOUBLE_cfTYPE DOUBLE_PRECISION 
+@@ -1325,6 +1420,7 @@
+ #define           PINT_cfTYPE int
+ #define       PLOGICAL_cfTYPE int
+ #define          PLONG_cfTYPE long
++#define      PLONGLONG_cfTYPE LONGLONG  /* added by MR December 2005 */
+ #define         PSHORT_cfTYPE short
+ 
+ #define CFARGS0(A,T,V,W,X,Y,Z) _3(T,_cf,A)
+@@ -1342,6 +1438,7 @@
+ #define            INT_cfINT(N,A,B,X,Y,Z)        DOUBLE_cfINT(N,A,B,X,Y,Z)
+ #define        LOGICAL_cfINT(N,A,B,X,Y,Z)        DOUBLE_cfINT(N,A,B,X,Y,Z)
+ #define           LONG_cfINT(N,A,B,X,Y,Z)        DOUBLE_cfINT(N,A,B,X,Y,Z)
++#define       LONGLONG_cfINT(N,A,B,X,Y,Z)        DOUBLE_cfINT(N,A,B,X,Y,Z) /* added by MR December 2005 */
+ #define          SHORT_cfINT(N,A,B,X,Y,Z)        DOUBLE_cfINT(N,A,B,X,Y,Z)
+ #define          PBYTE_cfINT(N,A,B,X,Y,Z)       PDOUBLE_cfINT(N,A,B,X,Y,Z)
+ #define        PDOUBLE_cfINT(N,A,B,X,Y,Z) _(CFARGS,N)(A,PINT,B,X,Y,Z,0)
+@@ -1349,6 +1446,7 @@
+ #define           PINT_cfINT(N,A,B,X,Y,Z)       PDOUBLE_cfINT(N,A,B,X,Y,Z)
+ #define       PLOGICAL_cfINT(N,A,B,X,Y,Z)       PDOUBLE_cfINT(N,A,B,X,Y,Z)
+ #define          PLONG_cfINT(N,A,B,X,Y,Z)       PDOUBLE_cfINT(N,A,B,X,Y,Z)
++#define      PLONGLONG_cfINT(N,A,B,X,Y,Z)       PDOUBLE_cfINT(N,A,B,X,Y,Z) /* added by MR December 2005 */
+ #define         PSHORT_cfINT(N,A,B,X,Y,Z)       PDOUBLE_cfINT(N,A,B,X,Y,Z)
+ #define          BYTEV_cfINT(N,A,B,X,Y,Z)       DOUBLEV_cfINT(N,A,B,X,Y,Z)
+ #define         BYTEVV_cfINT(N,A,B,X,Y,Z)      DOUBLEVV_cfINT(N,A,B,X,Y,Z)
+@@ -1392,6 +1490,13 @@
+ #define      LONGVVVVV_cfINT(N,A,B,X,Y,Z)   DOUBLEVVVVV_cfINT(N,A,B,X,Y,Z)
+ #define     LONGVVVVVV_cfINT(N,A,B,X,Y,Z)  DOUBLEVVVVVV_cfINT(N,A,B,X,Y,Z)
+ #define    LONGVVVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVVVV_cfINT(N,A,B,X,Y,Z)
++#define      LONGLONGV_cfINT(N,A,B,X,Y,Z)       DOUBLEV_cfINT(N,A,B,X,Y,Z) /* added by MR December 2005 */
++#define     LONGLONGVV_cfINT(N,A,B,X,Y,Z)      DOUBLEVV_cfINT(N,A,B,X,Y,Z) /* added by MR December 2005 */
++#define    LONGLONGVVV_cfINT(N,A,B,X,Y,Z)     DOUBLEVVV_cfINT(N,A,B,X,Y,Z) /* added by MR December 2005 */
++#define   LONGLONGVVVV_cfINT(N,A,B,X,Y,Z)    DOUBLEVVVV_cfINT(N,A,B,X,Y,Z) /* added by MR December 2005 */
++#define  LONGLONGVVVVV_cfINT(N,A,B,X,Y,Z)   DOUBLEVVVVV_cfINT(N,A,B,X,Y,Z) /* added by MR December 2005 */
++#define LONGLONGVVVVVV_cfINT(N,A,B,X,Y,Z)  DOUBLEVVVVVV_cfINT(N,A,B,X,Y,Z) /* added by MR December 2005 */
++#define LONGLONGVVVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVVVV_cfINT(N,A,B,X,Y,Z) /* added by MR December 2005 */
+ #define         SHORTV_cfINT(N,A,B,X,Y,Z)       DOUBLEV_cfINT(N,A,B,X,Y,Z)
+ #define        SHORTVV_cfINT(N,A,B,X,Y,Z)      DOUBLEVV_cfINT(N,A,B,X,Y,Z)
+ #define       SHORTVVV_cfINT(N,A,B,X,Y,Z)     DOUBLEVVV_cfINT(N,A,B,X,Y,Z)
+@@ -1451,7 +1556,12 @@
+ #define      BYTE_cfPU(A)   CFextern INTEGER_BYTE      FCALLSC_QUALIFIER A
+ #define    DOUBLE_cfPU(A)   CFextern DOUBLE_PRECISION  FCALLSC_QUALIFIER A
+ #if ! (defined(FLOATFUNCTIONTYPE)&&defined(ASSIGNFLOAT)&&defined(RETURNFLOAT))
++#if defined (f2cFortran) && ! defined (gFortran)
++/* f2c/g77 return double from FORTRAN REAL functions. (KMCCARTY, 2005/12/09) */
++#define     FLOAT_cfPU(A)   CFextern DOUBLE_PRECISION  FCALLSC_QUALIFIER A
++#else
+ #define     FLOAT_cfPU(A)   CFextern FORTRAN_REAL      FCALLSC_QUALIFIER A
++#endif
+ #else				   	                   
+ #define     FLOAT_cfPU(A)   CFextern FLOATFUNCTIONTYPE FCALLSC_QUALIFIER A
+ #endif				   	                   
+@@ -1589,6 +1699,7 @@
+ #define            INT_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
+ #define        LOGICAL_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,LOGICAL,A,B,C,D,E)
+ #define           LONG_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
++#define       LONGLONG_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) /* added by MR December 2005 */
+ #define          SHORT_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
+ #define          BYTEV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
+ #define         BYTEVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
+@@ -1632,6 +1743,13 @@
+ #define      LONGVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
+ #define     LONGVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
+ #define    LONGVVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
++#define      LONGLONGV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) /* added by MR December 2005 */
++#define     LONGLONGVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) /* added by MR December 2005 */
++#define    LONGLONGVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) /* added by MR December 2005 */
++#define   LONGLONGVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) /* added by MR December 2005 */
++#define  LONGLONGVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) /* added by MR December 2005 */
++#define LONGLONGVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) /* added by MR December 2005 */
++#define LONGLONGVVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) /* added by MR December 2005 */
+ #define         SHORTV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
+ #define        SHORTVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
+ #define       SHORTVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
+@@ -1645,6 +1763,7 @@
+ #define           PINT_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
+ #define       PLOGICAL_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,PLOGICAL,A,B,C,D,E)
+ #define          PLONG_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
++#define      PLONGLONG_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) /* added by MR December 2005 */
+ #define         PSHORT_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
+ #define         STRING_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,STRING,A,B,C,D,E)
+ #define        PSTRING_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,PSTRING,A,B,C,D,E)
+@@ -1957,6 +2076,7 @@
+ #define            INT_cfT(M,I,A,B,D) *A
+ #define        LOGICAL_cfT(M,I,A,B,D)  F2CLOGICAL(*A)
+ #define           LONG_cfT(M,I,A,B,D) *A
++#define       LONGLONG_cfT(M,I,A,B,D) *A /* added by MR December 2005 */
+ #define          SHORT_cfT(M,I,A,B,D) *A
+ #define          BYTEV_cfT(M,I,A,B,D)  A
+ #define        DOUBLEV_cfT(M,I,A,B,D)  A
+@@ -1964,6 +2084,7 @@
+ #define           INTV_cfT(M,I,A,B,D)  A
+ #define       LOGICALV_cfT(M,I,A,B,D)  A
+ #define          LONGV_cfT(M,I,A,B,D)  A
++#define      LONGLONGV_cfT(M,I,A,B,D)  A /* added by MR December 2005 */
+ #define         SHORTV_cfT(M,I,A,B,D)  A
+ #define         BYTEVV_cfT(M,I,A,B,D)  (void *)A /* We have to cast to void *,*/
+ #define        BYTEVVV_cfT(M,I,A,B,D)  (void *)A /* since we don't know the   */
+@@ -2001,6 +2122,12 @@
+ #define      LONGVVVVV_cfT(M,I,A,B,D)  (void *)A
+ #define     LONGVVVVVV_cfT(M,I,A,B,D)  (void *)A
+ #define    LONGVVVVVVV_cfT(M,I,A,B,D)  (void *)A
++#define     LONGLONGVV_cfT(M,I,A,B,D)  (void *)A /* added by MR December 2005 */
++#define    LONGLONGVVV_cfT(M,I,A,B,D)  (void *)A /* added by MR December 2005 */
++#define   LONGLONGVVVV_cfT(M,I,A,B,D)  (void *)A /* added by MR December 2005 */
++#define  LONGLONGVVVVV_cfT(M,I,A,B,D)  (void *)A /* added by MR December 2005 */
++#define LONGLONGVVVVVV_cfT(M,I,A,B,D)  (void *)A /* added by MR December 2005 */
++#define LONGLONGVVVVVVV_cfT(M,I,A,B,D)  (void *)A /* added by MR December 2005 */
+ #define        SHORTVV_cfT(M,I,A,B,D)  (void *)A
+ #define       SHORTVVV_cfT(M,I,A,B,D)  (void *)A
+ #define      SHORTVVVV_cfT(M,I,A,B,D)  (void *)A
+@@ -2013,6 +2140,7 @@
+ #define           PINT_cfT(M,I,A,B,D)  A
+ #define       PLOGICAL_cfT(M,I,A,B,D)  ((*A=F2CLOGICAL(*A)),A)
+ #define          PLONG_cfT(M,I,A,B,D)  A
++#define      PLONGLONG_cfT(M,I,A,B,D)  A /* added by MR December 2005 */
+ #define         PSHORT_cfT(M,I,A,B,D)  A
+ #define          PVOID_cfT(M,I,A,B,D)  A
+ #if defined(apolloFortran) || defined(hpuxFortran800) || defined(AbsoftUNIXFortran)
+@@ -2083,12 +2211,18 @@
+ #define     INT_cfFZ(UN,LN) int   FCALLSC_QUALIFIER fcallsc(UN,LN)(
+ #define LOGICAL_cfFZ(UN,LN) int   FCALLSC_QUALIFIER fcallsc(UN,LN)(
+ #define    LONG_cfFZ(UN,LN) long  FCALLSC_QUALIFIER fcallsc(UN,LN)(
++#define LONGLONG_cfFZ(UN,LN) LONGLONG FCALLSC_QUALIFIER fcallsc(UN,LN)( /* added by MR December 2005 */
+ #define   SHORT_cfFZ(UN,LN) short FCALLSC_QUALIFIER fcallsc(UN,LN)(
+ #define    VOID_cfFZ(UN,LN) void  FCALLSC_QUALIFIER fcallsc(UN,LN)(
+ #ifndef __CF__KnR
+ /* The void is req'd by the Apollo, to make this an ANSI function declaration.
+    The Apollo promotes K&R float functions to double. */
+-#define   FLOAT_cfFZ(UN,LN) FORTRAN_REAL FCALLSC_QUALIFIER fcallsc(UN,LN)(void
++#if defined (f2cFortran) && ! defined (gFortran)
++/* f2c/g77 return double from FORTRAN REAL functions. (KMCCARTY, 2005/12/09) */
++#define FLOAT_cfFZ(UN,LN) DOUBLE_PRECISION FCALLSC_QUALIFIER fcallsc(UN,LN)(void
++#else
++#define FLOAT_cfFZ(UN,LN) FORTRAN_REAL FCALLSC_QUALIFIER fcallsc(UN,LN)(void
++#endif
+ #ifdef vmsFortran
+ #define  STRING_cfFZ(UN,LN) void  FCALLSC_QUALIFIER fcallsc(UN,LN)(fstring *AS
+ #else
+@@ -2104,7 +2238,12 @@
+ #endif
+ #else
+ #if ! (defined(FLOATFUNCTIONTYPE)&&defined(ASSIGNFLOAT)&&defined(RETURNFLOAT))
++#if defined (f2cFortran) && ! defined (gFortran)
++/* f2c/g77 return double from FORTRAN REAL functions. (KMCCARTY, 2005/12/09) */
++#define   FLOAT_cfFZ(UN,LN) DOUBLE_PRECISION  FCALLSC_QUALIFIER fcallsc(UN,LN)(
++#else
+ #define   FLOAT_cfFZ(UN,LN) FORTRAN_REAL      FCALLSC_QUALIFIER fcallsc(UN,LN)(
++#endif
+ #else
+ #define   FLOAT_cfFZ(UN,LN) FLOATFUNCTIONTYPE FCALLSC_QUALIFIER fcallsc(UN,LN)(
+ #endif
+@@ -2118,13 +2257,19 @@
+ #define    BYTE_cfF(UN,LN)     BYTE_cfFZ(UN,LN)
+ #define  DOUBLE_cfF(UN,LN)   DOUBLE_cfFZ(UN,LN)
+ #ifndef __CF_KnR
++#if defined (f2cFortran) && ! defined (gFortran)
++/* f2c/g77 return double from FORTRAN REAL functions. (KMCCARTY, 2005/12/09) */
++#define   FLOAT_cfF(UN,LN)  DOUBLE_PRECISION FCALLSC_QUALIFIER fcallsc(UN,LN)(
++#else
+ #define   FLOAT_cfF(UN,LN)  FORTRAN_REAL FCALLSC_QUALIFIER fcallsc(UN,LN)(
++#endif
+ #else
+ #define   FLOAT_cfF(UN,LN)    FLOAT_cfFZ(UN,LN)
+ #endif
+ #define     INT_cfF(UN,LN)      INT_cfFZ(UN,LN)
+ #define LOGICAL_cfF(UN,LN)  LOGICAL_cfFZ(UN,LN)
+ #define    LONG_cfF(UN,LN)     LONG_cfFZ(UN,LN)
++#define LONGLONG_cfF(UN,LN) LONGLONG_cfFZ(UN,LN) /* added by MR December 2005 */
+ #define   SHORT_cfF(UN,LN)    SHORT_cfFZ(UN,LN)
+ #define    VOID_cfF(UN,LN)     VOID_cfFZ(UN,LN)
+ #define  STRING_cfF(UN,LN)   STRING_cfFZ(UN,LN),
+@@ -2187,6 +2332,7 @@
+ #define LOGICAL_cfI  return C2FLOGICAL(A0);
+ #endif
+ #define    LONG_cfI  return A0;
++#define LONGLONG_cfI  return A0; /* added by MR December 2005 */
+ #define   SHORT_cfI  return A0;
+ #define  STRING_cfI  return   ;
+ #define    VOID_cfI  return   ;
--- mclibs-2005.dfsg.orig/debian/patches/README
+++ mclibs-2005.dfsg/debian/patches/README
@@ -0,0 +1,73 @@
+Notes on Debian patches to Cernlib source:
+------------------------------------------
+
+All patches in this directory are, unless otherwise specified in the patch
+header, copyright 2001-2006 Kevin B. McCarty and are licensed under the GNU
+General Public License version 2 or later, at your option.  The GNU GPL may be
+found at http://www.gnu.org/licenses/gpl.html or, on Debian systems, at
+/usr/share/common-licenses/GPL .
+
+Dpatch is used because some of the files in this directory are really
+shell scripts, and no other patch system (quilt, cdbs, etc.) appears to
+support this.  (Am I the only person using this "feature" of dpatch?)
+Dpatch files that are really patches are named NNN-<description>.dpatch
+while dpatch files that are shell scripts are named NNN-<description>.sh.dpatch
+NNN is a three digit number ranging from 000 through 999.
+
+Note that, contrary to the usual practice, the file debian/patches/00list
+(listing the patches to be applied) is auto-generated by "debian/rules clean",
+and may be further modified in the stampdir/configure-stamp target of the
+debian/add-ons/Makefile (called from "debian/rules unpack") depending upon
+settings in $DEB_BUILD_OPTIONS.  See debian/README.source for a list of
+supported $DEB_BUILD_OPTIONS parameters.
+
+A few of the patches (*.dpatch.in) include values that need to be filled in
+at configure time; this is also done in the stampdir/configure-stamp target of
+debian/add-ons/Makefile.
+
+(You do not _really_ need dpatch to work with these patches; they are applied
+for non-Debian systems in a hacky way by the patch target of
+debian/add-ons/Makefile.)
+
+The numbering scheme of patches in this directory is as follows:
+
+000	is a dummy patch used to force dpatch-edit-patch to create diffs
+	relative to already-unpacked source.  It has no effect when "applied"
+	or "de-applied" against an unpacked source tree.
+001-099 are reserved for patches that permit compilation after having
+	removed non-free code from Cernlib source.
+100-199 are for bug fixes that should eventually be submitted upstream
+	and have a reasonable probability of being merged, for instance,
+	security bugs, file-specific compiler optimization settings, etc.
+200-299 are for feature enhancements that should eventually be submitted
+	upstream, for example, including ERTRAK code in libgeant.
+300-399 are for implementation of non-Debian-specific niceties that are
+	probably too intrusive to go upstream, for instance FHS implementation
+	or use of shadow passwords by pawserv.
+400-599 are reserved for future use.
+600-699 are for Debian-specific customizations, for instance setting the
+	default editor as sensible-editor, having Paw send bug reports
+	to the BTS, etc.  Most of these are protected by
+	"#if defined(CERNLIB_DEBIAN)" in the source code so they can be safely
+	applied on non-Debian systems.
+700-799 are for patches that move source code around.  Many of these are
+	actually shell scripts.  Typically this is done to split
+	libraries apart or to move functions from one library into another.
+800-899 are for implementation of shared libraries.  (They must be implemented
+	only after moving files around, or they have many undefined symbol
+	problems.)
+900-999 are for optional patches that may or may not be applied depending
+	upon settings in $DEB_BUILD_OPTIONS.  These patches are stored
+	in the "optional" subdirectory, copied here in the "unpack" target
+	of debian/rules or add-ons/Makefile, and removed in the "clean"
+	target.
+
+Ideally, the source should compile with any complete set of the
+patches numbered 000 through NNN (where NNN is 100 or greater) applied,
+possibly excluding patches in the 9xx series.  (All patches with the same
+number must be applied or not, as a whole.)
+
+To select the set of patches to be applied, after running debian/rules clean,
+edit debian/patches/00list to include only the desired ones.
+
+-- Kevin B. McCarty <kmccarty@debian.org>, 29 Jun 2006
--- mclibs-2005.dfsg.orig/debian/patches/315-fixes-for-MacOSX.dpatch
+++ mclibs-2005.dfsg/debian/patches/315-fixes-for-MacOSX.dpatch
@@ -0,0 +1,56 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 315-fixes-for-MacOSX.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Patch set (mostly due to Keisuke Fujii) to allow Cernlib to compile
+## DP: and run on OS X.
+
+@DPATCH@
+diff -urNad cernlib-2005.05.09.dfsg~/src/Imakefile cernlib-2005.05.09.dfsg/src/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/Imakefile	1996-12-16 10:08:41.000000000 -0500
++++ cernlib-2005.05.09.dfsg/src/Imakefile	2005-12-07 14:47:34.141148558 -0500
+@@ -7,8 +7,12 @@
+ SUBDIRS= $(LIBDIRS) patchy cfortran
+ 
+ #ifdef CERNLIB_UNIX
++#ifdef CERNLIB_MACOSX
++SUBDIRS:= $(SUBDIRS) scripts
++#else
+ SUBDIRS:= $(SUBDIRS) scripts mgr
+ #endif
++#endif
+ 
+ InstallLibSubdirs($(LIBDIRS))
+ 
+diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/cojets/data/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/cojets/data/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/mclibs/cojets/data/Imakefile	1996-03-27 04:31:06.000000000 -0500
++++ cernlib-2005.05.09.dfsg/src/mclibs/cojets/data/Imakefile	2005-12-07 14:47:34.141148558 -0500
+@@ -1,11 +1,11 @@
+ 
+ .SUFFIXES:
+ 
+-CopyFile(cojets.cpp,cojets.cin)
++CopyFile(cojets.cpp,cojets.s)
+ CopyFile(decay.cpp,decay.cin)
+ CopyFile(table.cpp,table.cin)
+ 
+-CppFileTarget(cojets.dat,cojets.cin,NullParameter,table.cin decay.cin)
++CppFileTarget(cojets.dat,cojets.s,-E -traditional,table.cin decay.cin)
+ 
+ PackageDirFileTarget(cojets.dat)
+ 
+diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/isajet/data/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/isajet/data/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/mclibs/isajet/data/Imakefile	1996-03-27 04:33:19.000000000 -0500
++++ cernlib-2005.05.09.dfsg/src/mclibs/isajet/data/Imakefile	2005-12-07 14:47:34.141148558 -0500
+@@ -1,9 +1,9 @@
+ 
+ .SUFFIXES:
+ 
+-CopyFile(decay.cpp,decay.cin)
++CopyFile(decay.cpp,decay.s)
+ 
+-CppFileTarget(isajet.dat,decay.cin,NullParameter,NullParameter)
++CppFileTarget(isajet.dat,decay.s,-E -traditional ,NullParameter)
+ 
+ PackageDirFileTarget(isajet.dat)
+ 
--- mclibs-2005.dfsg.orig/debian/patches/806-bump-mathlib-and-dependents-sonames.dpatch
+++ mclibs-2005.dfsg/debian/patches/806-bump-mathlib-and-dependents-sonames.dpatch
@@ -0,0 +1,68 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 806-bump-mathlib-and-dependents-sonames.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Bump so versions of mathlib and dependents since it is now compiled
+## DP: against liblapack3 instead of liblapack2.
+
+@DPATCH@
+diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/cojets/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/cojets/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/mclibs/cojets/Imakefile	2005-11-23 15:49:19.723162159 +0000
++++ cernlib-2005.05.09.dfsg/src/mclibs/cojets/Imakefile	2005-11-23 15:49:27.431512287 +0000
+@@ -2,6 +2,8 @@
+ #define IHaveSubdirs
+ #define PassCDebugFlags
+ 
++export LIB_SONAME := 2
++
+ AllTarget(cojets)
+ 
+ LIBDIRS= code cojdata cojtapew
+diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/herwig/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/herwig/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/mclibs/herwig/Imakefile	2005-11-23 15:49:19.724161945 +0000
++++ cernlib-2005.05.09.dfsg/src/mclibs/herwig/Imakefile	2005-11-23 15:49:27.432512073 +0000
+@@ -2,6 +2,8 @@
+ #define IHaveSubdirs
+ #define PassCDebugFlags
+ 
++export LIB_SONAME := 2
++
+ SUBDIRS= code doc test herwig59
+ 
+ TopOfPackage(herwig59)
+diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/isajet/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/isajet/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/mclibs/isajet/Imakefile	2005-11-23 15:49:19.724161945 +0000
++++ cernlib-2005.05.09.dfsg/src/mclibs/isajet/Imakefile	2005-11-23 15:49:27.432512073 +0000
+@@ -3,6 +3,8 @@
+ #define IHaveSubdirs
+ #define PassCDebugFlags
+ 
++export LIB_SONAME := 2
++
+ LIBDIRS= code isadata isasusy isarun isatape
+ 
+ SUBDIRS= $(LIBDIRS) test data isajet
+diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/pdf/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/pdf/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/mclibs/pdf/Imakefile	2005-11-23 15:49:19.724161945 +0000
++++ cernlib-2005.05.09.dfsg/src/mclibs/pdf/Imakefile	2005-11-23 15:49:27.432512073 +0000
+@@ -6,6 +6,8 @@
+ IMAKE_DEFINES=-DFortranDoesCpp=NO
+ #endif
+ 
++export LIB_SONAME := 2
++
+ AllTarget(pdflib804)
+ 
+ SUBDIRS= spdf npdf tpdf pdf
+diff -urNad cernlib-2005.05.09.dfsg~/src/phtools/Imakefile cernlib-2005.05.09.dfsg/src/phtools/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/phtools/Imakefile	2005-11-23 15:49:19.725161731 +0000
++++ cernlib-2005.05.09.dfsg/src/phtools/Imakefile	2005-11-23 15:49:27.432512073 +0000
+@@ -2,6 +2,8 @@
+ #define IHaveSubdirs
+ #define PassCDebugFlags
+ 
++export LIB_SONAME := 2
++
+ LIBDIRS= genbod fowl wico
+ 
+ SUBDIRS= $(LIBDIRS) wicoexam
--- mclibs-2005.dfsg.orig/debian/patches/305-use-POWERPC-not-PPC-as-test.dpatch
+++ mclibs-2005.dfsg/debian/patches/305-use-POWERPC-not-PPC-as-test.dpatch
@@ -0,0 +1,21 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 305-use-POWERPC-not-PPC-as-test.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Since patch 304 changed the meaning of CERNLIB_PPC to a mere endianness
+## DP: test, we now use CERNLIB_POWERPC to mean actually checking for a PowerPC
+## DP: processor; fix the three occurences of this in Imakefiles.
+
+@DPATCH@
+diff -urNad cernlib-2005.05.09/src/mclibs/herwig/code/Imakefile /tmp/dpep.fQy2EP/cernlib-2005.05.09/src/mclibs/herwig/code/Imakefile
+--- cernlib-2005.05.09/src/mclibs/herwig/code/Imakefile	1998-09-25 11:34:28.000000000 -0400
++++ /tmp/dpep.fQy2EP/cernlib-2005.05.09/src/mclibs/herwig/code/Imakefile	2005-06-09 10:51:45.913019086 -0400
+@@ -43,7 +43,7 @@
+ 
+ SubdirLibraryTarget(NullParameter,NullParameter)
+ 
+-#if defined(CERNLIB_LINUX) && defined(CERNLIB_PPC)
++#if defined(CERNLIB_LINUX) && defined(CERNLIB_POWERPC)
+ SpecialFortranLibObjectRule(hwuci2,hwuci2,-O0,NullParameter)
+ #endif
+ 
--- mclibs-2005.dfsg.orig/debian/patches/301-datafiles-comply-with-FHS.dpatch.in
+++ mclibs-2005.dfsg/debian/patches/301-datafiles-comply-with-FHS.dpatch.in
@@ -0,0 +1,43 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 301-datafiles-comply-with-FHS.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Put data files under @DATADIR@ (defined in add-ons/Makefile).
+
+@DPATCH@
+diff -urNad cernlib-2005.05.09/src/mclibs/cojets/test/test.F /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/cojets/test/test.F
+--- cernlib-2005.05.09/src/mclibs/cojets/test/test.F	1996-03-25 07:53:36.000000000 -0500
++++ /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/cojets/test/test.F	2005-06-08 16:39:52.846851314 -0400
+@@ -6,7 +6,7 @@
+ #if defined(CERNLIB_IBMVM)
+       PARAMETER (DFILE='/COJETS DATA *')
+ #else
+-      PARAMETER (DFILE='cojets.dat')
++      PARAMETER (DFILE='@DATADIR@/cojets/cojets.dat')
+ #endif
+ C
+ C          MAIN PROGRAM FOR COJETS
+diff -urNad cernlib-2005.05.09/src/mclibs/eurodec/eurodec/eufiles.inc /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/eurodec/eurodec/eufiles.inc
+--- cernlib-2005.05.09/src/mclibs/eurodec/eurodec/eufiles.inc	1996-03-08 11:58:49.000000000 -0500
++++ /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/eurodec/eurodec/eufiles.inc	2005-06-08 16:40:14.175049565 -0400
+@@ -18,7 +18,7 @@
+       PARAMETER (ETFILE='/EUTITLE DAT   *')
+ #endif
+       CHARACTER*(*) EDFILE,ETFILE
+-      PARAMETER (EDFILE='eurodec.dat')
++      PARAMETER (EDFILE='@DATADIR@/eurodec/eurodec.dat')
+       PARAMETER (ETFILE='eutitle.dat')
+ 
+ #endif
+diff -urNad cernlib-2005.05.09/src/mclibs/isajet/test/isajett.F /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/isajet/test/isajett.F
+--- cernlib-2005.05.09/src/mclibs/isajet/test/isajett.F	1997-03-14 12:32:39.000000000 -0500
++++ /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/isajet/test/isajett.F	2005-06-08 16:40:43.746393067 -0400
+@@ -8,7 +8,7 @@
+ #if defined(CERNLIB_VAXVMS)
+       PARAMETER (DFILE='CERN_ROOT:[lib]isajet.dat')
+ #else
+-      PARAMETER (DFILE='isajet.dat')
++      PARAMETER (DFILE='@DATADIR@/isajet/isajet.dat')
+ #endif
+ #endif
+ C
--- mclibs-2005.dfsg.orig/debian/patches/000-unpack.sh.dpatch
+++ mclibs-2005.dfsg/debian/patches/000-unpack.sh.dpatch
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# This is a fake patch used to convince dpatch-edit-patch to unpack the
+# Cernlib source code before trying to generate a diff from it.
+# This is a no-op if called when the source has already been unpacked, e.g.
+# if running "fakeroot debian/rules patch".
+# 
+# Yes, this is an ugly hack.
+
+set -e
+case "$1" in
+	-patch)   [ -e Makefile ] || cp -p debian/add-ons/Makefile .
+		  make prefix=/usr stampdir/configure-stamp ;;
+	-unpatch) exit 0 ;;
+	*)	  exit 1 ;;
+esac
--- mclibs-2005.dfsg.orig/debian/patches/210-improve-cfortran-header-files.dpatch
+++ mclibs-2005.dfsg/debian/patches/210-improve-cfortran-header-files.dpatch
@@ -0,0 +1,58 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 210-improve-cfortran-header-files.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Protect against multiple inclusion and add explicit dependency on
+## DP: cfortran.h to the Cernlib C headers.
+
+@DPATCH@
+diff -urNad cernlib-2005.05.09/src/cfortran/jetset74.h /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/jetset74.h
+--- cernlib-2005.05.09/src/cfortran/jetset74.h	1999-10-29 12:55:45.000000000 -0400
++++ /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/jetset74.h	2005-06-10 12:51:31.250943117 -0400
+@@ -1,3 +1,11 @@
++#ifndef _JETSET74_H
++#define _JETSET74_H
++#include <cfortran/cfortran.h>
++
++#ifdef __cplusplus
++extern "C" {
++#endif
++
+ PROTOCCALLSFFUN2(INT,KLU,klu,INT,INT)
+ #define KLU(A2,A3)  CCALLSFFUN2(KLU,klu,INT,INT,A2,A3)
+ 
+@@ -327,3 +335,9 @@
+ 
+ PROTOCCALLSFSUB11(STRUCTM,structm,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,PDOUBLE)
+ #define STRUCTM(A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11)  CCALLSFSUB11(STRUCTM,structm,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,PDOUBLE,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11)
++
++#ifdef __cplusplus
++} /* extern "C" */
++#endif
++
++#endif /* #ifndef _JETSET74_H */
+diff -urNad cernlib-2005.05.09/src/cfortran/lepto62.h /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/lepto62.h
+--- cernlib-2005.05.09/src/cfortran/lepto62.h	1999-10-29 12:55:45.000000000 -0400
++++ /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/lepto62.h	2005-06-10 12:51:31.378915804 -0400
+@@ -1,3 +1,11 @@
++#ifndef _LEPTO62_H
++#define _LEPTO62_H
++#include <cfortran/cfortran.h>
++
++#ifdef __cplusplus
++extern "C" {
++#endif
++
+ PROTOCCALLSFFUN2(FLOAT,DCROSS,dcross,FLOAT,FLOAT)
+ #define DCROSS(A2,A3)  CCALLSFFUN2(DCROSS,dcross,FLOAT,FLOAT,A2,A3)
+ 
+@@ -174,3 +182,9 @@
+ 
+ PROTOCCALLSFSUB0(RIWIBD,riwibd)
+ #define RIWIBD() CCALLSFSUB0(RIWIBD,riwibd)
++
++#ifdef __cplusplus
++} /* extern "C" */
++#endif
++
++#endif /* #ifndef _LEPTO62_H */
--- mclibs-2005.dfsg.orig/debian/patches/802-create-shared-libraries.dpatch
+++ mclibs-2005.dfsg/debian/patches/802-create-shared-libraries.dpatch
@@ -0,0 +1,107 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 802-create-shared-libraries.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Actually implement the rules to create shared libraries.
+
+@DPATCH@
+diff -urNad cernlib-2005.05.09.dfsg~/src/Imakefile cernlib-2005.05.09.dfsg/src/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/Imakefile	2005-12-01 15:19:24.191267776 +0000
++++ cernlib-2005.05.09.dfsg/src/Imakefile	2005-12-01 15:20:10.310483251 +0000
+@@ -15,6 +15,7 @@
+ #endif
+ 
+ InstallLibSubdirs($(LIBDIRS))
++InstallSharedLibSubdirs($(LIBDIRS))
+ 
+ INCLUDEDIRS= $(LIBDIRS) cfortran
+ 
+diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/mclibs/Imakefile	2005-12-01 15:19:22.512623901 +0000
++++ cernlib-2005.05.09.dfsg/src/mclibs/Imakefile	2005-12-01 15:19:31.187783453 +0000
+@@ -13,6 +13,7 @@
+ TestSubdirs($(LIBDIRS))
+ 
+ InstallLibSubdirs($(LIBDIRS))
++InstallSharedLibSubdirs($(LIBDIRS))
+ 
+ /* Again, purge Pythia, Jetset and dependents. */
+ INCLUDEDIRS= cojets eurodec herwig isajet pdf
+diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/cojets/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/cojets/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/mclibs/cojets/Imakefile	1996-05-06 20:06:50.000000000 +0000
++++ cernlib-2005.05.09.dfsg/src/mclibs/cojets/Imakefile	2005-12-01 15:19:31.187783453 +0000
+@@ -12,6 +12,7 @@
+ SubdirLibraryTarget(cojets,$(LIBDIRS))
+ 
+ InstallLibrary(cojets,$(CERN_LIBDIR))
++InstallSharedLibrary(cojets,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR))
+ 
+ SubdirDataFile($(LIBRARY),cojets.dat,data)
+ 
+diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/eurodec/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/eurodec/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/mclibs/eurodec/Imakefile	1996-05-06 20:06:55.000000000 +0000
++++ cernlib-2005.05.09.dfsg/src/mclibs/eurodec/Imakefile	2005-12-01 15:19:31.187783453 +0000
+@@ -12,6 +12,7 @@
+ SubdirLibraryTarget(eurodec,$(LIBDIRS))
+ 
+ InstallLibrary(eurodec,$(CERN_LIBDIR))
++InstallSharedLibrary(eurodec,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR))
+ 
+ SubdirDataFile($(LIBRARY),eurodec.dat,data)
+ 
+diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/herwig/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/herwig/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/mclibs/herwig/Imakefile	1997-01-06 17:06:41.000000000 +0000
++++ cernlib-2005.05.09.dfsg/src/mclibs/herwig/Imakefile	2005-12-01 15:19:31.187783453 +0000
+@@ -10,6 +10,7 @@
+ 
+ InstallLibrary(herwig59,$(CERN_LIBDIR))
+ InstallLibraryAlias(herwig59,herwig,$(CERN_LIBDIR))
++InstallSharedLibrary(herwig59,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR))
+ 
+ TestSubdirs(test)
+ 
+diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/isajet/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/isajet/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/mclibs/isajet/Imakefile	2001-10-08 14:03:02.000000000 +0000
++++ cernlib-2005.05.09.dfsg/src/mclibs/isajet/Imakefile	2005-12-01 15:19:31.187783453 +0000
+@@ -12,6 +12,7 @@
+ SubdirLibraryTarget(isajet758,$(LIBDIRS))
+ 
+ InstallLibrary(isajet758,$(CERN_LIBDIR))
++InstallSharedLibrary(isajet758,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR))
+ 
+ SubdirDataFile($(LIBRARY),isajet.dat,data)
+ 
+diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/pdf/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/pdf/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/mclibs/pdf/Imakefile	2000-05-29 14:49:59.000000000 +0000
++++ cernlib-2005.05.09.dfsg/src/mclibs/pdf/Imakefile	2005-12-01 15:19:31.188783241 +0000
+@@ -15,6 +15,7 @@
+ SubdirLibraryTarget(pdflib804,spdf npdf)
+ 
+ InstallLibrary(pdflib804,$(CERN_LIBDIR))
++InstallSharedLibrary(pdflib804,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR))
+ 
+ TestSubdirs(tpdf)
+ 
+diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/photos/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/photos/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/mclibs/photos/Imakefile	1999-03-26 10:52:23.000000000 +0000
++++ cernlib-2005.05.09.dfsg/src/mclibs/photos/Imakefile	2005-12-01 15:19:31.188783241 +0000
+@@ -15,6 +15,7 @@
+ SubdirLibraryTarget(photos202,code)
+ 
+ InstallLibrary(photos202,$(CERN_LIBDIR))
++InstallSharedLibrary(photos202,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR))
+ 
+ TestSubdirs(test)
+ 
+diff -urNad cernlib-2005.05.09.dfsg~/src/phtools/Imakefile cernlib-2005.05.09.dfsg/src/phtools/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/phtools/Imakefile	1996-11-14 16:44:33.000000000 +0000
++++ cernlib-2005.05.09.dfsg/src/phtools/Imakefile	2005-12-01 15:19:31.189783029 +0000
+@@ -11,7 +11,7 @@
+ SubdirLibraryTarget(phtools,$(LIBDIRS))
+ 
+ InstallLibrary(phtools,$(CERN_LIBDIR))
+-InstallSharedLibrary(phtools,$(CERN_LEVEL),$(CERN_SHLIBDIR))
++InstallSharedLibrary(phtools,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR))
+ 
+ TestSubdirs(wicoexam)
+ 
--- mclibs-2005.dfsg.orig/debian/patches/optional/901-dont-compile-spdf.dpatch
+++ mclibs-2005.dfsg/debian/patches/optional/901-dont-compile-spdf.dpatch
@@ -0,0 +1,25 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 901-dont-compile-spdf.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Don't build the SPDF code that takes forever to compile.
+## DP: Useful to build Cernlib for debugging if you don't care about pdflib.
+
+@DPATCH@
+diff -urNad cernlib-2005.05.09/src/mclibs/pdf/Imakefile /tmp/dpep.v3PYFb/cernlib-2005.05.09/src/mclibs/pdf/Imakefile
+--- cernlib-2005.05.09/src/mclibs/pdf/Imakefile	2005-06-10 15:05:57.149606442 -0400
++++ /tmp/dpep.v3PYFb/cernlib-2005.05.09/src/mclibs/pdf/Imakefile	2005-06-10 15:06:32.774975143 -0400
+@@ -8,11 +8,11 @@
+ 
+ AllTarget(pdflib804)
+ 
+-SUBDIRS= spdf npdf tpdf pdf
++SUBDIRS= npdf tpdf pdf
+ 
+ TopOfPackage(pdflib804)
+ 
+-SubdirLibraryTarget(pdflib804,spdf npdf)
++SubdirLibraryTarget(pdflib804,npdf)
+ 
+ InstallLibrary(pdflib804,$(CERN_LIBDIR))
+ InstallSharedLibrary(pdflib804,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR))
--- mclibs-2005.dfsg.orig/debian/patches/optional/902-no-isajet-on-m68k.dpatch
+++ mclibs-2005.dfsg/debian/patches/optional/902-no-isajet-on-m68k.dpatch
@@ -0,0 +1,29 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 902-no-isajet-on-m68k.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/isajet/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/isajet/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/mclibs/isajet/Imakefile	2005-12-05 11:42:14.600833380 -0500
++++ cernlib-2005.05.09.dfsg/src/mclibs/isajet/Imakefile	2005-12-05 11:43:17.940274928 -0500
+@@ -10,12 +10,16 @@
+ SUBDIRS= $(LIBDIRS) test data isajet
+ 
+ TopOfPackage(isajet758)
+-
++#if 0
+ SubdirLibraryTarget(isajet758,$(LIBDIRS))
+ 
+ InstallLibrary(isajet758,$(CERN_LIBDIR))
+ InstallSharedLibrary(isajet758,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR))
+-
++#endif
++
++install.shlib: /* dummy target for m68k */
++	true
++
+ SubdirDataFile($(LIBRARY),isajet.dat,data)
+ 
+ /* install the data file : */
--- mclibs-2005.dfsg.orig/debian/patches/101-undefine-PPC.dpatch
+++ mclibs-2005.dfsg/debian/patches/101-undefine-PPC.dpatch
@@ -0,0 +1,27 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 101-undefine-PPC.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: If "PPC" is defined by compiler, undefine where it clashes with a
+## DP: local variable.
+
+@DPATCH@
+diff -urNad cernlib-2005.05.09/src/mclibs/cojets/code/bradlp.F /tmp/dpep.aeMGeJ/cernlib-2005.05.09/src/mclibs/cojets/code/bradlp.F
+--- cernlib-2005.05.09/src/mclibs/cojets/code/bradlp.F	1996-01-11 09:14:33.000000000 -0500
++++ /tmp/dpep.aeMGeJ/cernlib-2005.05.09/src/mclibs/cojets/code/bradlp.F	2005-06-08 17:00:48.403200778 -0400
+@@ -37,6 +37,15 @@
+ #include "cojets/zpar2.inc"
+ #include "cojets/zwpar.inc"
+ #include "cojets/weakon.inc"
++
++C     The following is necessary since PPC is defined in g77 on
++C     the powerpc architecture, but it's also a variable in this
++C     file.
++C       -- Kevin McCarty
++#ifdef PPC
++#undef PPC
++#endif
++
+       DIMENSION QP(4),QM(4),QK(4),QE(4),QN(4)
+       DIMENSION COEF(2,2),QQV(2)
+ C
--- mclibs-2005.dfsg.orig/debian/patches/102-dont-optimize-some-code.dpatch
+++ mclibs-2005.dfsg/debian/patches/102-dont-optimize-some-code.dpatch
@@ -0,0 +1,34 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 102-dont-optimize-some-code.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Don't allow the compiler to optimize several files that cause trouble
+## DP: (either compiler crash or broken code generation).
+
+@DPATCH@
+diff -urNad cernlib-2005.05.09/src/mclibs/isajet/isatape/Imakefile /tmp/dpep.hNz5sX/cernlib-2005.05.09/src/mclibs/isajet/isatape/Imakefile
+--- cernlib-2005.05.09/src/mclibs/isajet/isatape/Imakefile	1996-05-06 11:19:44.000000000 -0400
++++ /tmp/dpep.hNz5sX/cernlib-2005.05.09/src/mclibs/isajet/isatape/Imakefile	2005-06-09 11:16:58.039286811 -0400
+@@ -4,4 +4,8 @@
+ 
+ FORTRANSAVEOPTION = FortranSaveFlags
+ 
++#if defined(CERNLIB_LINUX)
++SpecialFortranLibObjectRule(isawev,isawev,-O0,NullParameter)
++#endif
++
+ SubdirLibraryTarget(NullParameter,NullParameter)
+diff -urNad cernlib-2005.05.09/src/mclibs/pdf/spdf/Imakefile /tmp/dpep.hNz5sX/cernlib-2005.05.09/src/mclibs/pdf/spdf/Imakefile
+--- cernlib-2005.05.09/src/mclibs/pdf/spdf/Imakefile	2000-04-19 09:51:56.000000000 -0400
++++ /tmp/dpep.hNz5sX/cernlib-2005.05.09/src/mclibs/pdf/spdf/Imakefile	2005-06-09 11:22:02.812494322 -0400
+@@ -97,4 +97,10 @@
+ #ifdef CERNLIB_HPUX
+ FORTRANOPTIONS += '-WF,-P'
+ #endif
++
++#if defined(CERNLIB_LINUX)
++/* -O2 optimization on ARM breaks in g77 3.3.3 */
++SpecialFortranLibObjectRule(structm,structm,-O0,NullParameter)
++#endif
++
+ SubdirLibraryTarget(NullParameter,NullParameter)
--- mclibs-2005.dfsg.orig/debian/patches/100-fix-isajet-manual-corruption.dpatch
+++ mclibs-2005.dfsg/debian/patches/100-fix-isajet-manual-corruption.dpatch
@@ -0,0 +1,20 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 100-fix-isajet-manual-corruption.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix corruption in LaTeX source to the Isajet manual.
+## DP: (Replacement text obtained from a PS version of the manual on the web.)
+
+@DPATCH@
+diff -urNad cernlib-2005.05.09/src/mclibs/isajet/doc/physics.doc /tmp/dpep.tlmeFD/cernlib-2005.05.09/src/mclibs/isajet/doc/physics.doc
+--- cernlib-2005.05.09/src/mclibs/isajet/doc/physics.doc	2001-10-08 10:03:08.000000000 -0400
++++ /tmp/dpep.tlmeFD/cernlib-2005.05.09/src/mclibs/isajet/doc/physics.doc	2005-06-08 16:12:37.814042242 -0400
+@@ -122,7 +122,7 @@
+ $W/Z$ decay. These were calculated using FORM 1.1 by J.~Vermaseren. The
+ process $g + t \to W + b$ is {\it not} included. Both $g + b \to W^- +
+ t$ and $g + \bar t \to W^- + \bar b$ of course give the same $W^- + t
+-+\BARB_FINALSTATEAFTERQCDEVOLUTION
+++\bar b$ final state after QCD evolution.  While the latter process is
+ needed to describe the $m_t = 0$(!) mass singularity for $q_t \gg
+ m_t$, it has a pole in the physical region at low $q_t$ from on-shell
+ $t \to W + b$ decays. There is no obvious way to avoid this without
--- mclibs-2005.dfsg.orig/debian/patches/306-patch-assert.h-for-makedepend.dpatch
+++ mclibs-2005.dfsg/debian/patches/306-patch-assert.h-for-makedepend.dpatch
@@ -0,0 +1,165 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 306-patch-assert.h-for-makedepend.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Include local copy of assert.h with a workaround for a bug of
+## DP: makedepend (cf. Debian bug # 171908).
+
+@DPATCH@
+diff -urNad cernlib-2005.05.09/src/include/assert.h /tmp/dpep.9sKNsJ/cernlib-2005.05.09/src/include/assert.h
+--- cernlib-2005.05.09/src/include/assert.h	1969-12-31 19:00:00.000000000 -0500
++++ /tmp/dpep.9sKNsJ/cernlib-2005.05.09/src/include/assert.h	2005-06-09 12:50:41.751880968 -0400
+@@ -0,0 +1,153 @@
++#ifndef CERNLIB_LINUX
++# include "/usr/include/assert.h"
++#else
++
++/* Copyright (C) 1991,1992,1994-2001,2003 Free Software Foundation, Inc.
++   This file is part of the GNU C Library.
++
++   The GNU C Library is free software; you can redistribute it and/or
++   modify it under the terms of the GNU Lesser General Public
++   License as published by the Free Software Foundation; either
++   version 2.1 of the License, or (at your option) any later version.
++
++   The GNU C Library is distributed in the hope that it will be useful,
++   but WITHOUT ANY WARRANTY; without even the implied warranty of
++   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
++   Lesser General Public License for more details.
++
++   You should have received a copy of the GNU Lesser General Public
++   License along with the GNU C Library; if not, write to the Free
++   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
++   02111-1307 USA.  */
++
++/*
++ *	ISO C99 Standard: 7.2 Diagnostics	<assert.h>
++ */
++
++#ifdef	_ASSERT_H
++
++# undef	_ASSERT_H
++# undef	assert
++# undef __ASSERT_VOID_CAST
++
++# ifdef	__USE_GNU
++#  undef assert_perror
++# endif
++
++#endif /* assert.h	*/
++
++#define	_ASSERT_H	1
++#include <features.h>
++
++#if defined __cplusplus && __GNUC_PREREQ (2,95)
++# define __ASSERT_VOID_CAST static_cast<void>
++#else
++# define __ASSERT_VOID_CAST (void)
++#endif
++
++/* void assert (int expression);
++
++   If NDEBUG is defined, do nothing.
++   If not, and EXPRESSION is zero, print an error message and abort.  */
++
++#ifdef	NDEBUG
++
++# define assert(expr)		(__ASSERT_VOID_CAST (0))
++
++/* void assert_perror (int errnum);
++
++   If NDEBUG is defined, do nothing.  If not, and ERRNUM is not zero, print an
++   error message with the error text for ERRNUM and abort.
++   (This is a GNU extension.) */
++
++# ifdef	__USE_GNU
++#  define assert_perror(errnum)	(__ASSERT_VOID_CAST (0))
++# endif
++
++#else /* Not NDEBUG.  */
++
++#ifndef _ASSERT_H_DECLS
++#define _ASSERT_H_DECLS
++__BEGIN_DECLS
++
++/* This prints an "Assertion failed" message and aborts.  */
++extern void __assert_fail (__const char *__assertion, __const char *__file,
++			   unsigned int __line, __const char *__function)
++     __THROW __attribute__ ((__noreturn__));
++
++/* Likewise, but prints the error text for ERRNUM.  */
++extern void __assert_perror_fail (int __errnum, __const char *__file,
++				  unsigned int __line,
++				  __const char *__function)
++     __THROW __attribute__ ((__noreturn__));
++
++
++/* The following is not at all used here but needed for standard
++   compliance.  */
++extern void __assert (const char *__assertion, const char *__file, int __line)
++     __THROW __attribute__ ((__noreturn__));
++
++
++__END_DECLS
++#endif /* Not _ASSERT_H_DECLS */
++
++/* For the macro definition we use gcc's __builtin_expect if possible
++   to generate good code for the non-error case.  gcc 3.0 is a good
++   enough estimate for when the feature became available.  */
++# if __GNUC_PREREQ (3, 0)
++#  define assert(expr) \
++  (__ASSERT_VOID_CAST (__builtin_expect (!!(expr), 1) ? 0 :		      \
++		       (__assert_fail (__STRING(expr), __FILE__, __LINE__,    \
++				       __ASSERT_FUNCTION), 0)))
++# else
++#  define assert(expr) \
++  (__ASSERT_VOID_CAST ((expr) ? 0 :					      \
++		       (__assert_fail (__STRING(expr), __FILE__, __LINE__,    \
++				       __ASSERT_FUNCTION), 0)))
++# endif
++
++# ifdef	__USE_GNU
++#  if __GNUC_PREREQ (3, 0)
++#   define assert_perror(errnum) \
++  (__ASSERT_VOID_CAST (__builtin_expect (!(errnum), 1) ? 0 :		      \
++		       (__assert_perror_fail ((errnum), __FILE__, __LINE__,   \
++					      __ASSERT_FUNCTION), 0)))
++#  else
++#   define assert_perror(errnum) \
++  (__ASSERT_VOID_CAST (!(errnum) ? 0 :					      \
++		       (__assert_perror_fail ((errnum), __FILE__, __LINE__,   \
++					      __ASSERT_FUNCTION), 0)))
++#  endif
++# endif
++
++/* Version 2.4 and later of GCC define a magical variable `__PRETTY_FUNCTION__'
++   which contains the name of the function currently being defined.
++   This is broken in G++ before version 2.6.
++   C9x has a similar variable called __func__, but prefer the GCC one since
++   it demangles C++ function names.  */
++
++/* The following commented-out line breaks makedepend (bug # 171908); a local
++ * patched version of assert.h is therefore included.
++ *   --Kevin McCarty, for Debian */
++/* # if defined __cplusplus ? __GNUC_PREREQ (2, 6) : __GNUC_PREREQ (2, 4) */
++
++/* begin fix to work around Debian Bug # 171908 */
++# if defined __cplusplus
++#  if __GNUC_PREREQ (2, 6)
++#   define __ASSERT_FUNCTION	__PRETTY_FUNCTION__
++#  endif
++# elif __GNUC_PREREQ (2, 4)
++/* end fix */
++
++#   define __ASSERT_FUNCTION	__PRETTY_FUNCTION__
++# else
++#  if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
++#   define __ASSERT_FUNCTION	__func__
++#  else
++#   define __ASSERT_FUNCTION	((__const char *) 0)
++#  endif
++# endif
++
++#endif /* NDEBUG.  */
++
++#endif /* CERNLIB_LINUX */
--- mclibs-2005.dfsg.orig/debian/patches/309-define-dummy-herwig-routines.dpatch
+++ mclibs-2005.dfsg/debian/patches/309-define-dummy-herwig-routines.dpatch
@@ -0,0 +1,66 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 309-define-dummy-herwig-routines.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Define stub functions for herwig routines that are supposed to be
+## DP: provided by the user.  Also, comment out the dummy functions pdfset
+## DP: and structm; real versions are provided in pdflib.
+
+@DPATCH@
+diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/herwig/code/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/herwig/code/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/mclibs/herwig/code/Imakefile	2005-11-28 19:46:53.619963660 +0000
++++ cernlib-2005.05.09.dfsg/src/mclibs/herwig/code/Imakefile	2005-11-28 19:46:58.890844233 +0000
+@@ -24,8 +24,13 @@
+ 	hwulob.F hwulof.F hwulor.F hwumas.F hwupcm.F hwurap.F hwures.F \ @@\
+ 	hwurob.F hwurof.F hwurot.F hwusor.F hwusqr.F hwusta.F hwutab.F \ @@\
+ 	hwutim.F hwvdif.F hwvdot.F hwvequ.F hwvsca.F hwvsum.F hwvzro.F \ @@\
+-	hwwarn.F ieupdg.F ipdgeu.F pdfset.F qqinit.F qqlmat.F sasano.F \ @@\
+-	sasbeh.F sasdir.F sasgam.F sasvmd.F structm.F
++	hwwarn.F ieupdg.F ipdgeu.F /*pdfset.F*/ qqinit.F qqlmat.F sasano.F \ @@\
++	sasbeh.F sasdir.F sasgam.F sasvmd.F /*structm.F*/
++	/* comment out pdfset.F, structm.F; real versions are in pdflib */
++
++/* add the following file to define dummy routines as weak symbols */
++/* --Kevin McCarty, for Debian */
++SRCS_C= dummy.c
+ 
+ FORTRANSAVEOPTION = FortranSaveFlags
+ 
+diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/herwig/code/dummy.c cernlib-2005.05.09.dfsg/src/mclibs/herwig/code/dummy.c
+--- cernlib-2005.05.09.dfsg~/src/mclibs/herwig/code/dummy.c	1970-01-01 00:00:00.000000000 +0000
++++ cernlib-2005.05.09.dfsg/src/mclibs/herwig/code/dummy.c	2005-11-28 19:49:17.897320746 +0000
+@@ -0,0 +1,34 @@
++/* Dummy file to avoid undefined symbols in the library */
++/* Kevin McCarty, 14 Jan 2003 */
++
++#include <stdio.h>
++#include <stdlib.h>
++
++/* Want the dummy functions to be weakly defined so they may be overridden
++ * without error. */
++
++#define kludge(x)    #x
++#define stringify(x) kludge(x)
++#define underline(x) dummy_ ## x
++
++#define DUMMY(UPPERNAME, fortranname_, returntype) \
++static returntype underline(fortranname_)() { print_dummy(#UPPERNAME); } \
++void fortranname_() \
++	__attribute__ ((weak, alias (stringify(underline(fortranname_))) ))
++
++static void print_dummy(const char *function)
++{
++  fprintf(stderr, "herwig59: Now in dummy %s routine.\n", function);
++  fprintf(stderr,
++          "If you see this message, you should define your own such routine.\n"
++#if defined (CERNLIB_DEBIAN)
++	  "For details, see the file /usr/share/doc/libherwig59-2-dev/herwig59.txt.gz\n"
++#endif
++  );
++  exit(EXIT_FAILURE);
++}
++
++DUMMY(HWABEG, hwabeg_, void);
++DUMMY(HWANAL, hwanal_, void);
++DUMMY(HWAEND, hwaend_, void);
++
--- mclibs-2005.dfsg.orig/debian/patches/310-define-dummy-fowl-routines.dpatch
+++ mclibs-2005.dfsg/debian/patches/310-define-dummy-fowl-routines.dpatch
@@ -0,0 +1,103 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 310-define-dummy-fowl-routines.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Define stub functions for routines in fowl that are supposed to be
+## DP: user-defined.  Also, rename START to FSTART to avoid name clash
+## DP: with mathlib.
+
+@DPATCH@
+diff -urNad cernlib-2005.05.09.dfsg~/src/phtools/fowl/Imakefile cernlib-2005.05.09.dfsg/src/phtools/fowl/Imakefile
+--- cernlib-2005.05.09.dfsg~/src/phtools/fowl/Imakefile	1996-04-26 07:13:52.000000000 +0000
++++ cernlib-2005.05.09.dfsg/src/phtools/fowl/Imakefile	2005-11-28 19:49:52.412989577 +0000
+@@ -1,10 +1,12 @@
+-SRCS_F=	 beamin.F breitw.F chmove.F delsq.F dumpme.F finish.F \ @@\
++SRCS_F=	 beamin.F breitw.F chmove.F delsq.F dumpme.F /* finish.F */ \ @@\
+ 	fmass.F fmassq.F fowl.F fowlmp.F fowlpr.F genev.F histey.F \ @@\
+ 	labsys.F pdk.F qqstrt.F rangnr.F redat2.F redata.F rotes2.F \ @@\
+ 	scout.F teedia.F tranch.F xplsdx.F
+ 
++SRCS_C= dummy.c /*"fake" defn of start, user, finish to avoid undefined syms*/
++
+ #if !defined(CERNLIB_UNIX)
+-SRCS_F := $(SRCS_F) start.F
++SRCS_F := $(SRCS_F) /* start.F */
+ #endif
+ 
+ SubdirLibraryTarget(fowl,NullParameter)
+diff -urNad cernlib-2005.05.09.dfsg~/src/phtools/fowl/dummy.c cernlib-2005.05.09.dfsg/src/phtools/fowl/dummy.c
+--- cernlib-2005.05.09.dfsg~/src/phtools/fowl/dummy.c	1970-01-01 00:00:00.000000000 +0000
++++ cernlib-2005.05.09.dfsg/src/phtools/fowl/dummy.c	2005-11-28 19:53:31.287496776 +0000
+@@ -0,0 +1,39 @@
++/* Dummy file to avoid undefined symbols in the library */
++/* Kevin McCarty, 26 Apr 2004 */
++/* Last revised 13 Aug 2004 */
++
++#include <stdio.h>
++#include <stdlib.h>
++
++/* Want the dummy functions to be weakly defined so they may be overridden
++ * without error. */
++
++#define kludge(x)    #x
++#define stringify(x) kludge(x)
++#define underline(x) dummy_ ## x
++
++#define DUMMY(UPPERNAME, fortranname_, returntype) \
++static returntype underline(fortranname_)() { print_dummy(#UPPERNAME); } \
++void fortranname_() \
++	__attribute__ ((weak, alias (stringify(underline(fortranname_))) ))
++
++static void print_dummy(const char *function)
++{
++  fprintf(stderr, "phtools: Now in dummy %s routine.\n", function);
++  fprintf(stderr,
++          "If you see this message, you should define your own such routine.\n"
++	  "For details, see "
++#if defined (CERNLIB_DEBIAN)
++	                   "/usr/share/doc/libphtools2-dev/README.Debian\n"
++	  "and "
++#endif
++	      "the CERN writeup for FOWL (available at the URL\n"
++	  "http://wwwasdoc.web.cern.ch/wwwasdoc/Welcome.html ; scroll down\n"
++	  "to the link for W505 - FOWL.)\n");
++  exit(EXIT_FAILURE);
++}
++
++DUMMY(FSTART, fstart_, void);
++DUMMY(USER,   user_,   void);
++DUMMY(FINISH, finish_, void);
++
+diff -urNad cernlib-2005.05.09.dfsg~/src/phtools/fowl/fowlmp.F cernlib-2005.05.09.dfsg/src/phtools/fowl/fowlmp.F
+--- cernlib-2005.05.09.dfsg~/src/phtools/fowl/fowlmp.F	1996-03-22 16:42:46.000000000 +0000
++++ cernlib-2005.05.09.dfsg/src/phtools/fowl/fowlmp.F	2005-11-28 19:49:52.412989577 +0000
+@@ -30,7 +30,7 @@
+       CALL REDATA
+       IF(NEVTOT.LT.NGRP) NGRP = NEVTOT
+       N2 = MIN (NEVTOT/NGRP, 30000)
+-      CALL START
++      CALL FSTART
+       DO  500 I2= 1, N2
+       DO  400  I= 1, NGRP
+       IEVENT = IEVENT + 1
+diff -urNad cernlib-2005.05.09.dfsg~/src/phtools/fowl/qqstrt.F cernlib-2005.05.09.dfsg/src/phtools/fowl/qqstrt.F
+--- cernlib-2005.05.09.dfsg~/src/phtools/fowl/qqstrt.F	1996-03-22 16:42:47.000000000 +0000
++++ cernlib-2005.05.09.dfsg/src/phtools/fowl/qqstrt.F	2005-11-28 19:49:52.412989577 +0000
+@@ -38,6 +38,9 @@
+       COMMON
+      +/TAPES / NTPIN     ,NTPOUT   ,NTPNCH   ,NTPBIN   ,KONSOL
+       IF(JEVT.LE.0) RETURN
++#if 0
++C     Comment this section out; "which" is obsolete
++C     -- Kevin McCarty, for Debian, 26 April 2004
+       CALL WHICH(ISIT,VAL)
+       WRITE(6,700)JEVT,VAL
+   700 FORMAT('0RANDOM NUMBER GENERATOR INITIATED TO',I12,
+@@ -46,6 +49,7 @@
+ C--     CDC   60-BIT WORD
+ CDC                             )B10000000000000007171 .RO.  TVEJ( = POL
+       GOTO 200
++#endif
+   100 CONTINUE
+ C         FOR -CDC JUST MAKE SURE IT IS ODD
+       IGLOP = JEVT
--- mclibs-2005.dfsg.orig/debian/patches/204-compile-isajet-with-isasrt.dpatch
+++ mclibs-2005.dfsg/debian/patches/204-compile-isajet-with-isasrt.dpatch
@@ -0,0 +1,20 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 204-compile-isajet-with-isasrt.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Include isasrt in the Isajet library, by request (cf.
+## DP: http://bugs.debian.org/260469 )
+
+@DPATCH@
+diff -urNad cernlib-2005.05.09/src/mclibs/isajet/code/Imakefile /tmp/dpep.PM12lm/cernlib-2005.05.09/src/mclibs/isajet/code/Imakefile
+--- cernlib-2005.05.09/src/mclibs/isajet/code/Imakefile	2001-10-08 09:06:49.000000000 -0400
++++ /tmp/dpep.PM12lm/cernlib-2005.05.09/src/mclibs/isajet/code/Imakefile	2005-06-09 14:25:29.621215677 -0400
+@@ -9,7 +9,7 @@
+ 	 fortop.F frgjet.F frgmnt.F gamma.F getpt.F gettot.F heavyx.F \ @@\
+ 	 hevolv.F higgs.F idanti.F idgen.F iframs.F inisap.F ipartns.F \ @@\
+ 	 ipjset.F iprtns.F irmov0.F isabeg.F isaend.F isaevt.F isaini.F \ @@\
+-	 isajet.F ispjet.F istrad.F iswdky.F jetgen.F \ @@\
++	 isajet.F isasrt.F ispjet.F istrad.F iswdky.F jetgen.F \ @@\
+ 	 label.F lboost.F logerr.F \ @@\
+ 	 logic.F logp.F logphi.F logphw.F logpt.F logqm.F logqt.F logthw.F \ @@\
+ 	 logx.F logxw.F logyth.F logyw.F lstsq.F mbias.F mbset.F nogood.F \ @@\
--- mclibs-2005.dfsg.orig/debian/patches/312-skip-duplicate-gamma.dpatch
+++ mclibs-2005.dfsg/debian/patches/312-skip-duplicate-gamma.dpatch
@@ -0,0 +1,25 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 312-skip-duplicate-gamma.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Don't compile in redundant gamma function in isajet; use the mathlib one
+
+@DPATCH@
+diff -urNad cernlib-2005.05.09/src/mclibs/isajet/code/Imakefile /tmp/dpep.IX54UM/cernlib-2005.05.09/src/mclibs/isajet/code/Imakefile
+--- cernlib-2005.05.09/src/mclibs/isajet/code/Imakefile	2005-06-09 14:29:18.976494518 -0400
++++ /tmp/dpep.IX54UM/cernlib-2005.05.09/src/mclibs/isajet/code/Imakefile	2005-06-09 14:30:21.913126207 -0400
+@@ -1,12 +1,13 @@
+ DoIncludePackage(isajet)
+ #include "pilot.h"
+ 
++/* gamma.F removed; use the one defined in mathlib/gen/c/gamma.F */
+ SRCS_F= \ @@\
+ 	 amass.F charge.F cteq5l.F ctxc2i.F ctxi2c.F ctxin.F ctxout.F \ @@\
+ 	 dblpcm.F dblvec.F dboost.F decay.F decjet.F \ @@\
+ 	 domssm.F drllyn.F eebeg.F eemax.F elctrn.F epf.F evol01.F evol02.F \ @@\
+ 	 evol03.F evol05.F evol06.F evol07.F evolms.F evolve.F flavor.F \ @@\
+-	 fortop.F frgjet.F frgmnt.F gamma.F getpt.F gettot.F heavyx.F \ @@\
++	 fortop.F frgjet.F frgmnt.F         getpt.F gettot.F heavyx.F \ @@\
+ 	 hevolv.F higgs.F idanti.F idgen.F iframs.F inisap.F ipartns.F \ @@\
+ 	 ipjset.F iprtns.F irmov0.F isabeg.F isaend.F isaevt.F isaini.F \ @@\
+ 	 isajet.F isasrt.F ispjet.F istrad.F iswdky.F jetgen.F \ @@\
--- mclibs-2005.dfsg.orig/debian/patches/206-herwig-uses-DBLE-not-REAL.dpatch
+++ mclibs-2005.dfsg/debian/patches/206-herwig-uses-DBLE-not-REAL.dpatch
@@ -0,0 +1,31 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 206-herwig-uses-DBLE-not-REAL.dpatch by  <kmccarty@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Have libherwig use double precision consistently
+
+@DPATCH@
+diff -urNad cernlib-2005.05.09/src/mclibs/herwig/code/hwhiga.F /tmp/dpep.1kYOCO/cernlib-2005.05.09/src/mclibs/herwig/code/hwhiga.F
+--- cernlib-2005.05.09/src/mclibs/herwig/code/hwhiga.F	1996-12-03 09:16:56.000000000 -0500
++++ /tmp/dpep.1kYOCO/cernlib-2005.05.09/src/mclibs/herwig/code/hwhiga.F	2005-06-09 15:22:00.263743792 -0400
+@@ -72,7 +72,7 @@
+       TAMP(6)=HWHIG5(T,S,U,EMH2,EMQ2,2,0,5,0,0,0)
+       TAMP(7)=HWHIG5(U,T,S,EMH2,EMQ2,3,0,6,0,0,0)
+       DO 20 I=1,7
+-      TAMPI(I)= REAL(TAMP(I))
++      TAMPI(I)= DBLE(TAMP(I))
+   20  TAMPR(I)=-IMAG(TAMP(I))
+ C Square and add prefactors
+       WTGG=0.03125*FLOAT(NCOLO*(NCOLO**2-1))
+diff -urNad cernlib-2005.05.09/src/mclibs/herwig/code/hwuli2.F /tmp/dpep.1kYOCO/cernlib-2005.05.09/src/mclibs/herwig/code/hwuli2.F
+--- cernlib-2005.05.09/src/mclibs/herwig/code/hwuli2.F	1996-12-03 09:17:04.000000000 -0500
++++ /tmp/dpep.1kYOCO/cernlib-2005.05.09/src/mclibs/herwig/code/hwuli2.F	2005-06-09 15:22:00.263743792 -0400
+@@ -18,7 +18,7 @@
+      &  1.644934066848226D0/
+       PROD(Y,Y2)=Y*(ONE+A1*Y*(ONE+A2*Y*(ONE+A3*Y2*(ONE+A4*Y2*(ONE+A5*Y2*
+      & (ONE+A6*Y2*(ONE+A7*Y2*(ONE+A8*Y2*(ONE+A9*Y2*(ONE+A10*Y2))))))))))
+-      XR=REAL(X)
++      XR=DBLE(X)
+       XI=IMAG(X)
+       R2=XR*XR+XI*XI
+       IF (R2.GT.ONE.AND.(XR/R2).GT.HALF) THEN
--- mclibs-2005.dfsg.orig/debian/add-ons/Makefile
+++ mclibs-2005.dfsg/debian/add-ons/Makefile
@@ -0,0 +1,160 @@
+NEEDS_MAKEFILE	= cfortran mclibs phtools
+LIB_PACKAGES	= mclibs phtools
+
+prefix		= /usr/local
+datadir		= $(prefix)/share
+include $(datadir)/cernlib/cernlib.mk
+
+MCDOC		= $(DESTDIR)$(datadir)/doc/montecarlo-doc
+
+cernlib-arch-local: cernlib-mc-data cernlib-mc-docs
+
+cernlib-configure-local:
+ifneq (,$(findstring nospdf,$(DEB_BUILD_OPTIONS)))
+	cp -p $(PATCHDIR)/optional/901-dont-compile-spdf.dpatch $(PATCHDIR)
+	echo 901-dont-compile-spdf.dpatch >> $(PATCHDIR)/00list
+endif
+ifeq ($(DEB_BUILD_ARCH),m68k)
+	cp -p $(PATCHDIR)/optional/902-no-isajet-on-m68k.dpatch $(PATCHDIR)
+	echo 902-no-isajet-on-m68k.dpatch >> $(PATCHDIR)/00list
+endif
+
+cernlib-mc-data: patch buildtree
+	$(MAKE) -C $(CERN_BUILDDIR) MAKEOVERRIDES= mclibs/Makefile
+	$(MAKE) -C $(CERN_BUILDDIR)/mclibs MAKEOVERRIDES= \
+		cojets/Makefile eurodec/Makefile
+	$(MAKE) -C $(CERN_BUILDDIR)/mclibs/cojets MAKEOVERRIDES= \
+		$(CERN_LIBDIR)/cojets.dat
+	$(MAKE) -C $(CERN_BUILDDIR)/mclibs/eurodec MAKEOVERRIDES= \
+		$(CERN_LIBDIR)/eurodec.dat
+	$(MAKE) -C $(CERN_BUILDDIR)/mclibs MAKEOVERRIDES= isajet/Makefile
+	$(MAKE) -C $(CERN_BUILDDIR)/mclibs/isajet MAKEOVERRIDES= \
+	    	$(CERN_LIBDIR)/isajet.dat
+
+# now build some documentation that isn't created automatically.
+# Unfortunately, the cernlib authors weren't thoughtful enough to
+# give any indication of the order in which chapters go from their
+# filenames.
+cernlib-mc-docs: patch
+	mkdir -p $(CERN_DOCDIR)
+	#
+	# cojets
+	set -e ; \
+	cd $(CVSCOSRC)/mclibs/cojets/doc ; \
+	cat title.doc intro.doc physics.doc usage.doc backward.doc patchy.doc \
+		external.doc iocon.doc ioconfor.doc ioconinp.doc ioconout.doc \
+		ioisa.doc ioisafor.doc ioisainp.doc ioisaout.doc taperead.doc \
+		table.doc | sed -e '/^\*$$/d' -e '/^\* .*$$/d' > \
+		$(CERN_DOCDIR)/cojets.txt
+	# isajet
+	set -e ; \
+	cd $(CVSCOSRC)/mclibs/isajet/doc ; \
+	sed '/^\*.*$$/d' ztext.doc > $(CERN_DOCDIR)/isajet-zebra.txt ; \
+	sed '/^\*.*$$/d' isassdoc.doc > $(CERN_DOCDIR)/isasusy.txt ; \
+	cat intro.doc physics.doc sample.doc patchy.doc main.doc \
+		input.doc output.doc tape.doc decay.doc ident.doc \
+		higher.doc susy.doc changes.doc > $(CERN_DOCDIR)/isajet.tex; \
+	cd $(CERN_DOCDIR) ; \
+	latex isajet.tex ; \
+	latex isajet.tex ; \
+	dvips isajet.dvi -o isajet.ps
+	# eurodec
+	set -e ; \
+	cd $(CVSCOSRC)/mclibs/eurodec/doc ; \
+	sed -e '/^\*.*$$/d' -e 's/C\.//g' eudtxt > $(CERN_DOCDIR)/eurodec.txt
+
+# target to install include files for development packages
+install-includes:
+	install -d -m 0755 $(DESTDIR)$(includedir)
+
+	# install them all (patching includes, e.g. #include "ksys.h"
+	# -> #include <kuip/ksys.h> )
+	for dir in `cat $(ADDONDIR)/includelist.txt` ; do \
+		basedir=`basename $$dir` ; \
+		rm -rf $(DESTDIR)$(includedir)/$$basedir ; \
+		cp -Rp $(CVSCOSRC)/$$dir $(DESTDIR)$(includedir) ; \
+		ls -1 $(DESTDIR)$(includedir)/$$basedir/* | \
+			egrep -v '\.(h|inc)$$' | xargs rm -rf ; \
+		for file in `ls -1 $(DESTDIR)$(includedir)/$$basedir/*` ; do \
+		if [ -f $$file ] ; then \
+	sed -e 's,^\([ ]*#[ ]*include\)[ 	]*"\([^"/]*\)",\1 <'$$basedir/'\2>,g' \
+		-e 's,^\([ ]*#[ ]*include\)[ 	]*"\([^"]*\)",\1 <\2>,g' \
+		-e 's,cfortran/,,g' \
+		$$file > $$file.tmp ; \
+	mv -f $$file.tmp $$file ; \
+	fi ; \
+	done ; \
+	done
+
+	# install some symlinks, e.g. herwig$$version -> herwig
+	rm -f $(DESTDIR)$(includedir)/herwig && \
+		ln -sf herwig59 $(DESTDIR)$(includedir)/herwig
+	rm -rf $(DESTDIR)$(includedir)/isajet758
+	mv $(DESTDIR)$(includedir)/isajet $(DESTDIR)$(includedir)/isajet758
+	ln -sf isajet758 $(DESTDIR)$(includedir)/isajet
+	rm -rf $(DESTDIR)$(includedir)/pdf804
+	mv $(DESTDIR)$(includedir)/pdf $(DESTDIR)$(includedir)/pdf804
+	ln -sf pdf804 $(DESTDIR)$(includedir)/pdf
+	
+	# a few more needed patches
+	sed 's,REAL,DOUBLE PRECISION,g' \
+		$(DESTDIR)$(includedir)/isajet/hepevt.inc \
+		> $(DESTDIR)$(includedir)/isajet/hepevt.inc.tmp && \
+	mv -f $(DESTDIR)$(includedir)/isajet/hepevt.inc.tmp \
+		$(DESTDIR)$(includedir)/isajet/hepevt.inc
+
+# target to install files in arch-dependent packages
+install-arch: install-includes
+	install -d -m 0755 $(DESTDIR)$(libdir) $(DESTDIR)$(datadir)/cojets \
+		$(DESTDIR)$(datadir)/isajet $(DESTDIR)$(datadir)/eurodec
+	
+	# install libraries
+	install -p -m 0644 $(CERN_LIBDIR)/*.a $(DESTDIR)$(libdir)/
+	# we go through the following rigmarole because "install" dereferences
+	# symlinks and older GNU versions of "cp" have inconsistent
+	# syntax for the short form of the --no-dereference flag
+	set -e ; \
+	if [ -d $(CERN_SHLIBDIR) ] ; then \
+	( abslibdir="`cd $(DESTDIR)$(libdir)/ && pwd`" ; \
+	  cd $(CERN_SHLIBDIR)/ ; \
+	  for file in `ls | grep 'lib.*\..*\..*\.'` ; do \
+		basename=`echo $$file | cut -f 1 -d .` ; \
+		install -p -m 0644 $$file "$$abslibdir/" ; \
+		for link in `ls $${basename}.* |grep -v 'lib.*\..*\..*\.'`; do \
+			ln -sf $$file "$$abslibdir"/$$link ; \
+		done ; \
+	  done ) ; \
+	fi
+
+	# install Monte Carlo data files
+	install -p -m 0644 $(CERN_LIBDIR)/cojets.dat \
+		$(DESTDIR)$(datadir)/cojets/
+	install -p -m 0644 $(CERN_LIBDIR)/eurodec.dat \
+		$(DESTDIR)$(datadir)/eurodec/
+	install -p -m 0644 $(CERN_LIBDIR)/isajet.dat \
+		$(DESTDIR)$(datadir)/isajet/
+
+	# ... and mclibs documentation
+	for dir in cojets eurodec herwig isajet pdflib ; do \
+		install -d -m 0755 $(MCDOC)/$$dir ; \
+	done
+	install -p -m 0644 $(CERN_DOCDIR)/cojets.txt $(MCDOC)/cojets/
+	install -p -m 0644 $(CERN_DOCDIR)/isa* $(MCDOC)/isajet/
+	install -p -m 0644 $(CERN_DOCDIR)/eurodec.txt $(MCDOC)/eurodec/
+	install -p -m 0644 $(CVSCOSRC)/mclibs/herwig/doc/herwig59 \
+		$(MCDOC)/herwig/herwig59.txt
+	install -p -m 0644 $(CVSCOSRC)/mclibs/pdf/dpdf/pdfdoc.doc \
+		$(MCDOC)/pdflib/pdfdoc.txt
+
+# target to install files in arch-independent packages
+install-indep:
+	install -d -m 0755 $(DESTDIR)$(includedir)
+	
+	# install some include files for montecarlo-base package
+	install -p -m 0644 $(CVSCOSRC)/cfortran/jetset74.h \
+		$(CVSCOSRC)/cfortran/lepto62.h $(DESTDIR)$(includedir)/
+
+.PHONY: cernlib-configure-local cernlib-arch-local  \
+	cernlib-mc-data cernlib-mc-docs \
+	install install-arch install-includes install-indep
+
--- mclibs-2005.dfsg.orig/debian/add-ons/bin/gmake
+++ mclibs-2005.dfsg/debian/add-ons/bin/gmake
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+# gmake wrapper script
+
+# This is needed because the name of the make command in the cernlib source
+# is assumed to be "gmake", but GNU Make is simply called "make" in most
+# Linux distributions.
+
+# Do not install this script; it should be used only for the cernlib build
+# process.
+
+if [ "x$ADDONDIR" = x ] ; then
+	echo "gmake: this script is not intended to be used outside the"
+	echo "       cernlib build process!"
+	exit 1
+fi
+
+MAKE=""
+
+# see if there is a "gmake" other than this script
+OLDPATH="$PATH"
+export PATH="`echo "$OLDPATH" | sed \
+	-e 's,:'"${ADDONDIR}"'/bin:,:,g' \
+	-e 's,^'"${ADDONDIR}"'/bin:,,g' \
+	-e 's,:'"${ADDONDIR}"'/bin$,,g'`"
+which gmake > /dev/null 2>&1 && MAKE="`which gmake`"
+export PATH="$OLDPATH"
+
+# if not, try to use "make"
+[ "x$MAKE" = x ] && which make > /dev/null 2>&1 && MAKE=make
+
+if [ "x$MAKE" = x ] ; then
+	echo "gmake: wrapper script can find neither gmake nor make in \$PATH!"
+	exit 1
+fi
+
+exec "$MAKE" "$@"
+
--- mclibs-2005.dfsg.orig/debian/add-ons/bin/remove-deadpool
+++ mclibs-2005.dfsg/debian/add-ons/bin/remove-deadpool
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+set -e
+cd upstream
+
+for dir in `tr '/' ' ' < ../debian/deadpool.txt | awk '{print $1}' \
+	| sed -e 's/#.*//g' -e '/$^/d' | sort | uniq` ; do
+	file=src_${dir}.tar.gz
+	echo Unpacking compressed source from $file...
+	tar xzf $file
+	version=`ls -1 | head -n 1`
+	echo Removing files with bad copyright...
+	for badfile in `grep '^'$dir ../debian/deadpool.txt \
+			| sed 's/\#.*$//g'` ; do
+		path=$version/src/$badfile
+		[ -e "$path" ] || echo "Skipping non-existent $path ..."
+		rm -rf $version/src/$badfile
+	done
+	echo Repacking $file.
+	tar czf $file $version
+	rm -rf $version
+done
+echo Done.
+
+exit 0
+
--- mclibs-2005.dfsg.orig/debian/add-ons/README
+++ mclibs-2005.dfsg/debian/add-ons/README
@@ -0,0 +1,40 @@
+Contents of this directory are copyright (C) Kevin B. McCarty, 2001-2006,
+except where noted otherwise.  They are licensed under the GNU General
+Public License, version 2 or later, at your choice.
+
+A copy of the GNU GPL may be found on Debian systems at:
+/usr/share/common-licenses/GPL
+or on the Web at: http://www.gnu.org/copyleft/gpl.html
+
+This directory contains numerous patches and additions to the canonical version
+of the Cernlib Monte Carlo libraries supplied by CERN.  To compile them
+accordingly, copy the Makefile in this directory to the top-level mclibs source
+directory and run make with whatever variables you like.  (You will first
+need to have installed the main Cernlib libraries from my packaging of those.)
+
+This packaging of the Cernlib Monte Carlo libs adds support for:
+
+- shared libraries (Linux only)
+- Mac OS X compilation
+- Filesystem Hierarchy Standard: run make with these variables set:
+	"make prefix=/usr sysconfdir=/etc mandir=/usr/share/man"
+- recursive dependency checking with a rewritten "cernlib" script
+- common GNU Makefile directories, e.g. $prefix, $datadir
+- automatic generation of Cernlib documents included with the source
+- various other bug fixes
+
+Note that unlike the upstream version of Cernlib, which installs to
+$CERN/$CERN_LEVEL (e.g. /opt/cern/2003), this packaging of Cernlib Monte Carlo
+libraries will install them to /usr/local/lib.  Or change this by specifying
+$prefix with the "make" command.
+
+Things NOT included in this packaging of Cernlib Monte Carlo libs:
+
+- Pythia/Jetset/Ariadne/Lepto; see the respective web sites
+
+These are omitted for licensing reasons (i.e. I am not convinced that it
+is permissible for me to distribute them under the terms of the GPL).
+See http://people.debian.org/~kmccarty/cernlib/ for more information.
+
+--Kevin McCarty, 29 June 2006
+
--- mclibs-2005.dfsg.orig/debian/add-ons/INSTALL
+++ mclibs-2005.dfsg/debian/add-ons/INSTALL
@@ -0,0 +1,35 @@
+CERNLIB MCLIBS INSTALLATION
+
+To install:
+
+1) Install the main Cern libraries (packlib, mathlib, etc.)
+
+2) from the top-level Cernlib source directory:
+   cp debian/add-ons/Makefile .
+
+3) Then:
+
+Debian GNU/Linux
+----------------
+To produce Debian packages:
+
+$ fakeroot debian/rules binary
+[wait a couple hours]
+$ sudo dpkg -i ../*.deb
+
+Other Linux, Unix or Mac OS X
+-----------------------------
+
+$ make prefix=/usr/local sysconfdir=/etc
+[wait a couple hours]
+sudo make prefix=/usr/local sysconfdir=/etc install
+
+PREREQUISITES
+
+- On Debian GNU/Linux, have the following packages and their dependencies
+  installed:
+
+  dpatch, patch, mawk (or gawk), xutils (for imake), debhelper, g77, cfortran,
+  cernlib-base, libmathlib2-dev, tetex-bin, fakeroot, build-essential
+
+- On other distributions, translate package names to suit.
--- mclibs-2005.dfsg.orig/debian/add-ons/includelist.txt
+++ mclibs-2005.dfsg/debian/add-ons/includelist.txt
@@ -0,0 +1,5 @@
+mclibs/cojets/cojets
+mclibs/eurodec/eurodec
+mclibs/herwig/herwig59
+mclibs/isajet/isajet
+mclibs/pdf/pdf
--- mclibs-2005.dfsg.orig/debian/changelog
+++ mclibs-2005.dfsg/debian/changelog
@@ -0,0 +1,11 @@
+mclibs (2005.dfsg-1) unstable; urgency=low
+
+  * Split off CERN Monte Carlo libraries into a separate source package.
+    They tend to require bugfixes and packaging work much less often than
+    the remainder of Cernlib, and since they are painful to compile it
+    will be preferable to upload and rebuild them less often.
+
+  * For previous changelog entries, please see the changelog.Debian in the
+    cernlib-base binary package or the cernlib source package.
+
+ -- Kevin B. McCarty <kmccarty@debian.org>  Thu, 29 Jun 2006 12:26:10 -0400
--- mclibs-2005.dfsg.orig/debian/compat
+++ mclibs-2005.dfsg/debian/compat
@@ -0,0 +1 @@
+5
--- mclibs-2005.dfsg.orig/debian/deadpool.txt
+++ mclibs-2005.dfsg/debian/deadpool.txt
@@ -0,0 +1,17 @@
+# This file lists all the files that were removed from the Cernlib mclibs
+# source for copyright reasons.  Given is the file or directory to delete
+# relative to $CERN_ROOT/src/.
+
+# --Kevin McCarty, 29 June 2006
+
+# Authors of Pythia/Jetset did NOT give permission to release
+# their code under GPL.  CERN should have checked this more carefully!!!
+mclibs/jetset/
+mclibs/pythia/
+
+# Removal of Pythia/Jetset also necessitates removal of Fritiof, Lepto, Ariadne
+mclibs/fritiof/
+mclibs/ariadne/
+mclibs/ariadne_407/
+mclibs/lepto63/
+
--- mclibs-2005.dfsg.orig/debian/control.d/cernlib-montecarlo.control
+++ mclibs-2005.dfsg/debian/control.d/cernlib-montecarlo.control
@@ -0,0 +1,22 @@
+Package: cernlib-montecarlo
+Architecture: all
+Section: science
+Depends: cernlib-base, montecarlo-base (= ${Source-Version}), libcojets2-dev, libeurodec1-dev, libherwig59-2-dev, libpdflib804-2-dev, libphotos202-dev, libphtools2-dev
+Recommends: libisajet758-2-dev
+Description: Cernlib Monte Carlo libraries
+ Cernlib is a suite of data analysis tools and libraries created for
+ use in physics experiments, but also with applications to other
+ fields such as the biological sciences.
+ .
+ This metapackage provides various Monte Carlo libraries included in Cernlib
+ (both shared and static).  Likely only physicists will be interested in
+ these packages.  Note that the Geant 3.21 program is not included, but it may
+ be obtained by also installing the geant321 Debian package.
+ .
+ Be aware that the libraries of Ariadne, Fritiof, Jetset, Lepto, and Pythia are
+ not available within Debian due to licensing issues; see the README.Debian
+ file in the montecarlo-base package for information on obtaining them.
+ .
+ Additionally, the Isajet library is not available on the m68k architecture
+ due to a compiler flaw.
+
--- mclibs-2005.dfsg.orig/debian/control.d/0base.control
+++ mclibs-2005.dfsg/debian/control.d/0base.control
@@ -0,0 +1,7 @@
+Source: mclibs
+Maintainer: Kevin B. McCarty <kmccarty@debian.org>
+Standards-Version: 3.7.2
+Priority: optional
+Section: science
+Build-Depends: dpatch (>= 2.0.9), patch, mawk | gawk, xutils-dev, debhelper (>= 5.0.0), g77, cernlib-base (>= 2005.05.09.dfsg-9), libmathlib2-dev, tetex-bin
+
--- mclibs-2005.dfsg.orig/debian/control.d/libcojets2-dev.control
+++ mclibs-2005.dfsg/debian/control.d/libcojets2-dev.control
@@ -0,0 +1,18 @@
+Package: libcojets2-dev
+Architecture: any
+Section: libdevel
+Depends: libcojets2 (= ${Source-Version}), libmathlib2-dev
+Replaces: libcojets1-dev
+Conflicts: libcojets1-dev
+Description: [Physics] COJETS p-p and pbar-p interaction Monte Carlo
+ COJETS is a Monte Carlo library which simulates pbar-p and p-p interactions at
+ high energy.  The interaction process is first calculated at the parton level
+ by means of perturbative QCD and the Weinberg-Salam model for electroweak
+ interactions.  Partons are then independently fragmented into jets of hadrons,
+ according to the Field-Feynman model, and the beam jets contribution is
+ added, according to a longitudinal phase-space model.  Multiple QCD radiation
+ of initial and final partons is included.
+ .
+ This is the static version of the library.  The package also includes
+ FORTRAN header files and documentation for COJETS.
+
--- mclibs-2005.dfsg.orig/debian/control.d/libphtools2-dev.control
+++ mclibs-2005.dfsg/debian/control.d/libphtools2-dev.control
@@ -0,0 +1,15 @@
+Package: libphtools2-dev
+Architecture: any
+Section: libdevel
+Depends: libphtools2 (= ${Source-Version}), libmathlib2-dev
+Replaces: libphtools1-dev
+Conflicts: libphtools1-dev
+Description: [Physics] General purpose Monte Carlo routines (development files)
+ This library contains three main routines.  FOWL allows calculation of phase
+ space distributions arising from particle interactions, generated in a
+ Lorentz-invariant way.  GENBOD is an N-body event generator, taking as
+ input the center-of-mass energy, number and masses of outgoing particles.
+ WICO traces a ray geometrically in a "Winston Cone" light concentrator.
+ .  
+ This is the static version of the library.
+
--- mclibs-2005.dfsg.orig/debian/control.d/libpdflib804-2-dev.control
+++ mclibs-2005.dfsg/debian/control.d/libpdflib804-2-dev.control
@@ -0,0 +1,16 @@
+Package: libpdflib804-2-dev
+Architecture: any
+Section: libdevel
+Depends: libpdflib804-2 (= ${Source-Version}), libmathlib2-dev
+Replaces: libpdflib804-dev
+Conflicts: libpdflib804-dev
+Description: [Physics] Comprehensive library of parton density functions
+ The PDFLIB package gathers about 100 different sets of Parton Density
+ Functions into a comprehensive library in a consistent way.  Density functions
+ are available for the nucleon, pion and photon.  The library also allows the
+ calculation of the strong force coupling constant to first or second order
+ at a given value of Q-squared.
+ .
+ This is the static version of the library.  Also included are FORTRAN
+ header files and some documentation.
+
--- mclibs-2005.dfsg.orig/debian/control.d/libphtools2.control
+++ mclibs-2005.dfsg/debian/control.d/libphtools2.control
@@ -0,0 +1,14 @@
+Package: libphtools2
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, montecarlo-base
+Description: [Physics] General purpose Monte Carlo routines
+ This library contains three main routines.  FOWL allows calculation of phase
+ space distributions arising from particle interactions, generated in a
+ Lorentz-invariant way.  GENBOD is an N-body event generator, taking as
+ input the center-of-mass energy, number and masses of outgoing particles.
+ WICO traces a ray geometrically in a "Winston Cone" light concentrator.
+ .
+ Note that in order to compile and link programs against this library, you
+ must also install the libphtools2-dev package.
+
--- mclibs-2005.dfsg.orig/debian/control.d/libphotos202.control
+++ mclibs-2005.dfsg/debian/control.d/libphotos202.control
@@ -0,0 +1,14 @@
+Package: libphotos202
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, cernlib-base, montecarlo-base
+Description: [Physics] Monte Carlo simulation of photon radiation in decays
+ The PHOTOS library simulates QED photon radiative corrections in
+ electromagnetic decays.  The library is universal; it allows for easy
+ interface with any program generating decays of any particle.  It can be
+ used to estimate the size of the QED bremsstrahlung in leading-logarithmic
+ approximation.  The proper soft photon behavior is also reproduced.
+ .
+ Note that in order to compile and link programs against this library, you
+ must also install the libphotos202-dev package.
+
--- mclibs-2005.dfsg.orig/debian/control.d/libherwig59-2.control
+++ mclibs-2005.dfsg/debian/control.d/libherwig59-2.control
@@ -0,0 +1,12 @@
+Package: libherwig59-2
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, montecarlo-base
+Description: [Physics] Monte Carlo event generator simulating hadronic events
+ HERWIG is a general-purpose event generator for high energy hadronic
+ processes, with particular emphasis on the detailed simulation of
+ QCD parton showers. 
+ .
+ Note that in order to compile and link programs against this library, you
+ must also install the libherwig59-2-dev package.
+
--- mclibs-2005.dfsg.orig/debian/control.d/no-m68k/libisajet758-2.arch.control
+++ mclibs-2005.dfsg/debian/control.d/no-m68k/libisajet758-2.arch.control
@@ -0,0 +1,14 @@
+Package: libisajet758-2
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, montecarlo-base
+Description: [Physics] Monte Carlo generator for proton / electron reactions
+ ISAJET is a Monte Carlo library which simulates p-p, pbar-p, and e+ e-
+ interactions at high energies.  The library is based on perturbative QCD
+ combined with phenomenological models for parton and beam jet fragmentation.
+ ISAJET incorporates ISASUSY, which evaluates branching ratios for the minimal
+ supersymmetric extension of the Standard Model.
+ .
+ Note that in order to compile and link programs against this library, you
+ must also install the libisajet758-2-dev package.
+
--- mclibs-2005.dfsg.orig/debian/control.d/no-m68k/libisajet758-2-dev.arch.control
+++ mclibs-2005.dfsg/debian/control.d/no-m68k/libisajet758-2-dev.arch.control
@@ -0,0 +1,16 @@
+Package: libisajet758-2-dev
+Architecture: any
+Section: libdevel
+Depends: libisajet758-2 (= ${Source-Version}), libpdflib804-2-dev (= ${Source-Version})
+Replaces: libisajet758-dev
+Conflicts: libisajet758-dev
+Description: [Physics] Monte Carlo generator for proton/electron reactions
+ ISAJET is a Monte Carlo library which simulates p-p, pbar-p, and e+ e-
+ interactions at high energies.  The library is based on perturbative QCD
+ combined with phenomenological models for parton and beam jet fragmentation.
+ ISAJET incorporates ISASUSY, which evaluates branching ratios for the minimal
+ supersymmetric extension of the Standard Model.
+ .  
+ This is the static version of the library.  Also included are FORTRAN header
+ files and some documentation.
+
--- mclibs-2005.dfsg.orig/debian/control.d/libphotos202-dev.control
+++ mclibs-2005.dfsg/debian/control.d/libphotos202-dev.control
@@ -0,0 +1,13 @@
+Package: libphotos202-dev
+Architecture: any
+Section: libdevel
+Depends: libphotos202 (= ${Source-Version}), cfortran, libc6-dev | libc-dev
+Description: [Physics] Monte Carlo simulation of photon radiation in decays
+ The PHOTOS library simulates QED photon radiative corrections in
+ electromagnetic decays.  The library is universal; it allows for easy
+ interface with any program generating decays of any particle.  It can be
+ used to estimate the size of the QED bremsstrahlung in leading-logarithmic
+ approximation.  The proper soft photon behavior is also reproduced.
+ .  
+ This is the static version of the library.
+
--- mclibs-2005.dfsg.orig/debian/control.d/libeurodec1-dev.control
+++ mclibs-2005.dfsg/debian/control.d/libeurodec1-dev.control
@@ -0,0 +1,12 @@
+Package: libeurodec1-dev
+Architecture: any
+Section: libdevel
+Depends: libeurodec1 (= ${Source-Version}), cfortran, libc6-dev | libc-dev
+Description: [Physics] Monte Carlo library for quark / heavy lepton decays
+ Eurodec is a general purpose Monte Carlo library for the fragmentation and
+ decay of quarks, di-quarks, heavy leptons, etc.  It can be used with the
+ included event generator EUROJET, or with your own event generator.
+ .
+ This is the static version of the library.  FORTRAN header files are also
+ included.
+
--- mclibs-2005.dfsg.orig/debian/control.d/libeurodec1.control
+++ mclibs-2005.dfsg/debian/control.d/libeurodec1.control
@@ -0,0 +1,12 @@
+Package: libeurodec1
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, cernlib-base, montecarlo-base
+Description: [Physics] Monte Carlo library for quark and heavy lepton decays
+ Eurodec is a general purpose Monte Carlo library for the fragmentation and
+ decay of quarks, di-quarks, heavy leptons, etc.  It can be used with the
+ included event generator EUROJET, or with your own event generator.
+ .
+ Note that in order to compile and link programs against this library, you
+ must also install the libeurodec1-dev package.
+
--- mclibs-2005.dfsg.orig/debian/control.d/libherwig59-2-dev.control
+++ mclibs-2005.dfsg/debian/control.d/libherwig59-2-dev.control
@@ -0,0 +1,14 @@
+Package: libherwig59-2-dev
+Architecture: any
+Section: libdevel
+Depends: libherwig59-2 (= ${Source-Version}), libpdflib804-2-dev (= ${Source-Version})
+Replaces: libherwig59-dev
+Conflicts: libherwig59-dev
+Description: [Physics] Monte Carlo event generator for hadrons (development)
+ HERWIG is a general-purpose event generator for high energy hadronic
+ processes, with particular emphasis on the detailed simulation of
+ QCD parton showers.
+ .  
+ This is the static version of the library.  Also included are a FORTRAN
+ header file and some documentation.
+
--- mclibs-2005.dfsg.orig/debian/control.d/libcojets2.control
+++ mclibs-2005.dfsg/debian/control.d/libcojets2.control
@@ -0,0 +1,16 @@
+Package: libcojets2
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, montecarlo-base
+Description: [Physics] COJETS p-p and pbar-p interaction Monte Carlo library
+ COJETS is a Monte Carlo library which simulates pbar-p and p-p interactions at
+ high energy.  The interaction process is first calculated at the parton level
+ by means of perturbative QCD and the Weinberg-Salam model for electroweak
+ interactions.  Partons are then independently fragmented into jets of hadrons,
+ according to the Field-Feynman model, and the beam jets contribution is
+ added, according to a longitudinal phase-space model.  Multiple QCD radiation
+ of initial and final partons is included.
+ .
+ Note that in order to compile and link programs against this library, you
+ must also install the libcojets2-dev package.
+
--- mclibs-2005.dfsg.orig/debian/control.d/montecarlo-base.control
+++ mclibs-2005.dfsg/debian/control.d/montecarlo-base.control
@@ -0,0 +1,13 @@
+Package: montecarlo-base
+Architecture: all
+Section: science
+Depends: cernlib-base
+Description: [Physics] Common files for Cernlib Monte Carlo libraries
+ Cernlib is a suite of data analysis tools and libraries created for
+ use in physics experiments, but also with applications to other
+ fields such as the biological sciences.
+ .
+ This package contains common files for Cernlib Monte Carlo libraries,
+ including a README.Debian file that explains how to obtain the libraries
+ of Ariadne, Fritiof, Jetset, Lepto, and Pythia.
+
--- mclibs-2005.dfsg.orig/debian/control.d/libpdflib804-2.control
+++ mclibs-2005.dfsg/debian/control.d/libpdflib804-2.control
@@ -0,0 +1,14 @@
+Package: libpdflib804-2
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, montecarlo-base
+Description: [Physics] Comprehensive library of parton density functions
+ The PDFLIB package gathers about 100 different sets of Parton Density
+ Functions into a comprehensive library in a consistent way.  Density functions
+ are available for the nucleon, pion and photon.  The library also allows the
+ calculation of the strong force coupling constant to first or second order
+ at a given value of Q-squared.
+ .
+ Note that in order to compile and link programs against this library, you
+ must also install the libpdflib804-2-dev package.
+
--- mclibs-2005.dfsg.orig/debian/README.source
+++ mclibs-2005.dfsg/debian/README.source
@@ -0,0 +1,52 @@
+Options supported by Cernlib mclibs debian/rules in $DEB_BUILD_OPTIONS:
+
+ noopt:     Compile everything with no optimization, i.e. -O0.  The default
+            is to compile at -O2 or -O3 for almost all files.
+ nostrip:   Do not strip debugging information from the binaries and libraries.
+ nospdf:    Do not build the large, time-consuming spdf portion of the
+            libpdf804 library.  Use this if you don't need pdflib.
+ keepbuild: Save the build tree after it's no longer useful, e.g. for debugging
+            reasons.  By default it is deleted in order to save disk space.
+ ifort:     Compile with Intel's icc and ifort (formerly ifc) compilers, not
+            gcc and g77.  You must first set and export $LD_LIBRARY_PATH, or
+	    edit /etc/ld.so.conf and run ldconfig, such that the Intel library
+	    libimf.so is in the library runtime search path.  This option has
+	    not been fully tested.
+
+Targets supported by Cernlib's debian/rules:
+
+ help:              Output this text (found in debian/README.source).
+ get-orig-source:   Download upstream sourcecode in tar.gz form to a subdir
+                    "upstream" of the current dir.  Requires wget.
+ remove-deadpool:   Delete files with licensing issues from upstream tarballs.
+ orig.tar.gz:       Build a new orig.tar.gz file in the dir ".."  Don't do this
+                    if you already have one; the tarball md5sum will change!
+		    This target automatically executes the previous one first.
+ unpack:            Expand the upstream tarballs into a subdir "src" of the
+                    current dir.
+ patched, patch:    (These are synonyms.) Apply Debian patches to the unpacked
+                    source code.  After this target has been called, any
+		    additional edits to the source code will be preserved when
+		    running "fakeroot debian/rules binary".
+ unpatch:           De-apply Debian patches without deleting unpacked source.
+ build, clean, etc: Standard Policy-required targets.
+
+It may be of interest to describe some of the contents of the debian directory:
+
+ add-ons:	Non Debian-specific additions to Cernlib, including such
+		things as man pages, Autoconf macros, X11 application defaults,
+		a master Makefile, and a rewritten "cernlib" dependency script.
+
+ control.d:	Fragments of the debian/control file.  It is regenerated from
+ 		these snippets by "debian/rules clean".
+
+ debhelper:	Files for debhelper tools, kept here so things are tidier.
+ 		These are symlinked from the main debian directory at build
+		time by "debian/rules install-common", and the symlinks are
+		removed by "debian/rules clean".
+
+ lintian:	Lintian overrides.
+
+ patches:	Debian patches to Cernlib source in dpatch format.  (See
+ 		debian/patches/README as there are some weird things here.)
+
--- mclibs-2005.dfsg.orig/debian/debhelper/libcojets2.dirs
+++ mclibs-2005.dfsg/debian/debhelper/libcojets2.dirs
@@ -0,0 +1 @@
+usr/lib
--- mclibs-2005.dfsg.orig/debian/debhelper/libeurodec1.dirs
+++ mclibs-2005.dfsg/debian/debhelper/libeurodec1.dirs
@@ -0,0 +1 @@
+usr/lib
--- mclibs-2005.dfsg.orig/debian/debhelper/libisajet758-2.dirs
+++ mclibs-2005.dfsg/debian/debhelper/libisajet758-2.dirs
@@ -0,0 +1 @@
+usr/lib
--- mclibs-2005.dfsg.orig/debian/debhelper/libcojets2-dev.docs
+++ mclibs-2005.dfsg/debian/debhelper/libcojets2-dev.docs
@@ -0,0 +1 @@
+debian/tmp/usr/share/doc/montecarlo-doc/cojets/cojets.txt
--- mclibs-2005.dfsg.orig/debian/debhelper/montecarlo-base.README.debian
+++ mclibs-2005.dfsg/debian/debhelper/montecarlo-base.README.debian
@@ -0,0 +1,36 @@
+Notes on Cernlib Monte Carlo libraries:
+
+1) Because the upstream authors of Pythia/Jetset never gave permission for CERN
+to release them under the GPL, the following Monte Carlo libraries have been
+removed from the set packaged by Debian.  They may be obtained either by
+installing the ancis and montecarlo-installer-data packages, then
+running the commands given in /usr/share/doc/montecarlo-installer-data/README ;
+or by downloading and compiling source code from the web sites listed below.
+Please be aware that not all of these libraries have licenses that are clearly
+defined or DFSG-compatible.
+
+Ariadne:		http://www.thep.lu.se/~leif/ariadne/index.html
+Pythia/Jetset:		http://www.thep.lu.se/~torbjorn/Pythia.html
+Lepto:			http://www3.tsl.uu.se/thep/lepto/index.html
+Fritiof:		http://www.thep.lu.se/ftp/pub/LundPrograms/Fritiof/
+
+The montecarlo-installer-data and ancis packages are not official
+parts of Debian; they may be obtained by adding the following to your
+/etc/apt/sources.list : 
+
+deb http://people.debian.org/~kmccarty/ancis/ unstable main contrib
+deb-src http://people.debian.org/~kmccarty/ancis/ unstable main contrib
+
+(Substitute "unstable" with "stable" or "testing" if appropriate.)
+Please note that I cannot guarantee the above URLs will continue to be valid
+forever.
+
+
+2) The documentation available for Monte Carlo libraries comes from the CERNLIB
+source code.  Much of it has not been updated for years (the COJETS manual,
+e.g., still describes the use of punch cards), and much of it is incomplete or
+missing.  For more information about a particular library, I suggest you
+try the online documents at http://wwwinfo.cern.ch/asd/cernlib/ .
+
+--Kevin McCarty <kmccarty@debian.org>, 30 Dec 2003
+
--- mclibs-2005.dfsg.orig/debian/debhelper/libcojets2-dev.dirs
+++ mclibs-2005.dfsg/debian/debhelper/libcojets2-dev.dirs
@@ -0,0 +1 @@
+usr/lib
--- mclibs-2005.dfsg.orig/debian/debhelper/libeurodec1-dev.dirs
+++ mclibs-2005.dfsg/debian/debhelper/libeurodec1-dev.dirs
@@ -0,0 +1 @@
+usr/lib
--- mclibs-2005.dfsg.orig/debian/debhelper/libisajet758-2-dev.doc-base
+++ mclibs-2005.dfsg/debian/debhelper/libisajet758-2-dev.doc-base
@@ -0,0 +1,10 @@
+Document: isajet-manual
+Title: ISAJET 7.58
+Author: Frank E. Paige, Serban D. Protopopescu, Howard Baer, Xerxes Tata
+Abstract: Summary of the ISAJET Monte Carlo simulation library, which
+  simulates proton-proton, proton-antiproton, and electron-positron
+  interactions at high energies.
+Section: Apps/Science
+
+Format: postscript
+Files: /usr/share/doc/libisajet758-2-dev/isajet.ps.gz
--- mclibs-2005.dfsg.orig/debian/debhelper/libisajet758-2.install
+++ mclibs-2005.dfsg/debian/debhelper/libisajet758-2.install
@@ -0,0 +1,3 @@
+debian/tmp/usr/lib/libisajet758.so.2.2005
+debian/tmp/usr/lib/libisajet758.so.2
+debian/tmp/usr/share/isajet/isajet.dat
--- mclibs-2005.dfsg.orig/debian/debhelper/libherwig59-2-dev.dirs
+++ mclibs-2005.dfsg/debian/debhelper/libherwig59-2-dev.dirs
@@ -0,0 +1 @@
+usr/lib
--- mclibs-2005.dfsg.orig/debian/debhelper/libherwig59-2.dirs
+++ mclibs-2005.dfsg/debian/debhelper/libherwig59-2.dirs
@@ -0,0 +1 @@
+usr/lib
--- mclibs-2005.dfsg.orig/debian/debhelper/libisajet758-2-dev.dirs
+++ mclibs-2005.dfsg/debian/debhelper/libisajet758-2-dev.dirs
@@ -0,0 +1,2 @@
+usr/lib
+usr/include
--- mclibs-2005.dfsg.orig/debian/debhelper/libpdflib804-2-dev.doc-base
+++ mclibs-2005.dfsg/debian/debhelper/libpdflib804-2-dev.doc-base
@@ -0,0 +1,10 @@
+Document: pdflib-manual
+Title: PDFLIB User's Manual
+Author: H. Plothow-Besch
+Abstract: PDFLIB is an integrated package of parton density functions that
+  brings together about 100 different sets of PDFs of the nucleon, pion and
+  photon.
+Section: Apps/Science
+
+Format: text
+Files: /usr/share/doc/libpdflib804-2-dev/pdfdoc.txt.gz
--- mclibs-2005.dfsg.orig/debian/debhelper/libpdflib804-2.install
+++ mclibs-2005.dfsg/debian/debhelper/libpdflib804-2.install
@@ -0,0 +1,2 @@
+debian/tmp/usr/lib/libpdflib804.so.2.2005
+debian/tmp/usr/lib/libpdflib804.so.2
--- mclibs-2005.dfsg.orig/debian/debhelper/libphtools2.install
+++ mclibs-2005.dfsg/debian/debhelper/libphtools2.install
@@ -0,0 +1,2 @@
+debian/tmp/usr/lib/libphtools.so.2.2005
+debian/tmp/usr/lib/libphtools.so.2
--- mclibs-2005.dfsg.orig/debian/debhelper/libeurodec1-dev.install
+++ mclibs-2005.dfsg/debian/debhelper/libeurodec1-dev.install
@@ -0,0 +1,3 @@
+debian/tmp/usr/lib/libeurodec.a
+debian/tmp/usr/lib/libeurodec.so
+debian/tmp/usr/include/eurodec/
--- mclibs-2005.dfsg.orig/debian/debhelper/libeurodec1.install
+++ mclibs-2005.dfsg/debian/debhelper/libeurodec1.install
@@ -0,0 +1,3 @@
+debian/tmp/usr/lib/libeurodec.so.1.2005
+debian/tmp/usr/lib/libeurodec.so.1
+debian/tmp/usr/share/eurodec/eurodec.dat
--- mclibs-2005.dfsg.orig/debian/debhelper/libpdflib804-2.dirs
+++ mclibs-2005.dfsg/debian/debhelper/libpdflib804-2.dirs
@@ -0,0 +1 @@
+usr/lib
--- mclibs-2005.dfsg.orig/debian/debhelper/libherwig59-2.install
+++ mclibs-2005.dfsg/debian/debhelper/libherwig59-2.install
@@ -0,0 +1,2 @@
+debian/tmp/usr/lib/libherwig59.so.2.2005
+debian/tmp/usr/lib/libherwig59.so.2
--- mclibs-2005.dfsg.orig/debian/debhelper/libisajet758-2-dev.links
+++ mclibs-2005.dfsg/debian/debhelper/libisajet758-2-dev.links
@@ -0,0 +1 @@
+usr/include/isajet usr/include/jetset74
--- mclibs-2005.dfsg.orig/debian/debhelper/libpdflib804-2-dev.dirs
+++ mclibs-2005.dfsg/debian/debhelper/libpdflib804-2-dev.dirs
@@ -0,0 +1 @@
+usr/lib
--- mclibs-2005.dfsg.orig/debian/debhelper/libphtools2.dirs
+++ mclibs-2005.dfsg/debian/debhelper/libphtools2.dirs
@@ -0,0 +1 @@
+usr/lib
--- mclibs-2005.dfsg.orig/debian/debhelper/libphotos202-dev.dirs
+++ mclibs-2005.dfsg/debian/debhelper/libphotos202-dev.dirs
@@ -0,0 +1 @@
+usr/lib
--- mclibs-2005.dfsg.orig/debian/debhelper/libpdflib804-2-dev.README.debian
+++ mclibs-2005.dfsg/debian/debhelper/libpdflib804-2-dev.README.debian
@@ -0,0 +1,8 @@
+Note on libpdflib804-2-dev:
+---------------------------
+
+The apparently non-free license stated in the file pdfdoc.txt.gz in this
+directory is superseded by CERN's placement of Cernlib under the GNU
+General Public License.  See the copyright file in this directory for details.
+
+--Kevin B. McCarty <kmccarty@debian.org>
--- mclibs-2005.dfsg.orig/debian/debhelper/libphotos202.dirs
+++ mclibs-2005.dfsg/debian/debhelper/libphotos202.dirs
@@ -0,0 +1 @@
+usr/lib
--- mclibs-2005.dfsg.orig/debian/debhelper/libphotos202-dev.install
+++ mclibs-2005.dfsg/debian/debhelper/libphotos202-dev.install
@@ -0,0 +1,2 @@
+debian/tmp/usr/lib/libphotos202.a
+debian/tmp/usr/lib/libphotos202.so
--- mclibs-2005.dfsg.orig/debian/debhelper/libphotos202.install
+++ mclibs-2005.dfsg/debian/debhelper/libphotos202.install
@@ -0,0 +1,2 @@
+debian/tmp/usr/lib/libphotos202.so.1.2005
+debian/tmp/usr/lib/libphotos202.so.1
--- mclibs-2005.dfsg.orig/debian/debhelper/montecarlo-base.install
+++ mclibs-2005.dfsg/debian/debhelper/montecarlo-base.install
@@ -0,0 +1,2 @@
+debian/tmp/usr/include/jetset74.h
+debian/tmp/usr/include/lepto62.h
--- mclibs-2005.dfsg.orig/debian/debhelper/libphtools2-dev.dirs
+++ mclibs-2005.dfsg/debian/debhelper/libphtools2-dev.dirs
@@ -0,0 +1 @@
+usr/lib
--- mclibs-2005.dfsg.orig/debian/debhelper/montecarlo-base.dirs
+++ mclibs-2005.dfsg/debian/debhelper/montecarlo-base.dirs
@@ -0,0 +1,2 @@
+usr/include
+usr/include/cfortran
--- mclibs-2005.dfsg.orig/debian/debhelper/libcojets2.install
+++ mclibs-2005.dfsg/debian/debhelper/libcojets2.install
@@ -0,0 +1,3 @@
+debian/tmp/usr/lib/libcojets.so.2.2005
+debian/tmp/usr/lib/libcojets.so.2
+debian/tmp/usr/share/cojets/cojets.dat
--- mclibs-2005.dfsg.orig/debian/debhelper/libeurodec1-dev.docs
+++ mclibs-2005.dfsg/debian/debhelper/libeurodec1-dev.docs
@@ -0,0 +1 @@
+debian/tmp/usr/share/doc/montecarlo-doc/eurodec/eurodec.txt
--- mclibs-2005.dfsg.orig/debian/debhelper/libisajet758-2-dev.install
+++ mclibs-2005.dfsg/debian/debhelper/libisajet758-2-dev.install
@@ -0,0 +1,4 @@
+debian/tmp/usr/lib/libisajet758.a
+debian/tmp/usr/lib/libisajet758.so
+debian/tmp/usr/include/isajet758/
+debian/tmp/usr/include/isajet
--- mclibs-2005.dfsg.orig/debian/debhelper/libpdflib804-2-dev.install
+++ mclibs-2005.dfsg/debian/debhelper/libpdflib804-2-dev.install
@@ -0,0 +1,4 @@
+debian/tmp/usr/lib/libpdflib804.a
+debian/tmp/usr/lib/libpdflib804.so
+debian/tmp/usr/include/pdf804/
+debian/tmp/usr/include/pdf
--- mclibs-2005.dfsg.orig/debian/debhelper/libcojets2-dev.install
+++ mclibs-2005.dfsg/debian/debhelper/libcojets2-dev.install
@@ -0,0 +1,3 @@
+debian/tmp/usr/lib/libcojets.a
+debian/tmp/usr/lib/libcojets.so
+debian/tmp/usr/include/cojets/
--- mclibs-2005.dfsg.orig/debian/debhelper/libeurodec1-dev.doc-base
+++ mclibs-2005.dfsg/debian/debhelper/libeurodec1-dev.doc-base
@@ -0,0 +1,10 @@
+Document: eurodec-manual
+Title: Eurodec
+Author: A. Ali, B. van Eijk
+Abstract: Summary of the Eurodec Monte Carlo simulation library, a general
+  purpose Monte Carlo simulator for the fragmentation and decay of quarks,
+  di-quarks, heavy leptons, etc.
+Section: Apps/Science
+
+Format: text
+Files: /usr/share/doc/libeurodec1-dev/eurodec.txt
--- mclibs-2005.dfsg.orig/debian/debhelper/libherwig59-2-dev.docs
+++ mclibs-2005.dfsg/debian/debhelper/libherwig59-2-dev.docs
@@ -0,0 +1 @@
+debian/tmp/usr/share/doc/montecarlo-doc/herwig/herwig59.txt
--- mclibs-2005.dfsg.orig/debian/debhelper/libisajet758-2-dev.docs
+++ mclibs-2005.dfsg/debian/debhelper/libisajet758-2-dev.docs
@@ -0,0 +1,3 @@
+debian/tmp/usr/share/doc/montecarlo-doc/isajet/isajet.ps
+debian/tmp/usr/share/doc/montecarlo-doc/isajet/isasusy.txt
+debian/tmp/usr/share/doc/montecarlo-doc/isajet/isajet-zebra.txt
--- mclibs-2005.dfsg.orig/debian/debhelper/libpdflib804-2-dev.docs
+++ mclibs-2005.dfsg/debian/debhelper/libpdflib804-2-dev.docs
@@ -0,0 +1 @@
+debian/tmp/usr/share/doc/montecarlo-doc/pdflib/pdfdoc.txt
--- mclibs-2005.dfsg.orig/debian/debhelper/libphtools2-dev.install
+++ mclibs-2005.dfsg/debian/debhelper/libphtools2-dev.install
@@ -0,0 +1,2 @@
+debian/tmp/usr/lib/libphtools.a
+debian/tmp/usr/lib/libphtools.so
--- mclibs-2005.dfsg.orig/debian/debhelper/montecarlo-base.links
+++ mclibs-2005.dfsg/debian/debhelper/montecarlo-base.links
@@ -0,0 +1,2 @@
+usr/include/jetset74.h usr/include/cfortran/jetset74.h
+usr/include/lepto62.h  usr/include/cfortran/lepto62.h
--- mclibs-2005.dfsg.orig/debian/debhelper/libcojets2-dev.doc-base
+++ mclibs-2005.dfsg/debian/debhelper/libcojets2-dev.doc-base
@@ -0,0 +1,9 @@
+Document: cojets-manual
+Title: COJETS 5.15
+Author: Roberto Odorico
+Abstract: Description of the COJETS Monte Carlo simulation program, which
+  simulates collisions of protons and antiprotons at high energy.
+Section: Apps/Science
+
+Format: text
+Files: /usr/share/doc/libcojets2-dev/cojets.txt.gz
--- mclibs-2005.dfsg.orig/debian/debhelper/montecarlo-base.TODO
+++ mclibs-2005.dfsg/debian/debhelper/montecarlo-base.TODO
@@ -0,0 +1,8 @@
+Future goals for Monte Carlo Debian packages:
+
+* Extract numerical data from source code in mclibs/pdf into text data files
+  and put them into a separate package with "Architecture: all"
+* Update numerical cross-sections, branching ratios, etc. where possible
+* Determine licensing status more clearly
+* Include better documentation
+
--- mclibs-2005.dfsg.orig/debian/debhelper/libherwig59-2-dev.doc-base
+++ mclibs-2005.dfsg/debian/debhelper/libherwig59-2-dev.doc-base
@@ -0,0 +1,11 @@
+Document: herwig-manual
+Title: HERWIG
+Author: G. Marchesini, I.G. Knowles, M.H. Seymour, B.R. Webber
+Abstract: Summary of the HERWIG Monte Carlo simulation library, an event
+  generator for simulating Hadron Emission Reactions With Interfering Gluons.
+  It places particular emphasis on the detailed simulation of 
+  quantum chromodynamic (QCD) parton showers.
+Section: Apps/Science
+
+Format: text
+Files: /usr/share/doc/libherwig59-2-dev/herwig59.txt.gz
--- mclibs-2005.dfsg.orig/debian/debhelper/libherwig59-2-dev.install
+++ mclibs-2005.dfsg/debian/debhelper/libherwig59-2-dev.install
@@ -0,0 +1,4 @@
+debian/tmp/usr/lib/libherwig59.a
+debian/tmp/usr/lib/libherwig59.so
+debian/tmp/usr/include/herwig59/
+debian/tmp/usr/include/herwig
--- mclibs-2005.dfsg.orig/debian/debhelper/libphtools2-dev.README.debian
+++ mclibs-2005.dfsg/debian/debhelper/libphtools2-dev.README.debian
@@ -0,0 +1,18 @@
+Notes on libphtools2-dev
+------------------------
+
+If you are using the FOWL component of libphtools (Cernlib routine W505),
+you should be aware that you must create your own routines FSTART, USER,
+and FINISH in code linked against the library in order to use FOWL.
+For more information, please see the Cernlib documentation on FOWL:
+http://preprints.cern.ch/cgi-bin/setlink?base=preprint&categ=cern&id=IT-ASDW505
+
+Please note that I cannot guarantee the above URL will continue to be valid
+forever.
+
+
+Additionally, the documentation describes a user routine START that must
+be created.  In Debian, you must instead name that routine FSTART in order
+to avoid a name clash with the mathlib library.
+
+-- Kevin McCarty <kmccarty@debian.org>, Mon, 26 Apr 2004