Re: porting Makefiles from Linux

From: Axel Rau <Axel.Rau_at_chaos1.de>
Date: Wed, 27 Apr 2022 05:46:35 UTC
In ports Makefile, I have:

MAKE_ENV=	STAGE_INSTALL=$(STAGEDIR)${PREFIX}/home2l

In the Linux Setup.mk:
HOME2L_INSTALL := $(STAGE_INSTALL)

In the Linux toplevel Makefile:
HOME2L_INSTALL := $(STAGE_INSTALL)

So gmake installs into STAGEDIR, but its contents are not used for pkg 
or final installation.

Does staging not work with gamake?

Axel

Am 26.04.22 um 19:44 schrieb Axel Rau:
> Hi Dan, All,
> 
> I still have no idea how to convince this Linux beast to install what is 
> in STAGEDIR.
> STAGEDIR has:
> 
> # ls -lR stage/usr/local/home2l/
> total 24
> -rw-r--r--  1 root  wheel  806 Dec 10 19:40 README
> -rw-r--r--  1 root  wheel   22 Apr 26 11:32 VERSION
> drwxr-xr-x  3 root  wheel   11 Apr 26 11:32 bin
> -rw-r--r--  1 root  wheel  543 Apr 26 11:29 env.sh
> drwxr-xr-x  2 root  wheel    2 Apr 26 11:32 etc
> drwxr-xr-x  2 root  wheel    3 Apr 26 11:32 install
> drwxr-xr-x  3 root  wheel    3 Apr 26 11:32 lib
> drwxr-xr-x  4 root  wheel    4 Apr 26 11:32 share
> 
> stage/usr/local/home2l/bin:
> total 73
> drwxr-xr-x  2 root  wheel     15 Apr 26 11:32 amd64
> -rwxr-xr-x  1 root  wheel   1646 Apr 26 11:29 h2l-mkdir.sh
> 
> . . .
> 
> I can build the package, but it installs nothing.
> I know it's bad practice to install into PREFIX/home2l, but for now, I 
> want it isolated from other port installs in PREFIX.
> 
> Work-in-progress here:
>      https://github.com/mc3/fbsd_local_ports/tree/master/net/home2l
> 
> Any help appreciated,
> Axel
> 
> Am 25.03.22 um 13:43 schrieb Axel Rau:
>>
>>
>>> Am 25.03.2022 um 12:10 schrieb Axel Rau <Axel.Rau@chaos1.de 
>>> <mailto:Axel.Rau@chaos1.de>>:
>>>
>>> Hi Dan, All,
>>>
>>> should I replace the linux install targets by proper ports plists 
>>> instead of translating each install statement to FreeBSD style install ?
>>
>> Or should I create one port per architecture (amd64, arm embedded or 
>> avr)?
>>
>> Please advice,
>> Axel
>> PS: What I created up to now is unsatisfactory:
>> https://github.com/mc3/fbsd_local_ports/tree/master/net/home2l 
>> <https://github.com/mc3/fbsd_local_ports/tree/master/net/home2l>
>> ---
>> PGP-Key: CDE74120  ☀  computing @ chaos claudius
>>
> 
> 


-- 
PGP-Key: CDE74120  ☀  computing @ chaos claudius