blob: 296c3a4701d4603462c135432a2ebd148b24f847 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
$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
|