Current bsd.licenses.mk does not use LICENSE_FILE if more than one licnese is defined in LICENSE.
This patch adds support to simplify
LICENSE_FILE_foo= ${WRKSRC}/LICENSE
LICENSE_FILE_bar= ${WRKSRC}/LICENSE
to
LICENSE_FILE= ${WRKSRC}/LICENSE
Differential D11443
Add LICENSE_FILE support for single license file containing multiple licenses sunpoet on Jul 2 2017, 6:55 AM. Authored by Tags None Referenced Files
Subscribers
Details
Current bsd.licenses.mk does not use LICENSE_FILE if more than one licnese is defined in LICENSE. This patch adds support to simplify LICENSE_FILE_foo= ${WRKSRC}/LICENSE to LICENSE_FILE= ${WRKSRC}/LICENSE Choose a port with dual/multi licenses. I've added LICENSE_FILE to devel/p5-ExtUtils-Config. Before: After:
Diff Detail
Event TimelineComment Actions I found D8171. Both patch provide almost the same function except one rare case as follows: LICENSE=APACHE20 GPLv2 LGPL20 LGPL21 LICENSE_COMB=dual LICENSE_FILE_APACHE20=${WRKSRC}/LICENSE.APACHE20 LICENSE_FILE_GPLv2=${WRKSRC}/LICENSE LICENSE_FILE_LGPL20=${WRKSRC}/LICENSE LICENSE_FILE_LGPL21=${WRKSRC}/LICENSE With D11443, LICENSE_{GPLv2,LGPL20,LGPL21} could be simplify to LICENSE_FILE which D8171 disallowed. LICENSE=APACHE20 GPLv2 LGPL20 LGPL21 LICENSE_COMB=dual LICENSE_FILE_APACHE20=${WRKSRC}/LICENSE.APACHE20 LICENSE_FILE=${WRKSRC}/LICENSE But I cannot remember any real case like this. Therefore, I would suggest either D8171 or D11443 to be committed ASAP. Comment Actions I wonder if there are ports that will break with that. (Because of a LICENSE_FILE varialbe that was not used but was pointing to a non existing file.) |