2014-03-07 15:25:02 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# handle zip archives
|
|
|
|
#
|
|
|
|
# Feature: zip
|
|
|
|
# Usage: USES=zip[:infozip]
|
|
|
|
#
|
2014-03-15 10:31:54 +00:00
|
|
|
# MAINTAINER: portmgr@FreeBSD.org
|
|
|
|
|
2014-09-28 16:36:31 +00:00
|
|
|
.if !defined(_INCLUDE_USES_ZIP_MK)
|
2014-03-07 15:25:02 +00:00
|
|
|
_INCLUDE_USES_ZIP_MK= yes
|
|
|
|
|
2014-03-08 17:21:31 +00:00
|
|
|
EXTRACT_SUFX?= .zip
|
2014-03-07 15:25:02 +00:00
|
|
|
|
2014-05-22 09:51:35 +00:00
|
|
|
EXTRACT_BEFORE_ARGS?= -qo
|
|
|
|
EXTRACT_AFTER_ARGS?= -d ${WRKDIR}
|
|
|
|
|
2014-09-28 16:36:31 +00:00
|
|
|
.if empty(zip_ARGS)
|
|
|
|
EXTRACT_CMD?= ${UNZIP_NATIVE_CMD}
|
|
|
|
.elif ${zip_ARGS} == "infozip"
|
2014-03-07 15:25:02 +00:00
|
|
|
EXTRACT_DEPENDS+= ${UNZIP_CMD}:${PORTSDIR}/archivers/unzip
|
|
|
|
EXTRACT_CMD?= ${UNZIP_CMD}
|
2014-05-22 09:51:35 +00:00
|
|
|
.else
|
2014-03-07 15:25:02 +00:00
|
|
|
IGNORE= Incorrect 'USES+=zip:${zip_ARGS}' expecting 'USES+=zip[:infozip]'
|
|
|
|
.endif
|
2014-09-28 16:36:31 +00:00
|
|
|
|
2014-03-07 15:25:02 +00:00
|
|
|
.endif
|