summaryrefslogtreecommitdiff
path: root/emulators/snes9x/options.mk
blob: fbd35b6f38320ad0b42b0c99a1626229d14d3d93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $NetBSD: options.mk,v 1.1 2022/05/03 17:09:19 nia Exp $

PKG_OPTIONS_VAR=		PKG_OPTIONS.snes9x
PKG_SUPPORTED_OPTIONS=		alsa

.include "../../mk/bsd.fast.prefs.mk"
.include "../../mk/oss.buildlink3.mk"

.if ${OPSYS} == "Linux" || ${OSS_TYPE} == "none"
PKG_SUGGESTED_OPTIONS=		alsa
.endif

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Malsa)
CONFIGURE_ARGS+=	--enable-sound-alsa
.  include "../../audio/alsa-lib/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--enable-sound

SUBST_CLASSES+=		oss
SUBST_STAGE.oss=	pre-configure
SUBST_MESSAGE.oss=	Correct path to OSS device.
SUBST_FILES.oss+=	unix/unix.cpp
SUBST_SED.oss=		-e "s,/dev/dsp,${DEVOSSAUDIO},g"
.endif