Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Mar 2022 08:39:15 +0900
From:      Tatsuki Makino <tatsuki_makino@hotmail.com>
To:        Axel Rau <Axel.Rau@chaos1.de>
Cc:        Dan Mahoney <freebsd@gushi.org>, ports@FreeBSD.org
Subject:   Re: porting Makefiles from Linux
Message-ID:  <PSAPR03MB5639CF8E9F0757ED0CE757BAFA139@PSAPR03MB5639.apcprd03.prod.outlook.com>
In-Reply-To: <09C98E69-E8E5-417F-AC2A-178C0674B42D@Chaos1.DE>
References:  <7453893C-18B0-4298-9228-BC27AFCAE9E7@Chaos1.DE> <474C8EA9-9BBA-4319-AF30-73394EAB4AE9@gushi.org> <3E5853D5-56E2-41B6-8E17-325364EF2D84@Chaos1.DE> <PSAPR03MB563938478E916F15B2BA7597FA129@PSAPR03MB5639.apcprd03.prod.outlook.com> <09C98E69-E8E5-417F-AC2A-178C0674B42D@Chaos1.DE>

next in thread | previous in thread | raw e-mail | index | archive | help
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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?PSAPR03MB5639CF8E9F0757ED0CE757BAFA139>