Re: porting Makefiles from Linux

From: Axel Rau <Axel.Rau_at_chaos1.de>
Date: Fri, 25 Mar 2022 11:10:13 UTC
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:
> 	https://github.com/gkiefer/home2l <https://github.com/gkiefer/home2l>
> This is a multi architecture project and has no configure.in <http://configure.in/> or Makefile.am
> Makefiles seem to be handcrafted  by the author or otherwise generated.
> 
> ‚install' 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_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_INSTALL)/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)
> 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.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-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/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
> ---
> PGP-Key: CDE74120  ☀  computing @ chaos claudius
> 

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