ソースを参照

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

David Martínez Moreno 17 年 前
コミット
b884788560
1 ファイル変更9 行追加1 行削除
  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