pkgsrc-Changes archive

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

CVS commit: pkgsrc/emulators/mednafen



Module Name:    pkgsrc
Committed By:   nia
Date:           Tue Mar 17 10:36:38 UTC 2020

Modified Files:
        pkgsrc/emulators/mednafen: Makefile

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

Pointed out by wiz, thanks!


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 pkgsrc/emulators/mednafen/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/emulators/mednafen/Makefile
diff -u pkgsrc/emulators/mednafen/Makefile:1.28 pkgsrc/emulators/mednafen/Makefile:1.29
--- pkgsrc/emulators/mednafen/Makefile:1.28     Sun Mar  8 16:49:27 2020
+++ pkgsrc/emulators/mednafen/Makefile  Tue Mar 17 10:36:38 2020
@@ -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_LIBTOOL=                yes
 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 @@ post-install:
 .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