If your port uses GNU make, set USE_GMAKE=yes.
Table 6-1. Variables for ports related to gmake
Variable | Means |
---|---|
USE_GMAKE | The port requires gmake to build. |
GMAKE | The full path for gmake if it is not in the PATH. |
If your port is an X application that creates Makefile files
from Imakefile files using imake,
then set USE_IMAKE=yes. This will cause the configure stage to
automatically do an xmkmf -a. If the -a
flag is a problem for your port, set XMKMF=xmkmf. If the port uses imake but
does not understand the install.man target, NO_INSTALL_MANPAGES=yes should be set.
If your port's source Makefile has something else than all as the main build target, set ALL_TARGET accordingly. Same goes for install and INSTALL_TARGET.
If your port uses the configure script to generate Makefile files from Makefile.in files, set GNU_CONFIGURE=yes. If you want to give extra arguments to the configure script (the default argument is --prefix=${PREFIX} ${CONFIGURE_TARGET}), set those extra arguments in CONFIGURE_ARGS. Extra environment variables can be passed using CONFIGURE_ENV variable.
If your package uses GNU configure, and the resulting executable file has a ``strange'' name like i386-portbld-freebsd4.7-appname, you will need to additionally override the CONFIGURE_TARGET variable to specify the target in the way required by scripts generated by recent versions of autoconf. Add the following line immediately after the GNU_CONFIGURE=yes line in your Makefile:
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
Table 6-2. Variables for ports that use configure
Variable | Means |
---|---|
GNU_CONFIGURE | The port uses configure script to prepare build. |
HAS_CONFIGURE | Same as GNU_CONFIGURE, except default configure target is not added to CONFIGURE_ARGS. |
CONFIGURE_ARGS | Additional arguments passed to configure script. |
CONFIGURE_ENV | Additional environment variables to be set for configure script run. |
CONFIGURE_TARGET | Override default configure target. Default value is ${MACHINE_ARCH}-portbld-freebsd${OSREL}. |