2009-10-22 22:12:25 +02:00
|
|
|
# $NetBSD: options.mk,v 1.7 2009/10/22 20:12:25 tnn Exp $
|
2007-11-09 12:34:47 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.modular-xorg-server
|
2009-10-22 22:12:25 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= dri inet6 debug
|
2009-06-07 13:23:46 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= dri
|
2007-11-09 12:34:47 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= dri
|
2008-09-18 22:56:01 +02:00
|
|
|
|
2007-12-08 10:23:16 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mdri)
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.dri= yes
|
2009-06-07 13:23:46 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-dri
|
2008-09-18 22:56:01 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-glx
|
|
|
|
CONFIGURE_ARGS+= --enable-aiglx
|
2007-12-08 10:23:16 +01:00
|
|
|
.else
|
2008-09-18 22:56:01 +02:00
|
|
|
###
|
|
|
|
### XXX Perhaps we should allow for a built-in glx without dri enabled?
|
|
|
|
###
|
2009-06-07 13:23:46 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-dri
|
2007-12-08 10:23:16 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-glx
|
|
|
|
.endif
|
|
|
|
|
2007-11-09 12:34:47 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
|
|
.endif
|
2009-10-22 22:12:25 +02:00
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mdebug)
|
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
|
|
CFLAGS+= -ggdb
|
|
|
|
.endif
|