pkgsrc/audio/mad123/patches/patch-ac
joerg 6140c8857f Add DragonFly support. Make the options more useful by allowing full
selection of output. This adds oss and sun. By default, oss and sun
are now active on all platforms, but DraognFly. Bump the revision
to annotate that.
2005-11-11 18:58:18 +00:00

40 lines
727 B
Text

$NetBSD: patch-ac,v 1.1 2005/11/11 18:58:18 joerg Exp $
--- Makefile.orig 2004-10-21 13:03:25.000000000 +0000
+++ Makefile
@@ -19,7 +19,6 @@
PROG= mad123
SRCS= mad123.c mp3_stream.c audio_dev.c
-SRCS+= audio_dev_sun.c audio_dev_pcm.c
BINDIR?=/usr/local/bin
@@ -29,6 +28,8 @@ USE_CURL?=yes
USE_TAGLIB?=yes
USE_ID3LIB?=no
USE_ARTS?=no
+USE_SUN?=no
+USE_OSS?=no
.if ${USE_CURL} != "no"
CURLLIB= -lcurl
@@ -50,6 +51,18 @@ CPPFLAGS+= -DNOID3LIB
.endif
.endif # USE_TAGLIB
+.if ${USE_SUN} != "no"
+SRCS += audio_dev_sun.c
+.else
+CPPFLAGS+= -DNOSUN
+.endif
+
+.if ${USE_OSS} != "no"
+SRCS+= audio_dev_pcm.c
+.else
+CPPFLAGS+= -DNOOSS
+.endif
+
.if ${USE_ARTS} != "no"
ARTSLIB= -lartsc
SRCS+= audio_dev_arts.c