mkpkg-config - generate a configuration file for pkg-config
mkpkg-config options
mkpkg-config creates a pkg-config metadata (.pc
) file based
upon command line options. It is useful for inclusion in scripts.
It generates the following variables which may be interpolated into the keywords:
pkg
specifed by the --pkg option.
prefix
specified by the --prefix option.
exec_prefix
specified by the --exec_prefix option. It defaults to
exec_prefix=${prefix}
If the --exec_suffix option is specified instead of --exec_prefix, it defaults to
exec_prefix=${prefix}/${exec_suffix}
libdir
specified by the --libdir option. It defaults to
libdir=${exec_prefix}/lib
includedir
specified by the --includedir option. It defaults to
includedir=${prefix}/include
or
includedir=${prefix}/include/${pkg}
if the --pkg option is specified.
The following keywords are also generated:
This is taken from the --name option.
This is taken from the --desc option.
This is taken from the --pversion option.
This is taken from the --requires option.
This is taken from the --conflicts option.
This is generated from the libdir
variable and the --libs
option. If libdir
is not empty, -L${libdir}
is prepended to
Libs. If --libs
is not specified, -l${pkg}
is added (if
--pkg is specified).
This is taken from the --cflags options. If --pkg is specified,
-I${includedir}/${pkg}
is prepended.
Where the configuration file is to be written. It defaults to the standard output stream.
Print the version of mkpkg-config and exit.
Print a short help message and exit.
Print an extended usage message and exit.
These are described in detail in Description.
This parameter is required.
This parameter is required.
This parameter is required.
This parameter is required.
This boolean indicates that -Wl,--rpath=${libdir}
should be added to the
Libs section. Don't use it with --Rpath.
This boolean indicates that -R${libdir}
should be added to the
Libs section. Don't use it with --rpath.
This documents version 1.5.2_01 of make-world.
This software is copyrighted (2006) by the Smithsonian Astrophysical Observatory and is released under the GNU General Public License. You may find a copy at
http://www.fsf.org/copyleft/gpl.html
Diab Jerius <djerius@cfa.harvard.edu>