blob: 65c4a3e83109fd2d21a29a14c49c3fbe4a30d64c (
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
27
28
29
30
31
|
# $NetBSD: oss.buildlink3.mk,v 1.3 2006/03/10 22:33:24 jlam Exp $
#
# This Makefile fragment is included by packages that require an Open Sound
# System (OSS) implementation.
#
OSS_BUILDLINK3_MK:= ${OSS_BUILDLINK3_MK}+
.include "../../mk/bsd.prefs.mk"
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Noss}
BUILDLINK_PACKAGES+= oss
BUILDLINK_BUILTIN_MK.oss= ../../mk/oss.builtin.mk
.if !empty(OSS_BUILDLINK3_MK:M+)
LIBOSSAUDIO?= ${BUILDLINK_LDADD.oss}
. if (${OPSYS} == "Linux") && exists(/dev/dsp)
DEVOSSAUDIO?= /dev/dsp
DEVOSSSOUND?= /dev/dsp
. else
DEVOSSAUDIO?= /dev/audio
DEVOSSSOUND?= /dev/sound
. endif
CONFIGURE_ENV+= LIBOSSAUDIO=${LIBOSSAUDIO:Q}
CONFIGURE_ENV+= DEVOSSAUDIO=${DEVOSSAUDIO:Q}
CONFIGURE_ENV+= DEVOSSSOUND=${DEVOSSSOUND:Q}
MAKE_ENV+= LIBOSSAUDIO=${LIBOSSAUDIO:Q}
MAKE_ENV+= DEVOSSAUDIO=${DEVOSSAUDIO:Q}
MAKE_ENV+= DEVOSSSOUND=${DEVOSSSOUND:Q}
.endif # OSS_BUILDLINK3_MK
|