aboutsummaryrefslogtreecommitdiff
path: root/Mk/Uses/tar.mk
blob: 92eb0f76997df9282901da0af2128381212e5220 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $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

tar_ARGS?=	none

.if ${tar_ARGS} == xz
EXTRACT_SUFX?=	.tar.xz
.elif ${tar_ARGS} == lzma
EXTRACT_SUFX?=	.tar.lzma
.elif ${tar_ARGS} == bzip2
EXTRACT_SUFX?=	.tar.bz2
.elif ${tar_ARGS} == tgz
EXTRACT_SUFX?=	.tgz
.elif ${tar_ARGS} == tbz
EXTRACT_SUFX?=	.tbz
.elif ${tar_ARGS} == Z
EXTRACT_SUFX?=	.tar.Z
.elif ${tar_ARGS} == none
EXTRACT_SUFX?=	.tar
.else
IGNORE=	Incorrect 'USES+=tar:${tar_ARGS}'
.endif
.endif