# $FreeBSD: head/Mk/Uses/tar.mk 369465 2014-09-28 16:36:31Z tijl $ # # 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 #.if ${OPSYS} == FreeBSD && ${OSVERSION} < 800000 #EXTRACT_DEPENDS?= xz:oldosver/xz #.endif .elif ${tar_ARGS} == lz EXTRACT_SUFX?= .tar.lz .elif ${tar_ARGS} == lzma EXTRACT_SUFX?= .tar.lzma #.if ${OPSYS} == FreeBSD && ${OSVERSION} < 800000 #EXTRACT_DEPENDS?= xz:oldosver/xz #.endif .elif ${tar_ARGS} == txz EXTRACT_SUFX?= .txz #.if ${OPSYS} == FreeBSD && ${OSVERSION} < 800000 #EXTRACT_DEPENDS?= xz:oldosver/xz #.endif .elif ${tar_ARGS} == bzip2 || ${tar_ARGS} == bz2 EXTRACT_SUFX?= .tar.bz2 .elif ${tar_ARGS} == gz EXTRACT_SUFX?= .tar.gz .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