pkgsrc-wip/gl/options.mk
Pierre Allegraud 2bf9bcd7b1 Import gl-7.7 as wip/gl.
This is the libGL part of Mesa.

MesaLib is a 3-D graphics library with an API which is very similar to
that of OpenGL*.  To the extent that Mesa utilizes the OpenGL command syntax
or state machine, it is being used with authorization from Silicon Graphics,
Inc.  However, the author makes no claim that Mesa is in any way a
compatible replacement for OpenGL or associated with Silicon Graphics, Inc.
2010-01-03 14:32:17 +00:00

55 lines
1.5 KiB
Makefile

# $NetBSD: options.mk,v 1.1.1.1 2010/01/03 14:32:17 pallegra Exp $
.include "../../mk/bsd.prefs.mk"
PKG_OPTIONS_VAR= PKG_OPTIONS.gl
PKG_SUPPORTED_OPTIONS=
###
### XXX There are [probably] others, but let's not get crazy just yet.
### This will take a while to test for the myriad platforms we
### support.
###
.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \
${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc" || \
${MACHINE_ARCH} == "sparc64") && \
((${OPSYS} == "NetBSD" && ${X11_TYPE} == "modular") || \
${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" || \
${OPSYS} == "DragonFly" || ${OPSYS} == "Linux")
PKG_SUPPORTED_OPTIONS+= dri
.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-[4-9]*-*86*) && ${X11_TYPE} == "modular"
PKG_SUGGESTED_OPTIONS+= dri
.endif
.if ${OPSYS} == "DragonFly"
PKG_SUGGESTED_OPTIONS+= dri
.endif
# Assembler code build configurations
.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \
${OPSYS} != "SunOS" && ${OPSYS} != "Darwin"
PKG_SUPPORTED_OPTIONS+= asm
PKG_SUGGESTED_OPTIONS+= asm
.endif
.include "../../mk/bsd.options.mk"
PLIST_VARS+= nodri
.if !empty(PKG_OPTIONS:Masm)
CONFIGURE_ARGS+= --enable-asm
LDFLAGS+= -Wl,-Bsymbolic
.else
CONFIGURE_ARGS+= --disable-asm
.endif
.if !empty(PKG_OPTIONS:Mdri)
CONFIGURE_ARGS+= --with-driver=dri
. include "dri.mk"
.else
CONFIGURE_ARGS+= --with-driver=xlib
MAKE_JOBS_SAFE= no
PLIST.nodri= yes
INSTALL_TARGET+= install-osmesa
.endif