Now ports define some environment variables, and call a unified bash script that handles configuration, recompilation and installation. If a port uses non-configure buildsystem, port script can also specify custom build and install step.