Yes of course, I can use WRKSRC_SUBDIR or similar. I've just improvised to be fast to solve license stuff. I didn't touch port since I adopted it and only 493 version have a license file included in tarball.
Thanks for let me know about it or I committed as it was, meh :) Lorenzo Salvadore <phascolarc...@protonmail.ch> escreveu no dia sexta, 17/06/2022 à(s) 20:09: > ------- Original Message ------- > On Friday, June 17th, 2022 at 15:54, Nuno Teixeira <edua...@freebsd.org> > wrote: > > > > Ok, I will adjust license terms following your example, commit the port > update and let uptream author know about this, since I'm waiting for his > answer about this same license subject for months :) > > Related to '${WRKSRC}/../..//docs/License.txt' thats because port uses > > 'WRKSRC=${WRKDIR}/${DISTNAME}/src/current' > > I can't see other way to beutify or simply this variables. > > I think you probably want to leave WRKSRC to its default value > and define WRKSRC_SUBDIR instead as > WRKSRC_SUBDIR=src/current > > You might also be interested in BUILD_WRKSRC and other similar > variables: I suggest you explore Mk/bsd.port.mk in your ports > tree. > > If you are unable to avoid redefining WRKSRC, you can define > LICENSE_FILE as > LICENSE_FILE=${WRKDIR}/${DISTNAME}/docs/License.txt > > Cheers, > > Lorenzo Salvadore > >