Browse Source

debian/rules: Added patch by Aurelien Jarno to support FreeBSD platforms (closes: #461930).

David Martínez Moreno 16 years ago
parent
commit
b884788560
1 changed files with 9 additions and 1 deletions
  1. 9 1
      debian/rules

+ 9 - 1
debian/rules

@@ -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