NAME

mkpkg-config - generate a configuration file for pkg-config


SYNOPSIS

mkpkg-config options


DESCRIPTION

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:

Name
This is taken from the --name option.

Description
This is taken from the --desc option.

Version
This is taken from the --pversion option.

Requires
This is taken from the --requires option.

Conflicts
This is taken from the --conflicts option.

Libs
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).

Cflags
This is taken from the --cflags options. If --pkg is specified, -I${includedir}/${pkg} is prepended.


OPTIONS

General Options

--output
Where the configuration file is to be written. It defaults to the standard output stream.

--version
Print the version of mkpkg-config and exit.

--help
Print a short help message and exit.

--usage
Print an extended usage message and exit.

Variables

These are described in detail in Description.

--prefix
This parameter is required.

--exec_prefix
--libdir
--includedir
--pkg
--name
This parameter is required.

--desc
This parameter is required.

--pversion
This parameter is required.

--requires
--conflicts
--libs
--cflags

Modifiers

--rpath
This boolean indicates that -R${libdir} should be added to the Libs section.


VERSION

This documents version 1.5.1 of make-world.


COPYRIGHT AND LICENSE

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


AUTHOR

Diab Jerius <djerius@cfa.harvard.edu>