mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
Define EXTRACT_SUFX at the very end of the pre section to allow
defining extract suffix from inside bsd.*.mk and USES
This commit is contained in:
parent
0b1cd9c816
commit
a4de18e4c3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333576
@ -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/*}
|
||||
|
Loading…
Reference in New Issue
Block a user