From nobody Fri Mar 25 11:10:13 2022 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DA10C1A258E2 for ; Fri, 25 Mar 2022 11:10:17 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KPzs46WZDz4T46 for ; Fri, 25 Mar 2022 11:10:16 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=Message-Id:In-Reply-To:To:References:Date:Subject:Mime-Version: Content-Type:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=DK/rBGI7xSdVjBH46Ebqn4Fp8WTRauyags6dND+eyY0=; b=zP6LcY/BAqpr7TrfNXwFEZHyhC 9mSFNNA5vA7zoTeVsqscI7Hoj0lbDVF9xmFcc956jteY/KJUhVSrU42RidZnZ5ygJY9jphHGhwe4Z uX1j+fxYLrMm+VoIrQvFMFDFizSdiB4o90G8c2AmlS35CRHSMRIt0qU6B/oNTr9lbZUV0j+3r9WOv cagJOF/1s2Q4mHdDQImSt2IbyAWplTLEInl2n1zy+LyFWcBXWnJlJunR+a/kFJAAwhogSgiZktJnK RxglyiEYUAh9fN0aFGhnsruYuHZEUQ+wklqFOI7WP40itsO1ePpNIYpYW8CEpqsQYYtjHd+Zlj0Vw T+9dvW8A==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1nXhpf-00071Z-95; Fri, 25 Mar 2022 11:10:15 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1648206614-50344-48765/7/1; Fri, 25 Mar 2022 11:10:14 +0000 From: Axel Rau Content-Type: multipart/alternative; boundary="Apple-Mail=_2BF2DEB8-7F26-4539-9CBA-606579659FEF" List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 Subject: Re: porting Makefiles from Linux Date: Fri, 25 Mar 2022 12:10:13 +0100 References: <7453893C-18B0-4298-9228-BC27AFCAE9E7@Chaos1.DE> <474C8EA9-9BBA-4319-AF30-73394EAB4AE9@gushi.org> <3E5853D5-56E2-41B6-8E17-325364EF2D84@Chaos1.DE> To: Dan Mahoney , ports@FreeBSD.org In-Reply-To: <3E5853D5-56E2-41B6-8E17-325364EF2D84@Chaos1.DE> Message-Id: <94B1CB5F-AA8F-4B0B-AD39-C1612ACE7583@Chaos1.DE> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4KPzs46WZDz4T46 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b="zP6LcY/B"; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-1.90 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[chaos1.de]; URI_COUNT_ODD(1.00)[3]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; RCPT_COUNT_TWO(0.00)[2]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim]; MLMMJ_DEST(0.00)[ports]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:5::73:from] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_2BF2DEB8-7F26-4539-9CBA-606579659FEF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Dan, All, should I replace the linux install targets by proper ports plists = instead of translating each install statement to FreeBSD style install ? Thanks, Axel > Am 16.03.2022 um 12:36 schrieb Axel Rau : >=20 > I try to create a port from: > https://github.com/gkiefer/home2l > This is a multi architecture project and has no configure.in or Makefile.am > Makefiles seem to be handcrafted by the author or otherwise generated. >=20 > =E2=80=9Ainstall' statements in Makefiles: > - - - > brownies/Makefile: install -Dp -m 644 -t $(HOME2L_INSTALL)/share/browni= es $(BUILD_DIR_AVR)/*.elf > brownies/Makefile: install -Dp $(STRIP) -m 755 -t $$BIN $(BROWNIE2L_BIN= ) > doc/Makefile: install -Dp -m 644 -t $(HOME2L_INSTALL)/doc/ home2l-book.= pdf > doc/Makefile: install -Dp -m 644 -t $(HOME2L_INSTALL)/doc/home2l-api_c/= $(API_C)/*.* > doc/Makefile: install -Dp -m 644 -t $(HOME2L_INSTALL)/doc/home2l-api_c/= search/ $(API_C)/search/*.* > doc/Makefile: install -Dp -m 644 -t $(HOME2L_INSTALL)/doc/home2l-api_py= thon/ $(API_PYTHON)/*.* > doc/Makefile: install -Dp -m 644 -t $(HOME2L_INSTALL)/doc/home2l-api_py= thon/search/ $(API_PYTHON)/search/*.* > doorman/Makefile: install -Dp $(STRIP) -m 755 -t $$BIN $(DOORMAN_BIN); = \ > drivers/mqtt/Makefile: install -Dp $(STRIP) -m 644 -t $(HOME2L_INSTALL)= /lib/$(ARCH) $(DRIVER_BIN) > drivers/brownies/Makefile: install -Dp $(STRIP) -m 644 -t $(HOME2L_INST= ALL)/lib/$(ARCH) $(DRIVER_BIN) > drivers/enocean/Makefile: install -Dp $(STRIP) -m 644 -t $$LIB = $(DRIVER_BIN); \ > drivers/enocean/Makefile: install -Dp $(STRIP) -m 755 -t $$BIN = $(TOOL_BIN) > drivers/demo/Makefile: install -Dp $(STRIP) -m 644 -t $(HOME2L_INSTALL)= /lib/$(ARCH) $(DRIVER_BIN) > drivers/mpd/Makefile: install -Dp $(STRIP) -m 644 -t $(HOME2L_INSTALL)/= lib/$(ARCH) $(DRIVER_BIN) > drivers/weather/Makefile: install -Dp -m 755 -t $(HOME2L_INSTALL)/lib = $(SCRIPTS) > drivers/gpio/Makefile: install -Dp $(STRIP) -m 644 -t $(HOME2L_INSTALL)= /lib/$(ARCH) $(DRIVER_BIN) > drivers/gpio/Makefile: install -Dp -m 755 -t $(HOME2L_INSTALL)/bin = h2l-setup_gpio.sh > locales/Makefile: install -Dp -m 644 de.mo $(HOME2L_INSTALL)/locale/de_= DE/LC_MESSAGES/home2l.mo > resources/Makefile: install -Dp -m 755 -t $(HOME2L_INSTALL)/bin = home2l-showhouse > resources/Makefile: install -Dp $(STRIP) -m 755 -t $$BIN $(RCSHELL_BIN)= $(SERVER_BIN); \ > resources/Makefile: install -Dp $(STRIP) -m 644 -t $$LIB $(PYLIB_BIN)= ; \ > resources/Makefile: install -Dp -m 644 -t $$LIB $(DIR_OBJ)/$= (PYLIB).py; \ > tools/Makefile: install -Dp -m 755 -t $(HOME2L_INSTALL)/bin $(SCRIPTS) > tools/Makefile: install -Dp -m 644 -t $(HOME2L_INSTALL) env.sh README > tools/Makefile: install -Dp -m 755 -t $(HOME2L_INSTALL)/install = $(INITD) > tools/Makefile: install -Dp -m 755 -t $(HOME2L_INSTALL)/bin h2l-mkdir.s= h > tools/Makefile: install -Dp $(STRIP) -m 755 -t $$BIN $(DAEMON_BIN); \ > wallclock/Makefile: install -Dps -m 755 -t $$BIN $(WALLCLOCK_BIN); > wallclock/Makefile: install -Dp -m 755 -t $(HOME2L_INSTALL)/bin = home2l-fpc; \ > wallclock/Makefile: install -Dp -m 755 -t $(HOME2L_INSTALL)/bin = h2l-sysinfo.sh; \ > wallclock/Makefile: install -Dp -m 644 $(APK) $(HOME2L_INSTALL)/insta= ll/Home2lApp.apk; \ > wallclock/Makefile: install -Dp -m 644 -t $(HOME2L_INSTALL)/share/icons= icons.build/*.bmp; \ > wallclock/Makefile: install -Dp -m 644 -t $(HOME2L_INSTALL)/share/fonts= fonts/*.ttf; \ > wallclock/Makefile: install -Dp -m 644 -t $(HOME2L_INSTALL)/share/sound= s sounds/*.wav; \ > wallclock/Makefile: install -Dp -m 644 -T icons/home2l-desktop.png = $(HOME2L_INSTALL)/share/home2l.png; \ > - - - >=20 > Thanks, Axel > --- > PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius >=20 =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_2BF2DEB8-7F26-4539-9CBA-606579659FEF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi Dan, = All,

