aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2006-07-05 21:14:37 +0800
committerdanfe <danfe@FreeBSD.org>2006-07-05 21:14:37 +0800
commitf7624d90591ee786f51207b5f3b3cf0be2dcd92b (patch)
treee8bef9755edf0ce4eff6fad4ef03f8dd26b157a8 /games
parent531f92768a83200b960cee3b108a9794b61ba118 (diff)
downloadfreebsd-ports-gnome-f7624d90591ee786f51207b5f3b3cf0be2dcd92b.tar.gz
freebsd-ports-gnome-f7624d90591ee786f51207b5f3b3cf0be2dcd92b.tar.zst
freebsd-ports-gnome-f7624d90591ee786f51207b5f3b3cf0be2dcd92b.zip
Provide a knob to disable kqueue support.
Diffstat (limited to 'games')
-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