From 2988125fc20693e123b7e47a70c2d27dc288176e Mon Sep 17 00:00:00 2001 From: nia Date: Thu, 8 Apr 2021 13:29:42 +0000 Subject: [PATCH] qemu51: correct path to OSS audio device --- emulators/qemu51/Makefile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/emulators/qemu51/Makefile b/emulators/qemu51/Makefile index 7b2408f51ef9..d150e28c466a 100644 --- a/emulators/qemu51/Makefile +++ b/emulators/qemu51/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.1 2021/02/20 22:55:19 ryoon Exp $ +# $NetBSD: Makefile,v 1.2 2021/04/08 13:29:42 nia Exp $ DISTNAME= qemu-5.1.0 -PKGREVISION= 13 +PKGREVISION= 14 CATEGORIES= emulators MASTER_SITES= https://download.qemu.org/ EXTRACT_SUFX= .tar.xz @@ -93,6 +93,16 @@ REPLACE_PERL+= scripts/texi2pod.pl 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 @@ -160,10 +170,6 @@ post-install: 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"