1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/Mk/Uses/zip.mk
Baptiste Daroussin 421767bd88 Remove the now unneeded ${PORTSDIR} from dependency definition in
The infrastructure Makefiles

PR:		206569
Exp run by:	antoine
Differential Revision:	D5047
2016-03-27 01:23:25 +00:00

28 lines
526 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
EXTRACT_SUFX?= .zip
EXTRACT_BEFORE_ARGS?= -qo
EXTRACT_AFTER_ARGS?= -d ${EXTRACT_WRKDIR}
.if empty(zip_ARGS)
EXTRACT_CMD?= ${UNZIP_NATIVE_CMD}
.elif ${zip_ARGS} == "infozip"
EXTRACT_DEPENDS+= ${UNZIP_CMD}:archivers/unzip
EXTRACT_CMD?= ${UNZIP_CMD}
.else
IGNORE= Incorrect 'USES+=zip:${zip_ARGS}' expecting 'USES+=zip[:infozip]'
.endif
.endif