src.opts: Introduce MK_SOUND

PR:		291853
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Reviewed by:	zarychtam_plan-b.pwste.edu.pl, markj
Differential Revision:	https://reviews.freebsd.org/D54456
This commit is contained in:
Christos Margiolis
2026-01-12 16:16:35 +02:00
parent eccd366b0a
commit f74f891581
8 changed files with 38 additions and 10 deletions
+2 -1
View File
@@ -176,7 +176,6 @@ SUBDIR+= clang
.endif .endif
SUBDIR.${MK_CUSE}+= libcuse SUBDIR.${MK_CUSE}+= libcuse
SUBDIR.${MK_CUSE}+= virtual_oss
SUBDIR.${MK_TOOLCHAIN}+=libpe SUBDIR.${MK_TOOLCHAIN}+=libpe
SUBDIR.${MK_DIALOG}+= libdpv libfigpar SUBDIR.${MK_DIALOG}+= libdpv libfigpar
SUBDIR.${MK_FDT}+= libfdt SUBDIR.${MK_FDT}+= libfdt
@@ -238,6 +237,8 @@ SUBDIR.${MK_PMC}+= libpmc libpmcstat
SUBDIR.${MK_RADIUS_SUPPORT}+= libradius SUBDIR.${MK_RADIUS_SUPPORT}+= libradius
SUBDIR.${MK_SENDMAIL}+= libmilter libsm libsmdb libsmutil SUBDIR.${MK_SENDMAIL}+= libmilter libsm libsmdb libsmutil
SUBDIR.${MK_TELNET}+= libtelnet SUBDIR.${MK_TELNET}+= libtelnet
SUBDIR.${MK_SOUND}+= libmixer
SUBDIR.${MK_SOUND}+= virtual_oss
SUBDIR.${MK_TESTS_SUPPORT}+= atf SUBDIR.${MK_TESTS_SUPPORT}+= atf
SUBDIR.${MK_TESTS_SUPPORT}+= liblutok SUBDIR.${MK_TESTS_SUPPORT}+= liblutok
SUBDIR.${MK_TESTS}+= tests SUBDIR.${MK_TESTS}+= tests
+4 -3
View File
@@ -301,9 +301,10 @@ CONFGROUPS.${MK_VI}+= VI
VIPACKAGE= vi VIPACKAGE= vi
VI= virecover VI= virecover
CONFGROUPS.${MK_CUSE}+= VOSS CONFGROUPS.${MK_SOUND}+= SOUND
VOSSPACKAGE= sound SOUNDPACKAGE= sound
VOSS= virtual_oss SOUND= mixer \
virtual_oss
CONFGROUPS.${MK_WIRELESS}+= HOSTAPD CONFGROUPS.${MK_WIRELESS}+= HOSTAPD
HOSTAPDPACKAGE= hostapd HOSTAPDPACKAGE= hostapd
+7 -5
View File
@@ -32,11 +32,6 @@ CONSOLEDIR= ${DEVDDIR}
CONSOLE+= moused.conf syscons.conf CONSOLE+= moused.conf syscons.conf
CONSOLEPACKAGE= console-tools CONSOLEPACKAGE= console-tools
CONFGROUPS+= SND
SNDDIR= ${DEVDDIR}
SND= snd.conf
SNDPACKAGE= sound
.if ${MK_BLUETOOTH} != "no" .if ${MK_BLUETOOTH} != "no"
CONFGROUPS+= BLUETOOTH CONFGROUPS+= BLUETOOTH
BLUETOOTHDIR= ${DEVDDIR} BLUETOOTHDIR= ${DEVDDIR}
@@ -56,6 +51,13 @@ NVMEDIR= ${DEVDDIR}
NVME+= nvmf.conf NVME+= nvmf.conf
NVMEPACKAGE= nvme-tools NVMEPACKAGE= nvme-tools
.if ${MK_SOUND} != "no"
CONFGROUPS+= SND
SNDDIR= ${DEVDDIR}
SND= snd.conf
SNDPACKAGE= sound
.endif
.if ${MK_USB} != "no" .if ${MK_USB} != "no"
DEVD+= uath.conf ulpt.conf DEVD+= uath.conf ulpt.conf
.endif .endif
+6
View File
@@ -172,6 +172,7 @@ __DEFAULT_YES_OPTIONS = \
SERVICESDB \ SERVICESDB \
SETUID_LOGIN \ SETUID_LOGIN \
SHAREDOCS \ SHAREDOCS \
SOUND \
SOURCELESS \ SOURCELESS \
SOURCELESS_HOST \ SOURCELESS_HOST \
SOURCELESS_UCODE \ SOURCELESS_UCODE \
@@ -500,6 +501,11 @@ MK_CLANG_FULL:= no
MK_LLVM_COV:= no MK_LLVM_COV:= no
.endif .endif
# CUSE is needed only by virtual_oss, but virtual_oss is part of MK_SOUND.
.if ${MK_CUSE} == "no"
MK_SOUND:= no
.endif
.if ${MK_ASAN} == "yes" .if ${MK_ASAN} == "yes"
# In order to get sensible backtraces from ASAN we have to install # In order to get sensible backtraces from ASAN we have to install
# llvm-symbolizer as /usr/bin/addr2line instead of the elftoolchain version. # llvm-symbolizer as /usr/bin/addr2line instead of the elftoolchain version.
+13
View File
@@ -7387,6 +7387,19 @@ OLD_DIRS+=var/spool/clientmqueue
OLD_FILES+=var/db/services.db OLD_FILES+=var/db/services.db
.endif .endif
.if ${MK_SOUND} == no
OLD_DIRS+=lib/mixer
OLD_DIRS+=lib/virtual_oss
OLD_DIRS+=usr.bin/beep
OLD_DIRS+=usr.bin/mididump
OLD_DIRS+=usr.sbin/mixer
OLD_DIRS+=usr.sbin/sndctl
OLD_DIRS+=usr.sbin/virtual_oss
OLD_FILES+=libexec/rc/rc.d/mixer
OLD_FILES+=libexec/rc/rc.d/virtual_oss
OLD_FILES+=sbin/devd/snd.conf
.endif
.if ${MK_NUAGEINIT} == no .if ${MK_NUAGEINIT} == no
OLD_FILES+=etc/rc.d/nuageinit OLD_FILES+=etc/rc.d/nuageinit
OLD_FILES+=usr/libexec/nuageinit OLD_FILES+=usr/libexec/nuageinit
+1
View File
@@ -0,0 +1 @@
Compile with sound utilities and libraries support.
+2
View File
@@ -240,6 +240,8 @@ SUBDIR.${MK_NIS}+= ypwhich
SUBDIR.${MK_OPENSSH}+= ssh-copy-id SUBDIR.${MK_OPENSSH}+= ssh-copy-id
SUBDIR.${MK_QUOTAS}+= quota SUBDIR.${MK_QUOTAS}+= quota
SUBDIR.${MK_SENDMAIL}+= vacation SUBDIR.${MK_SENDMAIL}+= vacation
SUBDIR.${MK_SOUND}+= beep
SUBDIR.${MK_SOUND}+= mididump
SUBDIR.${MK_TALK}+= talk SUBDIR.${MK_TALK}+= talk
SUBDIR.${MK_TELNET}+= telnet SUBDIR.${MK_TELNET}+= telnet
SUBDIR.${MK_TESTS_SUPPORT}+= kyua SUBDIR.${MK_TESTS_SUPPORT}+= kyua
+3 -1
View File
@@ -131,7 +131,6 @@ SUBDIR.${MK_BSNMP}+= bsnmpd
.if ${MK_CAROOT} != "no" .if ${MK_CAROOT} != "no"
SUBDIR.${MK_OPENSSL}+= certctl SUBDIR.${MK_OPENSSL}+= certctl
.endif .endif
SUBDIR.${MK_CUSE}+= virtual_oss
SUBDIR.${MK_CXGBETOOL}+= cxgbetool SUBDIR.${MK_CXGBETOOL}+= cxgbetool
SUBDIR.${MK_EFI}+= efivar efidp efibootmgr efitable efiwake SUBDIR.${MK_EFI}+= efivar efidp efibootmgr efitable efiwake
.if ${MK_OPENSSL} != "no" .if ${MK_OPENSSL} != "no"
@@ -200,6 +199,9 @@ SUBDIR.${MK_SENDMAIL}+= mailstats
SUBDIR.${MK_SENDMAIL}+= makemap SUBDIR.${MK_SENDMAIL}+= makemap
SUBDIR.${MK_SENDMAIL}+= praliases SUBDIR.${MK_SENDMAIL}+= praliases
SUBDIR.${MK_SENDMAIL}+= sendmail SUBDIR.${MK_SENDMAIL}+= sendmail
SUBDIR.${MK_SOUND}+= mixer
SUBDIR.${MK_SOUND}+= sndctl
SUBDIR.${MK_SOUND}+= virtual_oss
SUBDIR.${MK_TCP_WRAPPERS}+= tcpdchk SUBDIR.${MK_TCP_WRAPPERS}+= tcpdchk
SUBDIR.${MK_TCP_WRAPPERS}+= tcpdmatch SUBDIR.${MK_TCP_WRAPPERS}+= tcpdmatch
SUBDIR.${MK_TOOLCHAIN}+= config SUBDIR.${MK_TOOLCHAIN}+= config