c5660cd669
This fixes creating a GL context with r600_dri (and probably other drivers) on NetBSD with native X, where otherwise missing libxcb symbol errors happen. Programs this unbreaks include fasttracker2, mednafen. Programs this doesn't unbreak include nestopia (uses libepoxy). This is a workaround, but we're already doing the same in the SDL1 package... Bump PKGREVISION.
93 lines
2.1 KiB
Makefile
93 lines
2.1 KiB
Makefile
# $NetBSD: options.mk,v 1.12 2019/05/27 17:21:01 nia Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.SDL2
|
|
PKG_OPTIONS_REQUIRED_GROUPS= gl
|
|
PKG_SUPPORTED_OPTIONS= alsa dbus esound nas oss jack pulseaudio x11
|
|
PKG_OPTIONS_GROUP.gl= opengl
|
|
PKG_SUGGESTED_OPTIONS+= oss
|
|
PKG_SUGGESTED_OPTIONS.Linux+= alsa
|
|
|
|
.if ${OPSYS} != "Darwin"
|
|
PKG_SUGGESTED_OPTIONS+= x11
|
|
.endif
|
|
|
|
.include "../../mk/bsd.fast.prefs.mk"
|
|
|
|
.if !empty(MACHINE_ARCH:M*arm*)
|
|
PKG_OPTIONS_GROUP.gl+= rpi
|
|
PKG_SUGGESTED_OPTIONS+= rpi
|
|
.else
|
|
PKG_SUGGESTED_OPTIONS+= opengl
|
|
.endif
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Malsa)
|
|
.include "../../audio/alsa-lib/buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-alsa
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mdbus)
|
|
.include "../../sysutils/dbus/buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-dbus
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mesound)
|
|
.include "../../audio/esound/buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-esd
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mjack)
|
|
.include "../../audio/jack/buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-jack
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mnas)
|
|
.include "../../audio/nas/buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-nas
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mopengl)
|
|
. if ${OPSYS} != "Darwin"
|
|
.include "../../graphics/MesaLib/buildlink3.mk"
|
|
. endif
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-video-opengl
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Moss)
|
|
.include "../../mk/oss.buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-oss
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mpulseaudio)
|
|
.include "../../audio/pulseaudio/buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-pulseaudio
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mx11)
|
|
.include "../../x11/libXScrnSaver/buildlink3.mk"
|
|
.include "../../x11/libXcursor/buildlink3.mk"
|
|
.include "../../x11/libXi/buildlink3.mk"
|
|
.include "../../x11/libXinerama/buildlink3.mk"
|
|
.include "../../x11/libXrandr/buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-video-x11
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mrpi)
|
|
LOWER_VENDOR= raspberry
|
|
SUBST_CLASSES+= vc
|
|
SUBST_STAGE.vc= pre-configure
|
|
SUBST_MESSAGE.vc= Fixing path to VideoCore libraries.
|
|
SUBST_FILES.vc= configure
|
|
SUBST_SED.vc+= -e "s;/opt/vc;${PREFIX};g"
|
|
.include "../../misc/raspberrypi-userland/buildlink3.mk"
|
|
.endif
|