mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
5d33e04596
Where appropriate fiddle with a few other things.
26 lines
512 B
Makefile
26 lines
512 B
Makefile
# 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
|