summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/pkg-config/pkg-config.119
1 files changed, 8 insertions, 11 deletions
diff --git a/usr.bin/pkg-config/pkg-config.1 b/usr.bin/pkg-config/pkg-config.1
index 29998f8716b..5d65a348f15 100644
--- a/usr.bin/pkg-config/pkg-config.1
+++ b/usr.bin/pkg-config/pkg-config.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pkg-config.1,v 1.5 2006/11/28 01:54:14 ckuethe Exp $
+.\" $OpenBSD: pkg-config.1,v 1.6 2006/11/28 08:11:04 jmc Exp $
.\"
.\" Copyright (c) 2006 Chris Kuethe <ckuethe@openbsd.org>
.\"
@@ -15,7 +15,7 @@
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd November 27, 2006
-.Dt pkg-config 1
+.Dt PKG-CONFIG 1
.Os
.Sh NAME
.Nm pkg-config
@@ -30,19 +30,20 @@ The
utility retreives metadata about the installation of software packages.
This metadata includes version, compiler and linker flags, and dependency
information.
-It is inspired by, and intended to operate as a drop-in replacement to the
-program of the same name available from freedesktop.org.
+It is inspired by, and intended to operate as a drop-in replacement to,
+the program of the same name available from freedesktop.org.
.Pp
Metadata is stored in files named after the package they describe; the
Yoyodyne package would likely be described by "yoyodyne.pc".
Not all software packages provide
.Nm
-metadata. Packages controlled by the
+metadata.
+Packages controlled by the
.Xr ports 7
system store their metadata, if provided, in
.Pa ${LOCALBASE}/lib/pkgconfig ;
the X Window System stores its metadata in
-.Pa ${X11BASE}/lib/pkgconfig.
+.Pa ${X11BASE}/lib/pkgconfig .
The
.Nm
utility will search these locations by default.
@@ -52,7 +53,7 @@ Because
attempts to output the full set of compiler or linker flags required to
use a package, it will also output the flags required for any prerequisite
packages.
-If the "foo" package depends on the bar package, "pkg-config --cflags foo"
+If the "foo" package depends on the "bar" package, "pkg-config --cflags foo"
might output something like "-I/usr/local/include/foo
-I/usr/local/include/bar", even though the compiler flags for "bar" were not
explicitly requested.
@@ -82,7 +83,6 @@ Do not print error messages, just exit with an error.
Exit with error if the version of
.Nm
is greater than or equal to the specified version.
-
.It Fl -cflags
Return all compiler flags required to compile against the package.
.It Fl -cflags-only-I
@@ -90,7 +90,6 @@ Return only the include path flags required to compile against the package.
.It Fl -cflags-only-other
Return all compiler flags, other than the include path flags, required to
compile against the package.
-
.It Fl -libs
Return all linker flags required to linker against the package.
.It Fl -libs-only-l
@@ -102,7 +101,6 @@ against the package.
.It Fl -libs-only-other
Return linker flags, other than the library and path flags, required to
compile against the package.
-
.It Fl -exists
Return true if all the specified packages are installed.
This is the default if no other option is given.
@@ -130,7 +128,6 @@ This can be used to specify a colon-separated list of paths to search for
package files.
If given, this list of paths is prepended to the standard search path.
.El
-.Pp
.Sh SEE ALSO
.Xr pkg_info 1 ,
.Xr ports 7