should I = replace the linux install targets by proper ports plists instead of = translating each install statement to FreeBSD style install ?

Thanks, Axel

Am 16.03.2022 um 12:36 schrieb Axel Rau <Axel.Rau@chaos1.de>:

I try to create a port from:
This is a multi architectur= e project and has no configur= e.in or Makefile.am
Makefiles seem to be handcrafted  = by the author or otherwise generated.

=
=E2=80=9Ainstall' statements in Makefiles:
- - -
brownies/Makefile= : install= -Dp -m 644 -t $(HOME2L_INSTALL)/share/brownies $(BUILD_DIR_AVR)/*.elf
brownies/Makefile: install -Dp $(STRIP) -m 755 -t = $$BIN $(BROWNIE2L_BIN)
doc/Makefile: install -Dp = -m 644 -t $(HOME2L_INSTALL)/doc/ home2l-book.pdf
doc/= Makefile: install -Dp -m 644 -t $(HOME2L_INSTALL)/doc/home2l-api_c/ $(API_C)/*.*
doc/Makefile: install -Dp -m 644 -t $(HOME2L_INSTA= LL)/doc/home2l-api_c/search/ $(API_C)/search/*.*
doc/Makefile: install -Dp -m 644 -t $(HOME2L_INSTALL)/doc/home2l-api_py= thon/ $(API_PYTHON)/*.*
doc/Makefile: install -Dp = -m 644 -t $(HOME2L_INSTALL)/doc/home2l-api_python/search/ $(API_PYTHON)/s= earch/*.*
doorman/Makefile: install -Dp $(STRIP) -m 755 = -t $$BIN $(DOORMAN_BIN);   \
drivers/mqtt/Make= file: ins= tall -Dp $(STRIP) -m 644 -t $(HOME2L_INSTALL)/lib/$(ARCH) $(DRIVER_BIN)
drivers/brownies/Makefile: install -Dp $(STRIP) = -m 644 -t $(HOME2L_INSTALL)/lib/$(ARCH) $(DRIVER_BIN)
drivers/enocean/Makefile: install -Dp $(STRIP) -m 644 -t $$LIB = $(DRIVER_BIN); \
drivers/enocean/Makefile:= install = -Dp $(STRIP) -m 755 -t $$BIN $(TOOL_BIN)
driv= ers/demo/Makefile: install -Dp $(STRIP) -m 644 -t $(HOME2L_INSTALL)/lib/$(ARCH) = $(DRIVER_BIN)
drivers/mpd/Makefile: install -Dp = $(STRIP) -m 644 -t $(HOME2L_INSTALL)/lib/$(ARCH) $(DRIVER_BIN)
drivers/weather/Makefile: install -Dp -m 755 -t $(HOME2L_INST= ALL)/lib $(SCRIPTS)
drivers/gpio/Makefile: install = -Dp $(STRIP) -m 644 -t $(HOME2L_INSTALL)/lib/$(ARCH) $(DRIVER_BIN)=
drivers/gpio/Makefile: install -Dp -m 755 -t $(HOME2L_INSTALL= )/bin h2l-setup_gpio.sh
locales/Makefile: install -Dp = -m 644 de.mo $(HOME2L_INSTALL)/locale/de_DE/LC_MESSAGES/home2l.mo<= /div>
resources/Makefile: install -Dp -m 755 -t $(HOME2L_INSTALL)= /bin home2l-showhouse
resources/Makefile: install -Dp = $(STRIP) -m 755 -t $$BIN $(RCSHELL_BIN) $(SERVER_BIN); \
resources/Makefile:   install -Dp $(STRIP) -m 644 -t $$LIB = $(PYLIB_BIN);  \
resources/Makefile:   = install -Dp          -m 644 -t $$LIB $(DIR_OBJ)/= $(PYLIB).py;  \
tools/Makefile: install -Dp = -m 755 -t $(HOME2L_INSTALL)/bin $(SCRIPTS)
tool= s/Makefile: install -Dp -m 644 -t $(HOME2L_INSTALL) env.sh README
tools/Makefile: install -Dp -m 755 -t $(HOME2L_INSTALL)/install = $(INITD)
tools/Makefile: install -Dp -m 755 -t $(HOME2L_I= NSTALL)/bin h2l-mkdir.sh
tools/Makefile: install -Dp = $(STRIP) -m 755 -t $$BIN $(DAEMON_BIN);   \
wa= llclock/Makefile: install -Dps -m 755 -t $$BIN $(WALLCLOCK_BIN);
wallclock/Makefile: install -Dp -m 755 -t $(HOME2L_INSTALL)/bin = home2l-fpc; \
wallclock/Makefile: install -Dp = -m 755 -t $(HOME2L_INSTALL)/bin h2l-sysinfo.sh; \
wallclock/Makefile:   install -Dp -m 644 $(APK) $(HOME2L_INSTALL)/= install/Home2lApp.apk; \
wallclock/Makefile: install -Dp = -m 644 -t $(HOME2L_INSTALL)/share/icons icons.build/*.bmp; \
=
wallclock/Makefile: install -Dp -m 644 -t $(HOME2L_INSTALL)= /share/fonts fonts/*.ttf; \
wallclock/Makefil= e: instal= l -Dp -m 644 -t $(HOME2L_INSTALL)/share/sounds sounds/*.wav; \
wallclock/Makefile: install -Dp -m 644 -T icons/home2l-desk= top.png $(HOME2L_INSTALL)/share/home2l.png; \
- - -

Thanks, Axel
---
PGP-Key: CDE74120  =E2=98=80  computing @ = chaos claudius


---
PGP-Key: CDE74120  =E2=98=80 =  computing @ chaos claudius

--Apple-Mail=_2BF2DEB8-7F26-4539-9CBA-606579659FEF--