1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00
freebsd-ports/Mk/Uses/zip.mk
Alex Kozlov 98052ca1a2 - Use /usr/bin/unzip for zip files extraction (part 1)
PR:	ports/188419
Exp-run:	bdrewery
Approved by:	portmgr (bapt)
2014-05-22 09:51:35 +00:00

29 lines
548 B
Makefile

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