#! /bin/sh /usr/share/dpatch/dpatch-run
## 10_detec_gnu-kfreebsd.dpatch by Bruno "Fuddl" Kleinert <fuddl@tauware.de>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix OS detection of darkplaces' makefile to not think it's on BSD on GNU/kFreeBSD
@DPATCH@
diff -urNad nexuiz-2.2.1~/makefile nexuiz-2.2.1/makefile
--- nexuiz-2.2.1~/makefile 2006-12-05 14:12:52.000000000 +0100
+++ nexuiz-2.2.1/makefile 2006-12-26 12:24:24.637350250 +0100
@@ -9,6 +9,10 @@
# UNIXes
DP_ARCH:=$(shell uname)
+ifeq ($(DP_ARCH), GNU/kFreeBSD)
+ # same userspace as Linux, not a BSDish one
+ DP_MAKE_TARGET=linux
+else
ifneq ($(filter %BSD,$(DP_ARCH)),)
DP_MAKE_TARGET=bsd
else
@@ -23,6 +27,7 @@
endif # ifeq ($(DP_ARCH), SunOS)
endif # ifeq ($(DP_ARCH), Darwin)
endif # ifneq ($(filter %BSD,$(DP_ARCH)),)
+endif # ifeq ($(DP_ARCH), GNU/kFreeBSD)
endif # ifdef windir
endif # ifndef DP_MAKE_TARGET