5b4f2ad658
make things a bit more consistent. Approved by: portmgr (bapt)
26 lines
507 B
Makefile
26 lines
507 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
|
|
|
|
.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
|