summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2005-11-11 18:58:18 +0000
committerjoerg <joerg@pkgsrc.org>2005-11-11 18:58:18 +0000
commit6140c8857f4fcce36e2f4db6cb373e8a93b2e807 (patch)
treea26ea1c741bb8bd951cdf93d750aa8ddfd33f582 /audio
parentc27f4ed5e11b4c35ae0566ee5b6390dba302b6b1 (diff)
downloadpkgsrc-6140c8857f4fcce36e2f4db6cb373e8a93b2e807.tar.gz
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.
Diffstat (limited to 'audio')
-rw-r--r--audio/mad123/Makefile16
-rw-r--r--audio/mad123/distinfo5
-rw-r--r--audio/mad123/patches/patch-aa12
-rw-r--r--audio/mad123/patches/patch-ab28
-rw-r--r--audio/mad123/patches/patch-ac40
5 files changed, 98 insertions, 3 deletions
diff --git a/audio/mad123/Makefile b/audio/mad123/Makefile
index cb444639786..0128d7db4d7 100644
--- a/audio/mad123/Makefile
+++ b/audio/mad123/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.15 2005/06/16 06:57:39 jlam Exp $
+# $NetBSD: Makefile,v 1.16 2005/11/11 18:58:18 joerg Exp $
#
DISTNAME= mad123-0.8.5
+PKGREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://www.mctavish.co.uk/mad123/
@@ -9,8 +10,14 @@ MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.mctavish.co.uk/mad123/
COMMENT= Command-line MPEG audio player
+.include "../../mk/bsd.prefs.mk"
+
PKG_OPTIONS_VAR= PKG_OPTIONS.mad123
-PKG_SUPPORTED_OPTIONS= arts oss
+PKG_SUPPORTED_OPTIONS= arts oss sun
+PKG_DEFAULT_OPTIONS+= oss
+.if ${OPSYS} != "DragonFly"
+PKG_DEFAULT_OPTIONS+= sun
+.endif
.include "../../mk/bsd.options.mk"
@@ -20,9 +27,14 @@ MAKE_FLAGS+= USE_ARTS=yes
.endif
.if !empty(PKG_OPTIONS:Moss)
+MAKE_FLAGS+= USE_OSS=yes
. include "../../mk/ossaudio.buildlink3.mk"
.endif
+.if !empty(PKG_OPTIONS:Msun)
+MAKE_FLAGS+= USE_SUN=yes
+.endif
+
INSTALLATION_DIRS= bin man/man1
do-install:
diff --git a/audio/mad123/distinfo b/audio/mad123/distinfo
index f212f33e560..5645420b590 100644
--- a/audio/mad123/distinfo
+++ b/audio/mad123/distinfo
@@ -1,5 +1,8 @@
-$NetBSD: distinfo,v 1.5 2005/02/23 20:39:48 agc Exp $
+$NetBSD: distinfo,v 1.6 2005/11/11 18:58:18 joerg Exp $
SHA1 (mad123-0.8.5.tar.gz) = 97c5d6185a54e2262d52a687ff3a3714ff260af8
RMD160 (mad123-0.8.5.tar.gz) = bd2bf0b79a3c9d3513583daccdfc182a2d17cc41
Size (mad123-0.8.5.tar.gz) = 24836 bytes
+SHA1 (patch-aa) = 16aecc1f75178cb62bca7d5012cea4dffe393f9c
+SHA1 (patch-ab) = eea40969ca88bd65666aada085742a3bdd5d9eba
+SHA1 (patch-ac) = 7c150b2f15cbc00876c8619b80ee29c73b0b71df
diff --git a/audio/mad123/patches/patch-aa b/audio/mad123/patches/patch-aa
new file mode 100644
index 00000000000..4d0684a8ab9
--- /dev/null
+++ b/audio/mad123/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1 2005/11/11 18:58:18 joerg Exp $
+
+--- mad123.c.orig 2005-11-11 18:19:59.000000000 +0000
++++ mad123.c
+@@ -20,6 +20,7 @@
+ */
+
+ #include <sys/types.h>
++#include <sys/stat.h>
+ #include <sys/time.h>
+ #include <sys/resource.h>
+ #include <sys/poll.h>
diff --git a/audio/mad123/patches/patch-ab b/audio/mad123/patches/patch-ab
new file mode 100644
index 00000000000..890ac97f398
--- /dev/null
+++ b/audio/mad123/patches/patch-ab
@@ -0,0 +1,28 @@
+$NetBSD: patch-ab,v 1.1 2005/11/11 18:58:18 joerg Exp $
+
+--- audio_dev.c.orig 2004-09-22 09:23:43.000000000 +0000
++++ audio_dev.c
+@@ -43,6 +43,10 @@
+ #undef WORDS_BIGENDIAN
+ #endif
+
++#ifdef __DragonFly__
++typedef unsigned int nfds_t;
++#endif
++
+ #define PCM_BUFFSIZE ((sizeof(((struct mad_pcm *)0)->samples) / \
+ sizeof(mad_fixed_t)) * 2)
+ struct pcm_data {
+@@ -97,8 +101,12 @@ static void audio_convert_dither(unsigne
+
+
+ static const struct audio_dev_backend *audio_dev_backends[] = {
++#ifndef NOSUN
+ &audio_dev_sun,
++#endif
++#ifndef NOOSS
+ &audio_dev_pcm,
++#endif
+ #ifndef NOARTS
+ &audio_dev_arts,
+ #endif
diff --git a/audio/mad123/patches/patch-ac b/audio/mad123/patches/patch-ac
new file mode 100644
index 00000000000..296c3a4701d
--- /dev/null
+++ b/audio/mad123/patches/patch-ac
@@ -0,0 +1,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