@@ -5,9 +5,17 @@
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1
+DEB_BUILD_ARCH_OS ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
+
+ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
+ PLATFORM=freebsd
+else
+ PLATFORM=linux
+endif
build: build-stamp
build-stamp:
- $(MAKE)
+ $(MAKE) PLATFORM=$(PLATFORM)
touch build-stamp
install: build