-
The
fetchtarget is run. Thefetchtarget is responsible for making sure that the tarball exists locally inDISTDIR. Iffetchcannot find the required files inDISTDIRit will look up the URLMASTER_SITES, which is set in the Makefile, as well as our FTP mirrors where we put distfiles as backup. It will then attempt to fetch the named distribution file withFETCH, assuming that the requesting site has direct access to the Internet. If that succeeds, it will save the file inDISTDIRfor future use and proceed. -
The
extracttarget is run. It looks for the port’s distribution file (typically a compressed tarball) inDISTDIRand unpacks it into a temporary subdirectory specified byWRKDIR(defaults to work ). -
The
patchtarget is run. First, any patches defined inPATCHFILESare applied. Second, if any patch files named patch-* are found inPATCHDIR(defaults to the files subdirectory), they are applied at this time in alphabetical order. -
The
configuretarget is run. This can do any one of many different things.-
If it exists, scripts/configure is run.
-
If
HAS_CONFIGUREorGNU_CONFIGUREis set, WRKSRC/configure is run.
-
-
The
buildtarget is run. This is responsible for descending into the port’s private working directory (WRKSRC) and building it. -
The
stagetarget is run. This puts the final set of built files into a temporary directory (STAGEDIR, see Staging ). The hierarchy of this directory mirrors that of the system on which the package will be installed. -
The
packagetarget is run. This creates a package using the files from the temporary directory created during thestagetarget and the port’s pkg-plist . -
The
installtarget is run. This installs the package created during thepackagetarget into the host system.