# Check your build tool ALWAYS_CHECK_MAKE=yes # Determine optimal number of threads, should be two threads per physical CPU # Hyperthreading inflates the CPU count, so we need to check for usage then # remove those virtual cores from the pool to prevent overtaxing the real ones CPU_THREADS!=echo "( `sysctl -n kern.smp.cpus` * 2 ) / \ ( `if sysctl -n machdep.hyperthreading_allowed >/dev/null 2>&1; \ then sysctl -n machdep.hyperthreading_allowed; \ else echo 0; fi` + 1 )" | \ bc -q .if !empty(.CURDIR:M/usr/src*) # Use host specific custom kernel, but hide this fact from ports KERNCONF!=hostname -s | sed -e \ 'y|abcdefghijklmnopqrstuvwxyz|ABCDEFGHIJKLMNOPQRSTUVWXYZ|' # Also use make jobs when building world+kernel MAKEFLAGS+=-j${CPU_THREADS} .endif # If port uses make jobs, specify how many using our formula MAKE_JOBS_NUMBER=${CPU_THREADS} # Everything gets deugging symbols CFLAGS+=-g CXXFLAGS+=-g STRIP= # blank on purpose WITHOUT_DEBUG=yes # debug symbols only, often brings in debugging features # Ports defines, not including KNOBS, included here for use outside /usr/ports .if !defined(NO_BATCH) BATCH=yes .endif DISABLE_VULNERABILITIES=yes WITH_OPTIONS=yes # Relocate the DBDIRs for ports. # Don't forget to symlink /var/db/pkg #PKG_DBDIR=/usr/local/pkgdb # Allow updating ports via `make update` SUP_UPDATE=yes PORTSSUPFILE=/etc/ports.sup # Only include our ports config if we are not working on portage .if (!empty(.CURDIR:M/usr/ports/*) || defined(PORTSCONF)) .include "/etc/ports.conf" .endif # Perl line goes here: