pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/mednafen mednafen: Link OSS library properly...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ec2ad21c91fb
branches:  trunk
changeset: 424967:ec2ad21c91fb
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Mar 17 10:36:38 2020 +0000

description:
mednafen: Link OSS library properly when SDL2 is compiled without it.

Pointed out by wiz, thanks!

diffstat:

 emulators/mednafen/Makefile |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r d4216b99888a -r ec2ad21c91fb emulators/mednafen/Makefile
--- a/emulators/mednafen/Makefile       Tue Mar 17 10:28:27 2020 +0000
+++ b/emulators/mednafen/Makefile       Tue Mar 17 10:36:38 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2020/03/08 16:49:27 wiz Exp $
+# $NetBSD: Makefile,v 1.29 2020/03/17 10:36:38 nia Exp $
 
 DISTNAME=      mednafen-1.22.2
 PKGREVISION=   1
@@ -22,12 +22,18 @@
 USE_PKGLOCALEDIR=      yes
 INSTALLATION_DIRS=     share/doc/mednafen
 
+.include "../../mk/oss.buildlink3.mk"
+
+.if ${OSS_TYPE} != "none"
 SUBST_CLASSES+=                dsp
 SUBST_STAGE.dsp=       pre-configure
 SUBST_MESSAGE.dsp=     Fixing path to audio device.
 SUBST_FILES.dsp=       src/sexyal/drivers/oss.cpp src/sexyal/sexyal.cpp
 SUBST_SED.dsp=         -e s,/dev/dsp,${DEVOSSAUDIO},
 
+LDFLAGS+=              ${LIBOSSAUDIO}
+.endif
+
 post-install:
        ${INSTALL_DATA} ${WRKSRC}/Documentation/*.html \
                ${DESTDIR}${PREFIX}/share/doc/mednafen
@@ -39,5 +45,4 @@
 .include "../../devel/SDL2/buildlink3.mk"
 .include "../../devel/gettext-lib/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
-.include "../../mk/oss.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index