Skip to content

Commit 518e6b5

Browse files
committed
d/configure: Embrace also FreeBSD
1 parent 6fac0a6 commit 518e6b5

1 file changed

Lines changed: 21 additions & 14 deletions

File tree

debian/configure

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
# dpkg configuration script for linuxcnc
3-
# Copyright (C) 2006 Jeff Epler
3+
# Copyright (C) 2006 Jeff Epler
4+
# 2025-2026 Steffen Moeller
45
#
56
# This program is free software; you can redistribute it and/or modify
67
# it under the terms of the GNU General Public License as published by
@@ -13,23 +14,29 @@
1314
set -e
1415

1516
if [[ -z "$OSTYPE" ]]; then
16-
echo "W: The 'OSTYPE' environment variable is not set."
17+
echo "E: The 'OSTYPE' environment variable is not set."
1718
echo " Failure to confirm Linux as the operating system cannot be determined."
18-
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
19-
echo "I: Found operating system '$OSTYPE'."
19+
exit 1
2020
else
21-
echo "W: LinuxCNC is not (yet) prepared for the operating system '$OSTYPE'."
22-
echo " Instead of this Debian+derivative-tailored configuration please invoke the compilation directly."
23-
if [[ "$OSTYPE" == "darwin"* ]]; then
24-
echo
25-
echo " LinuxCNC is yet unlikely to be successfully built on MacOS because of missing dependencies."
26-
if command -v brew &> /dev/null; then
27-
echo " With brew, we are aware of packages"
28-
echo " autoconf automake libusb libmodbus libtircp pkgconf"
29-
echo " but missing is, e.g., a package for libgpiod."
21+
echo "D: Found operating system '$OSTYPE'."
22+
if [[ ! "$OSTYPE" == "linux-gnu"* ]]; then
23+
echo "W: LinuxCNC is not (yet) prepared for the operating system '$OSTYPE'."
24+
if [[ "$OSTYPE" == "freebsd"* ]]; then
25+
echo " For FreeBSD there have been reports for LinuxCNC to compile and be executable."
26+
else
27+
if [[ "$OSTYPE" == "darwin"* ]]; then
28+
echo
29+
echo " LinuxCNC is yet unlikely to be successfully built on MacOS because of missing dependencies."
30+
if command -v brew &> /dev/null; then
31+
echo " With brew, we are aware of packages"
32+
echo " autoconf automake libusb libmodbus libtircp pkgconf"
33+
echo " but missing is, e.g., a package for libgpiod."
34+
fi
35+
fi
3036
fi
37+
echo " Instead of this Debian+derivative-tailored configuration please invoke the compilation directly."
38+
exit 1
3139
fi
32-
exit 1;
3340
fi
3441

3542
usage () {

0 commit comments

Comments
 (0)