aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/mvdsv/Makefile3
-rw-r--r--games/mvdsv/files/Makefile4
2 files changed, 7 insertions, 0 deletions
diff --git a/games/mvdsv/Makefile b/games/mvdsv/Makefile
index 1b69aa99bdc2..0ac6eca66f8d 100644
--- a/games/mvdsv/Makefile
+++ b/games/mvdsv/Makefile
@@ -34,6 +34,9 @@ MAKE_ARGS+= BYTE_ORDER=__BIG_ENDIAN__
.endif
pre-everything::
+.if !defined(WITHOUT_KQUEUE)
+ @${ECHO_MSG} "Define WITHOUT_KQUEUE to disable Kqueue support"
+.endif
.if !defined(WITH_OPTIMIZED_CFLAGS)
@${ECHO_MSG} "Define WITH_OPTIMIZED_CFLAGS to enable extra optimization options"
.endif
diff --git a/games/mvdsv/files/Makefile b/games/mvdsv/files/Makefile
index e3b1fd0bf8f9..f277556e33ed 100644
--- a/games/mvdsv/files/Makefile
+++ b/games/mvdsv/files/Makefile
@@ -14,6 +14,10 @@
DO_CFLAGS = ${CFLAGS} -funsigned-char -I${LOCALBASE}/include -Dstricmp=strcasecmp \
-DSERVERONLY -DUSE_PR2 -D${BYTE_ORDER}Q__
+.if !defined(WITHOUT_KQUEUE)
+DO_CFLAGS+= -DKQUEUE
+.endif
+
.if ${ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
DO_CFLAGS += -Did386
.endif