pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/qemu qemu: correct path to OSS audio device



details:   https://anonhg.NetBSD.org/pkgsrc/rev/46b30ba191d4
branches:  trunk
changeset: 449975:46b30ba191d4
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Apr 08 13:18:04 2021 +0000

description:
qemu: correct path to OSS audio device

diffstat:

 emulators/qemu/Makefile |  18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diffs (41 lines):

diff -r 62391ee4bdb1 -r 46b30ba191d4 emulators/qemu/Makefile
--- a/emulators/qemu/Makefile   Thu Apr 08 13:14:51 2021 +0000
+++ b/emulators/qemu/Makefile   Thu Apr 08 13:18:04 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.272 2021/04/08 13:10:18 nia Exp $
+# $NetBSD: Makefile,v 1.273 2021/04/08 13:18:04 nia Exp $
 
 DISTNAME=      qemu-5.2.0
-PKGREVISION=   5
+PKGREVISION=   6
 CATEGORIES=    emulators
 MASTER_SITES=  https://download.qemu.org/
 EXTRACT_SUFX=  .tar.xz
@@ -91,6 +91,16 @@
 
 INSTALLATION_DIRS=     ${PKGMANDIR}/man1 share/doc/qemu
 
+.include "../../mk/oss.buildlink3.mk"
+
+.if ${OSS_TYPE} != "none"
+SUBST_CLASSES+=                oss
+SUBST_STAGE.oss=       pre-configure
+SUBST_MESSAGE.oss=     Correcting the path to the OSS device.
+SUBST_FILES.oss+=      audio/ossaudio.c
+SUBST_SED.oss+=                -e "s,/dev/dsp,${DEVOSSAUDIO},g"
+.endif
+
 UE_ARCHS+=             aarch64 aarch64_be
 UE_ARCHS+=             alpha arm armeb cris
 UE_ARCHS+=             hppa
@@ -165,10 +175,6 @@
        cd ${DESTDIR}${PREFIX} && \
        ${FIND} share/doc/qemu -path '*/_static/*' -type f -print > ${WRKDIR}/PLIST.STATIC
 
-# On Darwin, qemu uses CoreAudio
-.if ${OPSYS} != "Darwin"
-.include "../../mk/oss.buildlink3.mk"
-.endif
 .include "../../archivers/lzo/buildlink3.mk"
 .include "../../devel/glib2/buildlink3.mk"
 .include "../../devel/jemalloc/buildlink3.mk"



Home | Main Index | Thread Index | Old Index