1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/Mk/Uses/zip.mk
Antoine Brodin 3ea8134a8b Make it possible to override EXTRACT_SUFX when using zip, some distfiles
(emulators/ods2reader for instance) have a .ZIP extension
2014-03-08 17:21:31 +00:00

27 lines
508 B
Makefile

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