1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/Mk/Uses/tar.mk
Dmitry Marakasov acebdf624e - Add support for USES=tar:tbz2
Approved by:	portmgr (mat)
Differential Revision:	D5564
2016-03-06 12:29:51 +00:00

35 lines
698 B
Makefile

# $FreeBSD$
#
# handle tar archives
#
# Feature: tar
# Usage: USES=tar[:[xz|lzma|Z|bzip2|tgz|tbz]]
#
# MAINTAINER: portmgr@FreeBSD.org
.if !defined(_INCLUDE_USES_TAR_MK)
_INCLUDE_USES_TAR_MK= yes
.if ${tar_ARGS} == xz
EXTRACT_SUFX?= .tar.xz
.elif ${tar_ARGS} == lzma
EXTRACT_SUFX?= .tar.lzma
.elif ${tar_ARGS} == txz
EXTRACT_SUFX?= .txz
.elif ${tar_ARGS} == bzip2 || ${tar_ARGS} == bz2
EXTRACT_SUFX?= .tar.bz2
.elif ${tar_ARGS} == tgz
EXTRACT_SUFX?= .tgz
.elif ${tar_ARGS} == tbz
EXTRACT_SUFX?= .tbz
.elif ${tar_ARGS} == tbz2
EXTRACT_SUFX?= .tbz2
.elif ${tar_ARGS} == Z
EXTRACT_SUFX?= .tar.Z
.elif empty(tar_ARGS)
EXTRACT_SUFX?= .tar
.else
IGNORE= Incorrect 'USES+=tar:${tar_ARGS}'
.endif
.endif