diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index 2b8f7e2..76c0336 100755 --- a/debian/rules +++ b/debian/rules @@ -10,6 +10,15 @@ export DH_OPTIONS # export DEB_BUILD_MAINT_OPTIONS = hardening=+all +# Platform-specific features +DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) + +ifneq ($(DEB_HOST_ARCH_OS),linux) + # USB implementation is Linux-specific + extra_config_opts += --disable-intf-usb +endif + + %: dh $@ --with systemd,autoreconf @@ -31,4 +40,4 @@ override_dh_systemd_enable: dh_systemd_enable --no-enable ipmievd.service override_dh_auto_configure: - dh_auto_configure -- --prefix=/usr --with-kerneldir --mandir=/usr/share/man + dh_auto_configure -- --prefix=/usr --with-kerneldir --mandir=/usr/share/man $(extra_config_opts) |