Sun Aug 19 14:37:17 2018 UTC ()
pulseaudio: Check for soundcard.h on Linux.

Hopefully fixes the build on linux systems with OSS headers.


(nia)
diff -r1.130 -r1.131 pkgsrc/audio/pulseaudio/Makefile

cvs diff -r1.130 -r1.131 pkgsrc/audio/pulseaudio/Makefile (expand / switch to unified diff)

--- pkgsrc/audio/pulseaudio/Makefile 2018/07/25 12:15:59 1.130
+++ pkgsrc/audio/pulseaudio/Makefile 2018/08/19 14:37:17 1.131
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.130 2018/07/25 12:15:59 adam Exp $ 1# $NetBSD: Makefile,v 1.131 2018/08/19 14:37:17 nia Exp $
2 2
3DISTNAME= pulseaudio-12.2 3DISTNAME= pulseaudio-12.2
4CATEGORIES= audio 4CATEGORIES= audio
5MASTER_SITES= https://freedesktop.org/software/pulseaudio/releases/ 5MASTER_SITES= https://freedesktop.org/software/pulseaudio/releases/
6EXTRACT_SUFX= .tar.xz 6EXTRACT_SUFX= .tar.xz
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://www.freedesktop.org/wiki/Software/PulseAudio 9HOMEPAGE= http://www.freedesktop.org/wiki/Software/PulseAudio
10COMMENT= Sound server for POSIX and Win32 systems 10COMMENT= Sound server for POSIX and Win32 systems
11LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2 11LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2
12 12
13NOT_FOR_PLATFORM= DragonFly-*-* 13NOT_FOR_PLATFORM= DragonFly-*-*
14 14
@@ -59,26 +59,29 @@ CONFIGURE_ARGS+= --disable-neon-opt @@ -59,26 +59,29 @@ CONFIGURE_ARGS+= --disable-neon-opt
59# fallback to libatomic_ops 59# fallback to libatomic_ops
60.if !(${OPSYS} == "NetBSD" && exists(/usr/include/sys/atomic.h)) 60.if !(${OPSYS} == "NetBSD" && exists(/usr/include/sys/atomic.h))
61.include "../../devel/libatomic_ops/buildlink3.mk" 61.include "../../devel/libatomic_ops/buildlink3.mk"
62.endif 62.endif
63 63
64PLIST_SUBST+= PULSELIBVER=12.0 64PLIST_SUBST+= PULSELIBVER=12.0
65PLIST_VARS+= alsa bonjour coreaudio evdev oss sun 65PLIST_VARS+= alsa bonjour coreaudio evdev oss sun
66 66
67# Build module-mmkbd-evdev.so under Linux 67# Build module-mmkbd-evdev.so under Linux
68.if ${OPSYS} == "Linux" 68.if ${OPSYS} == "Linux"
69. if exists(/usr/include/linux/input.h) 69. if exists(/usr/include/linux/input.h)
70PLIST.evdev= yes 70PLIST.evdev= yes
71. endif 71. endif
 72. if exists(/usr/include/linux/soundcard.h)
 73PLIST.oss= yes
 74. endif
72PLIST.alsa= yes 75PLIST.alsa= yes
73.include "../../audio/alsa-lib/buildlink3.mk" 76.include "../../audio/alsa-lib/buildlink3.mk"
74.elif ${OPSYS} == "SunOS" 77.elif ${OPSYS} == "SunOS"
75USE_LANGUAGES+= c99 78USE_LANGUAGES+= c99
76PLIST.sun= yes 79PLIST.sun= yes
77. if ${OS_VERSION} == "5.11" 80. if ${OS_VERSION} == "5.11"
78PLIST.oss= yes 81PLIST.oss= yes
79. endif 82. endif
80.elif ${OPSYS} == "Darwin" 83.elif ${OPSYS} == "Darwin"
81PLIST.bonjour= yes 84PLIST.bonjour= yes
82PLIST.coreaudio= yes 85PLIST.coreaudio= yes
83.else 86.else
84PLIST.oss= yes 87PLIST.oss= yes