Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/minizip.mk
- This file was added.
# handle minizip version | |||||
# | |||||
tcberner: please use `Tools/scripts/indent_make_if.pl` on this file | |||||
# Feature: minizip | |||||
# Usage: USES=minizip[:ng] | |||||
# | |||||
# MAINTAINER: lbartoletti@FreeBSD.org | |||||
Done Inline Actions^ you can be the maintainer of that :) tcberner: ^ you can be the maintainer of that :) | |||||
.if !defined(_INCLUDE_USES_MINIZIP_MK) | |||||
_INCLUDE_USES_MINIZIP_MK= yes | |||||
. if empty(minizip_ARGS) | |||||
LIB_DEPENDS+= libminizip.so:archivers/minizip | |||||
. elif ${minizip_ARGS} == "ng" | |||||
LIB_DEPENDS+= libminizip-ng.so:archivers/minizip-ng | |||||
. else | |||||
IGNORE= Incorrect 'USES+=minizip:${minizip_ARGS}' expecting 'USES+=minizip[:ng]' | |||||
. endif | |||||
.endif | |||||
Done Inline Actionsyou could also do something à là [...] legacy_DEPENDS=libminizip.so:archivers/minizip ng_DEPENDS=ibminizip-ng.so:archivers/minizip-ng minzip_ARGS?=legacy LIB_DEPENDS+=${${minzip_ARGS}_DEPENDS} and get rid of the iffery (of course you'll loose the error-checking then. tcberner: you could also do something à là
```
[...]
legacy_DEPENDS=libminizip.so:archivers/minizip… | |||||
Done Inline ActionsIt works for minizip:ng, but not for minizip without args. Example with "IGNORE debug" :) [...] minizip_ARGS?= legacy IGNORE=minizip args:${minizip_ARGS} net-im/psi (ng): games/mrboom (legacy): lbartoletti: It works for minizip:ng, but not for minizip without args.
Example with "IGNORE debug" :)
```… | |||||
Done Inline Actions
ah right, it's defined, just empty tcberner: > It works for minizip:ng, but not for minizip without args.
>
> Example with "IGNORE debug"… |
please use Tools/scripts/indent_make_if.pl on this file