Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/zip.mk
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# handle zip archives | # handle zip archives | ||||
# | # | ||||
# Feature: zip | # Feature: zip | ||||
# Usage: USES=zip[:infozip] | # Usage: USES=zip[:infozip] | ||||
# | # | ||||
# MAINTAINER: portmgr@FreeBSD.org | # MAINTAINER: portmgr@FreeBSD.org | ||||
.if !defined(_INCLUDE_USES_ZIP_MK) | .if !defined(_INCLUDE_USES_ZIP_MK) | ||||
_INCLUDE_USES_ZIP_MK= yes | _INCLUDE_USES_ZIP_MK= yes | ||||
EXTRACT_SUFX?= .zip | EXTRACT_SUFX?= .zip | ||||
EXTRACT_BEFORE_ARGS?= -qo | EXTRACT_BEFORE_ARGS?= -qo | ||||
EXTRACT_AFTER_ARGS?= -d ${WRKDIR} | EXTRACT_AFTER_ARGS?= -d ${EXTRACT_WRKDIR} | ||||
.if empty(zip_ARGS) | .if empty(zip_ARGS) | ||||
EXTRACT_CMD?= ${UNZIP_NATIVE_CMD} | EXTRACT_CMD?= ${UNZIP_NATIVE_CMD} | ||||
.elif ${zip_ARGS} == "infozip" | .elif ${zip_ARGS} == "infozip" | ||||
EXTRACT_DEPENDS+= ${UNZIP_CMD}:${PORTSDIR}/archivers/unzip | EXTRACT_DEPENDS+= ${UNZIP_CMD}:${PORTSDIR}/archivers/unzip | ||||
EXTRACT_CMD?= ${UNZIP_CMD} | EXTRACT_CMD?= ${UNZIP_CMD} | ||||
.else | .else | ||||
IGNORE= Incorrect 'USES+=zip:${zip_ARGS}' expecting 'USES+=zip[:infozip]' | IGNORE= Incorrect 'USES+=zip:${zip_ARGS}' expecting 'USES+=zip[:infozip]' | ||||
.endif | .endif | ||||
.endif | .endif |