.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "DH_FORTRAN_MOD 1" .TH DH_FORTRAN_MOD 1 2024-02-05 "dh_fortran_mod v0.39" dh-fortran-mod .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME dh_fortran_mod \- Install Fortran 90 .mod files and add dependency information. .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBdh_fortran_mod\fR [\fB\-\-sourcedir=\fR\fIdir\fR] [$<\fIdebhelper options\fR>] .SH DESCRIPTION .IX Header "DESCRIPTION" \&\fBdh_fortran_mod\fR is a debhelper program that finds Fortran module and submodule files and adds dependencies to \fBgfortran\-$version\fR as required to the package using via the variable \fB${fortran:Depends}\fR. .PP \&\fBdh_fortran_mod\fR is expected to be automatically added using the debhelper "addon" \fBfortran_mod\fR ie. either automatically, by build-depending on 'dh\-sequence\-fortran\-mod', or explicitly: .PP .Vb 1 \& dh $@ \-\-with fortran_mod .Ve .PP \&\fBdh_fortran_mod\fRSearches the debian/ directory for files \fBdebian/pkg.fortran\-mod\fR$ which list module files to include, with the same syntax as debhelper install files. .SH OPTIONS .IX Header "OPTIONS" .IP \fB\-\-sourcedir=\fR\fIdir\fR 4 .IX Item "--sourcedir=dir" Look in the specified directory for files to be installed. .Sp Typically Fortran module files are included in library development packages. .SH TODO .IX Header "TODO" Add dh-fortran-mod support for generic fortran compilers (ifx, etc). .Sp .RS 4 \&\fBdh_fortran_mod\fR will be expanded to find mod files automatically from the \fIdebian/tmp\fR directory. It will enable the installation of mod files in parallel for multiple compilers. It will install .smod files for Fortran 2018. .Sp The fortran-mod file syntax follows dh_install: pairs of sources and optional target directories. The default directory will be \f(CW$fmoddir\fR ( /usr/lib/$multiarch/fortran/$compiler_mod_directory/) If the target directory is absolute (starts with a '/'), this directory is used in the target package. If the target does not absolute, it will be treated as a subdirectory of \f(CW$fmoddir\fR. .Sp Currently four flavours of Fortran compiler are supported: gfortran\-* ('gfortran'), flang\-new\-* ('flang') , flang\-to\-external\-fc\-* ('flangext') and lfortran ('lfortran'). .Sp \&\f(CW$compiler_mod_directory\fR is based on the compiler module version: currently gfortran\-mod\-15 for gfortran\-13 (and older), flang\-mod\-15 for flang\-new\-15+ and lfortran\-mod\-0 for lfortran. .Sp For flang\-to\-external\-fc\-* the version is flangext\-mod\-15 (assuming gfortran\-13 as the external compiler); in principle flang-to-external-fc ('flangext' flavour) and gfortran are intercompatible but intermixing is avoided. .Sp These will be updated for incompatible compiler versions. .Sp Support for Makefiles and debian/rules is given in /usr/share/debhelper/dh\-fortran/fortran\-support.mk .Sp This enables, for example: .Sp .Vb 3 \& /usr/share/debhelper/dh\-fortran/fortran\-support.mk \& FMODDIR:= $(call get_fmoddir, gfortran) \& FC_EXE:= $(call get_fc_exe, $(FC_DEFAULT)) .Ve .RE .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBdebhelper\fR\|(7) .SH AUTHORS .IX Header "AUTHORS" Sébastien Villemot Alastair McKinstry .PP Lots of code stolen shamelessly from dh_install (Joey Hess ).