make the flavor conditions easier to read

from a diff by Antti Harri

ok ajacoutot@
This commit is contained in:
simon 2008-05-07 17:34:33 +00:00
parent be78cc3606
commit 6366ed2365

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.19 2008/01/11 16:48:44 ajacoutot Exp $ # $OpenBSD: Makefile,v 1.20 2008/05/07 17:34:33 simon Exp $
COMMENT-main= Quake/Quake-world client COMMENT-main= Quake/Quake-world client
COMMENT-server= Quake world server COMMENT-server= Quake world server
@ -35,35 +35,25 @@ CONFIGURE_ARGS= --enable-release
CONFIGURE_ARGS+= --bindir=/bin CONFIGURE_ARGS+= --bindir=/bin
CONFIGURE_ARGS+= --with-opengl=no --with-opengl-includes=no CONFIGURE_ARGS+= --with-opengl=no --with-opengl-includes=no
BRKFLAVORMSG= choose either sdl, ggi or x11
.if ${FLAVOR:L:Msdl} .if ${FLAVOR:L} == sdl
.if ${FLAVOR:L:Mggi} || ${FLAVOR:L:Mx11}
BROKEN= ${BRKFLAVORMSG}
.endif
WANTLIB+= pthread WANTLIB+= pthread
LIB_DEPENDS-main= SDL::devel/sdl LIB_DEPENDS-main= SDL::devel/sdl
CONFIGURE_ARGS+= --with-sdl=${LOCALBASE} --without-ggi CONFIGURE_ARGS+= --with-sdl=${LOCALBASE} --without-ggi
MAKE_FLAGS= HAS_X11=no MAKE_FLAGS= HAS_X11=no
CFLAGS+= -pthread CFLAGS+= -pthread
.elif ${FLAVOR:L:Mggi} .elif ${FLAVOR:L} == ggi
.if ${FLAVOR:L:Msdl} || ${FLAVOR:L:Mx11}
BROKEN= ${BRKFLAVORMSG}
.endif
WANTLIB+= pthread WANTLIB+= pthread
LIB_DEPENDS-main= ggi::graphics/ggi LIB_DEPENDS-main= ggi::graphics/ggi
CONFIGURE_ARGS+= --with-ggi=${LOCALBASE} --without-sdl CONFIGURE_ARGS+= --with-ggi=${LOCALBASE} --without-sdl
MAKE_FLAGS= HAS_X11=no MAKE_FLAGS= HAS_X11=no
CFLAGS+= -pthread CFLAGS+= -pthread
.elif ${FLAVOR:L:Mx11} .elif ${FLAVOR:L} == x11
.if ${FLAVOR:L:Mggi} || ${FLAVOR:L:Msdl}
BROKEN= ${BRKFLAVORMSG}
.endif
CONFIGURE_ARGS+= --without-sdl --without-ggi CONFIGURE_ARGS+= --without-sdl --without-ggi
MAKE_FLAGS= MAKE_FLAGS=
WANTLIB-main= c m X11 Xext WANTLIB-main= c m X11 Xext
.else .else
ERRORS="Need some non empty flavor" BROKEN= choose either sdl, ggi or x11
.endif .endif
WRKDIST= ${WRKDIR}/quakeforge WRKDIST= ${WRKDIR}/quakeforge