On Sat, 23 May 2026, Philipp wrote:
HiWhen building on FreeBSD you need additional LDFLAGS and CPPFLAGS which includes the localbase. For simpler setup the configure.ac contains a check for FreeBSD and adds the localbase to the compiler flags. The problem is the command to find the localbase assumes the portstree is availible. When the portstree is not availible the configure script fails while checking for connect. So the command is:echo '.include <bsd.port.mk>' | make -k -f /dev/stdin -V LOCALBASE
nmh uses GNU make which is not really compatible with the BSD make except for some very simple Makefiles. There are three solutions to this: 1) Use the nmh port from the FreeBSD ports collection (this is what I do) 2) Use GNU make (installed from FreeBSD ports/packages or otherwsie as "gmake")3) Prepare BSDmakefile and add it to the repository. <bsd.port.mk> is a part of FreeBSD ports infrastructure so it is pretty normal
it requires the ports tree to be available. <bsd.prog.mk> and others from /usr/share/mk could be used to build, but this may require some restructuring, such as having one program per makefile or directory. Bonus points: there would be no need to use autoconf at all for this build, as BSD make is much more high level than GNU makefile. This could even make to work in parallel and be commited to the repo as a set of BSDmakefiles living along the autoconf templates. Hope this helps a bit, Marcin
smime.p7s
Description: S/MIME Cryptographic Signature
