diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index cc72e1f4084a..fe0721e42403 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -1360,19 +1360,6 @@ ETCDIR?= ${PREFIX}/etc/${PORTNAME} .include "${PORTSDIR}/Mk/bsd.xorg.mk" .endif -.if defined(USE_BZIP2) -EXTRACT_SUFX?= .tar.bz2 -.elif defined(USE_LHA) -EXTRACT_SUFX?= .lzh -.elif defined(USE_ZIP) -EXTRACT_SUFX?= .zip -.elif defined(USE_XZ) -EXTRACT_SUFX?= .tar.xz -.elif defined(USE_MAKESELF) -EXTRACT_SUFX?= .run -.else -EXTRACT_SUFX?= .tar.gz -.endif PACKAGES?= ${PORTSDIR}/packages TEMPLATES?= ${PORTSDIR}/Templates @@ -1513,6 +1500,20 @@ ${_f}_ARGS:= ${f:C/^[^\:]*\://g} .include "${USESDIR}/${_f}.mk" .endfor +.if defined(USE_BZIP2) +EXTRACT_SUFX?= .tar.bz2 +.elif defined(USE_LHA) +EXTRACT_SUFX?= .lzh +.elif defined(USE_ZIP) +EXTRACT_SUFX?= .zip +.elif defined(USE_XZ) +EXTRACT_SUFX?= .tar.xz +.elif defined(USE_MAKESELF) +EXTRACT_SUFX?= .run +.else +EXTRACT_SUFX?= .tar.gz +.endif + # You can force skipping these test by defining IGNORE_PATH_CHECKS .if !defined(IGNORE_PATH_CHECKS) .if ! ${PREFIX:M/*}