Re: porting Makefiles from Linux

From: Tatsuki Makino <tatsuki_makino_at_hotmail.com>
Date: Fri, 18 Mar 2022 23:39:15 UTC
Axel Rau wrote on 2022/03/18 19:05:
>> Am 17.03.2022 um 22:02 schrieb Tatsuki Makino <tatsuki_makino@hotmail.com>:
>> I don't think a conversion is necessary for it. USES=gmake is sufficient.
> 
> Any hints to convert install statements in makefiles?
> 

All Makefile use the GNU Make syntax. I have already mentioned using USES=gmake for it. It activates what is written in Mk/Uses/gmake.mk in /usr/ports.
GNU Make has many variables defined by default. It is better to look at the result of gmake -p.
Variables that do not exist by default are defined somewhere, so make full use of grep to find them.
HOME2L_INSTALL, which was frequent in the statements you listed previously, is defined by https://github.com/gkiefer/home2l/blob/master/Makefile
Other missing variables are passed via MAKE_ENV and MAKE_FLAGS.
Be careful not to pass too many values, since values such as PREFIX=... are passed by default by the ports infrastructure.
We can usually find out what went into a variable with a command like make -V MAKE_ENV.

This is about all I can write :)

Regards.