From nobody Wed Mar 16 11:36:58 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 41E091A29F26 for ; Wed, 16 Mar 2022 11:37:03 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout4.lrau.net (mailout4.lrau.net [IPv6:2a05:bec0:26:2::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 "mailout4.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KJSt62swYz4WJZ for ; Wed, 16 Mar 2022 11:37:02 +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=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version: Content-Type:Message-Id:From:Sender:Reply-To: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=AMqwjbre/6ISO8XyJaOhUVgPcILHg8uhkizEKrKHeig=; b=uTmzpDpAIpZcnH/mCcYCe8h/3P oFH9er2iu02+LaYIXVg2bl/wioaJTFdrNkrMNv6uSVrEBKyS1rWrFkcEFqPPIi9jqmTBNnU4ol/1x 1BFNG12+RUYqherK0z7cAwwnc4w5mImUWGunrkXjqP514rBNy5SSd3qjHIZJXgdHRQvca3Cplvymu hj3i9GLmbUWqouV7MFVrrLRIzw/dDJj3QlkYvD67DMevDg40GAtTH/3PIZ3h7yn65ekV2ij5dJChq gOqCvgk8U4fEmAabQgPC5vDUR1LR3rT4wOgz7oa2nTWedelg5xK9DH2QxJ5oKwKRO5kq1G0081/ln A7GN4YEg==; Received: from [2a05:bec0:26:2::74] (helo=imap4.lrau.net) by mailout4.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1nURxd-000JIM-3y; Wed, 16 Mar 2022 11:37:01 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1647430619-24097-23590/7/1; Wed, 16 Mar 2022 11:36:59 +0000 From: Axel Rau Message-Id: <3E5853D5-56E2-41B6-8E17-325364EF2D84@Chaos1.DE> Content-Type: multipart/alternative; boundary="Apple-Mail=_C207219C-468E-494C-8CE2-0B660EB4F075" 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: Wed, 16 Mar 2022 12:36:58 +0100 In-Reply-To: <474C8EA9-9BBA-4319-AF30-73394EAB4AE9@gushi.org> Cc: ports@FreeBSD.org To: Dan Mahoney References: <7453893C-18B0-4298-9228-BC27AFCAE9E7@Chaos1.DE> <474C8EA9-9BBA-4319-AF30-73394EAB4AE9@gushi.org> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4KJSt62swYz4WJZ X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=uTmzpDpA; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:2::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-0.67 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; NEURAL_HAM_MEDIUM(-0.99)[-0.995]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim]; DMARC_NA(0.00)[chaos1.de]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.88)[0.878]; NEURAL_HAM_SHORT(-0.66)[-0.657]; 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:2::73:from] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_C207219C-468E-494C-8CE2-0B660EB4F075 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Dan, > Am 16.03.2022 um 00:15 schrieb Dan Mahoney : >=20 >=20 >=20 >> On Mar 15, 2022, at 3:48 PM, Axel Rau wrote: >>=20 >> Hi all, >>=20 >> are there any tools available to convert install statements in = Makefiles from Linux to FreeBSD? >> The install utilities have different options and I=E2=80=99m looking = for a tool to convert. >=20 > This is the idea behind autoconf, that it detects the various options = in play and then builds you a makefile from a file like Makefile.am >=20 > Could you give some sort of example about what install utilities = you're referencing, and a package that fails to do the above? It would = help explain what it is you're trying to do. 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. =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.pd= f 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/se= arch/ $(API_C)/search/*.* doc/Makefile: install -Dp -m 644 -t $(HOME2L_INSTALL)/doc/home2l-api_pyth= on/ $(API_PYTHON)/*.* doc/Makefile: install -Dp -m 644 -t $(HOME2L_INSTALL)/doc/home2l-api_pyth= on/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)/l= ib/$(ARCH) $(DRIVER_BIN) drivers/brownies/Makefile: install -Dp $(STRIP) -m 644 -t $(HOME2L_INSTAL= L)/lib/$(ARCH) $(DRIVER_BIN) drivers/enocean/Makefile: install -Dp $(STRIP) -m 644 -t $$LIB $(DRIVER_B= IN); \ drivers/enocean/Makefile: install -Dp $(STRIP) -m 755 -t $$BIN $(TOOL_BIN= ) drivers/demo/Makefile: install -Dp $(STRIP) -m 644 -t $(HOME2L_INSTALL)/l= ib/$(ARCH) $(DRIVER_BIN) drivers/mpd/Makefile: install -Dp $(STRIP) -m 644 -t $(HOME2L_INSTALL)/li= b/$(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)/l= ib/$(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-sh= owhouse 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)/$(P= YLIB).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.sh 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-fp= c; \ wallclock/Makefile: install -Dp -m 755 -t $(HOME2L_INSTALL)/bin h2l-sysin= fo.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/Makefile: install -Dp -m 644 -t $(HOME2L_INSTALL)/share/sounds = sounds/*.wav; \ wallclock/Makefile: install -Dp -m 644 -T icons/home2l-desktop.png = $(HOME2L_INSTALL)/share/home2l.png; \ - - - Thanks, Axel =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_C207219C-468E-494C-8CE2-0B660EB4F075 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi Dan,

Am 16.03.2022 um 00:15 schrieb Dan Mahoney <freebsd@gushi.org>:



On Mar = 15, 2022, at 3:48 PM, Axel Rau <Axel.Rau@chaos1.de> wrote:

Hi all,

are there any tools available to = convert install statements in Makefiles from Linux to FreeBSD?
The install utilities have different options and I=E2=80=99m = looking for a tool to convert.

= This is the idea behind autoconf, that it detects the various options in = play and then builds you a makefile from a file like Makefile.am

Could you give some sort of example about what = install utilities you're referencing, and a package that fails to do the = above?  It would help explain what it is you're trying to do.

I try to = create a port from:
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.

=E2=80=9Ainstall' = statements in Makefiles:
- - -
=
brownies/Makefile: install -Dp -m 644 -t $(HOME2L_INSTALL)= /share/brownies $(BUILD_DIR_AVR)/*.elf
brow= nies/Makefile: <= /span>install -Dp $(STRIP) -m 755 -t $$BIN $(BROWNIE2L_BIN)
<= div style=3D"margin: 0px; font-stretch: normal; font-size: 11px; = line-height: normal; font-family: Monaco; background-color: rgb(255, = 255, 255);" class=3D"">doc/Makefile: install -Dp -m 644 -t $(HOME2L_INSTAL= L)/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_python/ $(API_PYTHON)/*.*
doc/Makefile: install -Dp -m 644 -t $(HOME2L_INSTA= LL)/doc/home2l-api_python/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_INSTALL)/lib/$(ARCH) $(DRIVER_BIN)
driv= ers/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)
driv= ers/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)
driv= ers/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)
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

--Apple-Mail=_C207219C-468E-494C-8CE2-0B660EB4F075--