.\" port.1 .\" .\" Copyright (c) 2002 Apple Computer, Inc. .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. Neither the name of Apple Computer, Inc. nor the names of its .\" contributors may be used to endorse or promote products derived from .\" this software without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" .\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE .\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" .Dd August 24, 2002 .Dt PORTBUILD 1 "Apple Computer, Inc." .Os .Sh NAME .Nm port .Nd build darwin ports .Sh SYNOPSIS .Nm .Op Fl vdqfo .Op Ar target .Op Ar portname .Op Fl D Ar portdir .Op Ar options ... .Op Ar variations ... .Sh DESCRIPTION .Nm is designed to read and execute the build instructions of a darwin port. If no .Ar portdir or .Ar portname is specified, the current working directory is assumed. If no .Ar target is specified, "build" is assumed. Port .Ar options are specified as key=value pairs and take precedence over individual port options and system-wide settings. Port .Ar variations are specified as +name, which indicates the variation is desired, and -name, which indicates the variation is not desired .Sh OPTIONS .Bl -tag -width -indent .It Fl v verbose mode (generate verbose messages) .It Fl d debug mode (generate debugging messages) .It Fl q quiet mode (suppress messages) .It Fl D specify .Ar portdir .It Fl f force mode (ignore state file) .It Fl o honor state files older than Portfile .El .Sh TARGETS .Nm knows several targets. The most important is the "install" target, which installs the supplied port. .Pp The other targets are: .Pp .Dl uninstall .Dl clean .Dl search .Dl list .Dl toc .Pp Besides the main targets .Nm takes each single stage of the port building process as a possible target. These stages (besides "install") are: .Pp .Dl fetch .Dl extract .Dl patch .Dl configure .Dl build .Pp .Sh EXAMPLES Invoking .Nm with the "install" target on the "vim" port: .Pp .Dl "port install vim .Pp To uninstall a port, invoke .Nm with the "uninstall" target: .Pp .Dl "port uninstall vim .Pp To clean up after the port was build: .Pp .Dl "port clean vim .Pp Using .Nm to list all available ports: .Pp .Dl "port search .+ .Pp or: .Pp .Dl "port list .Pp To look for a specific port, supply a search string: .Pp .Dl "port search vim .Pp To list the files (table of contents) installed by a given port (in this case apr): .Pp .Dl "port toc apr" .Pp The following demonstrates invoking .Nm with the "extract" target on portdir "textproc/figlet" and extract.sufx set to ".tgz": .Pp .Dl "port extract -d textproc/figlet extract.sufx=.tgz" .Pp .Sh DIAGNOSTICS .Ex -std .Sh AUTHORS .An Landon Fuller Aq landonf@opendarwin.org .An Kevin Van Vechten Aq kevin@opendarwin.org .An Jordan K. Hubbard Aq jkh@opendarwin.org