Sortix volatile manual
This manual documents Sortix volatile, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
tix-port — download, patch, build, install, and clean a portSYNOPSIS
tix-port | [--build=triplet] [--cache-package] [--collection=collection] [--destination=directory] [--end=step] [--exec-prefix=prefix] [--generation=level] [--host=triplet] [--make=path] [--makeflags=makeflags] [--prefix=prefix] [--source-port=source-port] [--start=step] [--sysroot=directory] [--tar=path] [--target=triplet] [--tmp=directory] [--mirror=url] [--mirror-directory=directory] port |
DESCRIPTION
tix-port manages the build of a port(5) of software for this operating system by downloading the source code, applying the patches, building the port, and installing the binary package. Many of the options are forwarded to the low-level tix-build(8) which performs the build once the source code has been prepared. tix-port is usually invoked through development(7) for the official ports.- --build=triplet
- The platform triplet for the machine the port is built on. (Default: Automatically detected.)
- --cache-package
- Skip the build if the binary package already exists and is the right version.
- --collection=collection
- Install the binary package into this collection created with tix-collection(8). (Default: --sysroot plus --prefix)
- --destination=directory
- The binary package is placed inside this directory.
- --end=step
-
Stop the build after this step:
- start
- The start step before anything has happened.
- download
- Download the source code.
- extract
- Extract the source code and apply patches.
- tix-build-start
- The start step in tix-build(8).
- clean, pre-clean
- Clean the source directory before the build.
- configure
- Configure the port.
- build
- Build the port.
- install
- Install the port into the DESTDIR.
- post-install
- Run the post-installation script.
- post-clean
- Clean the source code after the port.
- package
- Create the binary package.
- tix-build-end
- The end step in tix-build(8).
- strip
- Strip the executables in the binary package.
- diff
- Regenerate the patches if in development.
- tix-install
- Install the binary package.
- end
- The end step after everything has happened. (Default)
- --exec-prefix=prefix
- The prefix where architecture dependent files are installed. (Default: --prefix)
- --generation=generation
- Create a binary package in the format of this tix generation level. (Default: 2)
- --host=triplet
- The platform triplet for the machine the port will run on. (Default: --build)
- --make=path
- Which make(1) to use. (Default: MAKE if set and otherwise make(1))
- --makeflags=makeflags
- Override the MAKEFLAGS variable inherited by make.
- --prefix=prefix
- Build the port into this prefix. (Default: The empty prefix designating the root directory)
- --source-port=source-port
- The source code for the SOURCE_PORT per port(5) will be placed in the source-port directory along with the mirror and version file where the source port's file is found by adding .port to this path. (Default: ../$SOURCE_PORT/$SOURCE_PORT)
- --start=step
- Start the build at this step (see --end). (Default: start)
- --sysroot=directory
- The system root to use while building and installing the port. The toolchain is wrapped to transparently use this sysroot during the build.
- --tar=path
- Which tar(1) to use during the build. (Default: tar(1))
- --target=triplet
- The port's outputs targets this platform triplet. (Default: --host)
- --tmp=directory
- Place temporary files in this directory. (Default: TMPDIR if set otherwise /tmp)
- --mirror=url
- First attempt to download the upstream releases from the port's source code mirror at url before attempting the upstream site. The files are copied from the filesystem if the url has no schema.
- --mirror-directory=directory
- Place the downloaded upstream releases in this directory in the layout that can be used as a mirror for the --mirror option. (Default: port.mirror)
EXIT STATUS
tix-port will exit 0 on success and non-zero otherwise.EXAMPLES
A port(5) called example.port with optional patches example.patch, example.execpatch, and example.rmpatch can be downloaded, extracted, patched, built and installed into the /local prefix for non-system software by running:mkdir -p /local # if not already done tix-collection /local create # if not already done tix-port --prefix=/local example