[BACK]Return to patch-ba CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / audio / nspmod / patches

File: [cvs.NetBSD.org] / pkgsrc / audio / nspmod / patches / patch-ba (download)

Revision 1.6, Fri Jun 3 19:29:54 2011 UTC (9 years, 2 months ago) by shattered
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, HEAD
Changes since 1.5: +2 -2 lines

Fix build on Linux (enable native audio output driver).

$NetBSD: patch-ba,v 1.6 2011/06/03 19:29:54 shattered Exp $

--- Makefile.orig	1995-09-17 13:18:20.000000000 +0000
+++ Makefile
@@ -5,14 +5,14 @@ LIBS_EXT	=
 #{ OS specific part
 
 ## Linux
-CFLAGS_OS = -Wall
+#CFLAGS_OS = -Wall
 #CFLAGS_OS += -DDAC_DEV=\"/dev/dsp2\"
 #CFLAGS_OS += -pedantic
-CFLAGS_OPT = -g
-CFLAGS_HIOPT = -O2 -funroll-loops
-LDFLAGS_OS =
-LIBS_OS =
-DACIO_ARCH = dacio-linux.c
+#CFLAGS_OPT = -g
+#CFLAGS_HIOPT = -O2 -funroll-loops
+#LDFLAGS_OS =
+#LIBS_OS =
+#DACIO_ARCH = dacio-linux.c
 
 ## A certain SVR4.2 based OS
 #CC	= /usr/abiccs/bin/cc
@@ -23,6 +23,20 @@ DACIO_ARCH = dacio-linux.c
 #LIBS_OS =
 #DACIO_ARCH = dacio-ews48.c
 
+## NetBSD
+CFLAGS_OS = -Wall
+CFLAGS_OS += -pedantic
+CFLAGS_OPT = -O2
+CFLAGS_HIOPT = -O2 -funroll-loops
+LDFLAGS_OS =
+LIBS_OS =
+CFLAGS_OS += -DDAC_DEV=\"/dev/audio\"
+.if ${OPSYS} == "DragonFly" || ${OPSYS} == "Linux"
+DACIO_ARCH = dacio-linux.c
+.else
+DACIO_ARCH = dacio-netbsd.c
+.endif
+
 #}
 
 CFLAGS	= $(CFLAGS_OS) $(CFLAGS_OPT) $(CFLAGS_EXT)