emulators/wine-devel: Allow choosing between OSS and ALSA

Our Wine ports have solely relied on OSS for sound so far. Add
support to optionally switch to ALSA by establishing two options,
OSS and ALSA.

This does not change default behavior (and packages created), rather
it adds the ability to choose. It particularly may prove beneficial
for USB MIDI keyboards.

Submitted by:	hselasky
Approved by:	damjan.jov@gmail.com (maintainer)
This commit is contained in:
Gerald Pfeifer
2022-04-18 14:18:19 +00:00
parent 1a6d3da28d
commit ce1e733047

View File

@@ -33,7 +33,6 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--verbose \
--disable-kerberos \
--disable-tests \
--without-alsa \
--without-capi \
--without-coreaudio \
--without-dbus \
@@ -47,7 +46,6 @@ CONFIGURE_ARGS+=--verbose \
--without-netapi \
--without-opencl \
--without-osmesa \
--with-oss \
--with-pcap \
--with-pthread \
--without-pulse \
@@ -72,7 +70,9 @@ SUB_FILES= pkg-message
PORTDATA= wine.inf
OPTIONS_DEFINE= CUPS DOCS DOSBOX GNUTLS LDAP OPENAL STAGING V4L WINEMAKER X11 GECKO MONO
OPTIONS_DEFAULT=GNUTLS OPENAL X11
OPTIONS_DEFAULT=GNUTLS OPENAL OSS X11
OPTIONS_RADIO= AUDIO
OPTIONS_RADIO_AUDIO= ALSA OSS
OPTIONS_SUB= yes
DOSBOX_DESC= Use DOSBox to run MS-DOS programs
@@ -81,6 +81,9 @@ WINEMAKER_DESC= Fully support winemaker (requires Perl)
GECKO_DESC= Bundle Gecko MSI package for Wine
MONO_DESC= Bundle Mono MSI package for Wine
ALSA_CONFIGURE_ON= --with-alsa --without-oss
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
CUPS_CONFIGURE_WITH= cups
CUPS_LIB_DEPENDS= libcups.so:print/cups
@@ -99,6 +102,8 @@ MONO_RUN_DEPENDS= wine-mono-devel>0:emulators/wine-mono-devel
OPENAL_CONFIGURE_WITH= openal
OPENAL_USES= openal
OSS_CONFIGURE_ON= --without-alsa --with-oss
STAGING_MASTER_SITES= https://github.com/wine-staging/wine-staging/archive/:staging
STAGING_DIST= v${DISTVERSION}.tar.gz
STAGING_DISTFILES= ${STAGING_DIST}:staging