pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/xmp Update to 4.0.6. Changes:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/32be03647e75
branches:  trunk
changeset: 626584:32be03647e75
user:      shattered <shattered%pkgsrc.org@localhost>
date:      Sat Nov 16 07:41:02 2013 +0000

description:
Update to 4.0.6. Changes:

- Rewrite player to use libxmp 4.0
- Give Pulseaudio higher priority than ALSA
- Give ALSA output higher priority than OSS
- Fix native-endian coreaudio output
- Fix module-specifc flags to override built-in quirks
- Fix loop when skipping to first file and it's not playable

- Add commands '<' and '>' to jump to previous/next sequence
- Add command 'z' to toggle the subsong explorer on/off
- Add option -z <num> to play a specified sequence
- Add option -Z to play all sequences in module
- Add option --loop-all to loop over entire module list

diffstat:

 audio/xmp/Makefile                           |   6 +-
 audio/xmp/distinfo                           |  13 ++++---
 audio/xmp/options.mk                         |   9 +++-
 audio/xmp/patches/patch-etc_Makefile         |  43 ++++++++++++++++-----------
 audio/xmp/patches/patch-src_drivers_netbsd.c |  34 +++++++++++++++++++--
 audio/xmp/patches/patch-src_sound_oss.c      |  13 ++++++++
 6 files changed, 85 insertions(+), 33 deletions(-)

diffs (172 lines):

diff -r 0527f0ee9f0a -r 32be03647e75 audio/xmp/Makefile
--- a/audio/xmp/Makefile        Sat Nov 16 07:41:00 2013 +0000
+++ b/audio/xmp/Makefile        Sat Nov 16 07:41:02 2013 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.37 2013/02/09 22:11:34 ryoon Exp $
+# $NetBSD: Makefile,v 1.38 2013/11/16 07:41:02 shattered Exp $
 
-DISTNAME=      xmp-3.4.1
-PKGREVISION=   7
+DISTNAME=      xmp-4.0.6
 CATEGORIES=    audio
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=xmp/}
 
@@ -27,4 +26,5 @@
 
 .include "options.mk"
 
+.include "../../audio/libxmp/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 0527f0ee9f0a -r 32be03647e75 audio/xmp/distinfo
--- a/audio/xmp/distinfo        Sat Nov 16 07:41:00 2013 +0000
+++ b/audio/xmp/distinfo        Sat Nov 16 07:41:02 2013 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.13 2011/11/26 21:10:03 shattered Exp $
+$NetBSD: distinfo,v 1.14 2013/11/16 07:41:02 shattered Exp $
 
-SHA1 (xmp-3.4.1.tar.gz) = 2883818ddc66ba691b4e7e834be13e800f701021
-RMD160 (xmp-3.4.1.tar.gz) = be007df5102cce9dcd3367097d65ecb535b7d25e
-Size (xmp-3.4.1.tar.gz) = 858787 bytes
-SHA1 (patch-etc_Makefile) = 86844aab3f490f857c92096e088df9463c2617d6
-SHA1 (patch-src_drivers_netbsd.c) = 39196154d1a52d3962540e6f2d175f0e9280449c
+SHA1 (xmp-4.0.6.tar.gz) = 61a7d68e4c37e7407bd35c783821bfbc2b639c87
+RMD160 (xmp-4.0.6.tar.gz) = 1eb6834cefd450d88de9b018e14ec4f88b8c015b
+Size (xmp-4.0.6.tar.gz) = 208541 bytes
+SHA1 (patch-etc_Makefile) = 5816b82a6253a627b39ff2ca262bfb5675ca97e3
+SHA1 (patch-src_drivers_netbsd.c) = eb3b77cafc86dc9fba298c5bdfbeb0b889d9ea9c
+SHA1 (patch-src_sound_oss.c) = 251a09075ade185e33938be67776e7740473a6a5
diff -r 0527f0ee9f0a -r 32be03647e75 audio/xmp/options.mk
--- a/audio/xmp/options.mk      Sat Nov 16 07:41:00 2013 +0000
+++ b/audio/xmp/options.mk      Sat Nov 16 07:41:02 2013 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: options.mk,v 1.2 2011/04/05 05:22:52 rxg Exp $
+# $NetBSD: options.mk,v 1.3 2013/11/16 07:41:02 shattered Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.xmp
+# XXX configure.ac is broken, you cannot disable oss and alsa at the moment.
 PKG_SUPPORTED_OPTIONS= alsa arts esound nas oss pulseaudio
 
 .include "../../mk/bsd.prefs.mk"
@@ -42,10 +43,12 @@
 
 # Oss support
 .if !empty(PKG_OPTIONS:Moss)
-# empty
+.  include "../../mk/oss.buildlink3.mk"
+LIBS+=         ${LIBOSSAUDIO}
+CPPFLAGS+=     -DDEVOSSAUDIO="\"${DEVOSSAUDIO}\""
+CPPFLAGS+=     -DDEVOSSSOUND="\"${DEVOSSSOUND}\""
 .else
 CONFIGURE_ARGS+=--disable-oss
-CONFIGURE_ARGS+=--disable-oss-sequencer
 .endif
 
 # Pulseaudio support
diff -r 0527f0ee9f0a -r 32be03647e75 audio/xmp/patches/patch-etc_Makefile
--- a/audio/xmp/patches/patch-etc_Makefile      Sat Nov 16 07:41:00 2013 +0000
+++ b/audio/xmp/patches/patch-etc_Makefile      Sat Nov 16 07:41:02 2013 +0000
@@ -1,19 +1,28 @@
-$NetBSD: patch-etc_Makefile,v 1.1 2011/04/05 05:22:52 rxg Exp $
+$NetBSD: patch-etc_Makefile,v 1.2 2013/11/16 07:41:02 shattered Exp $
 
---- etc/Makefile.orig  2010-01-09 22:34:20.000000000 +0000
-+++ etc/Makefile
-@@ -4,10 +4,10 @@ ETC_PATH     = etc
+--- src/Makefile.in.orig       2013-05-19 14:44:09.000000000 +0000
++++ src/Makefile.in
+@@ -509,18 +509,18 @@ uninstall-man1:
+       dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
+ install-pkgsysconfDATA: $(pkgsysconf_DATA)
+       @$(NORMAL_INSTALL)
+-      @list='$(pkgsysconf_DATA)'; test -n "$(pkgsysconfdir)" || list=; \
++      @list='$(pkgsysconf_DATA)'; test -n "$(datarootdir)/examples/xmp" || list=; \
+       if test -n "$$list"; then \
+-        echo " $(MKDIR_P) '$(DESTDIR)$(pkgsysconfdir)'"; \
+-        $(MKDIR_P) "$(DESTDIR)$(pkgsysconfdir)" || exit 1; \
++        echo " $(MKDIR_P) '$(DESTDIR)$(datarootdir)/examples/xmp/'"; \
++        $(MKDIR_P) "$(DESTDIR)$(datarootdir)/examples/xmp/" || exit 1; \
+       fi; \
+       for p in $$list; do \
+         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+         echo "$$d$$p"; \
+       done | $(am__base_list) | \
+       while read files; do \
+-        echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgsysconfdir)'"; \
+-        $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgsysconfdir)" || exit $$?; \
++        echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(datarootdir)/examples/xmp/'"; \
++        $(INSTALL_DATA) $$files "$(DESTDIR)$(datarootdir)/examples/xmp/" || exit $$?; \
+       done
  
- install-etc:
-       @[ -d $(DESTDIR)$(SYSCONFDIR) ] || mkdir -p $(DESTDIR)$(SYSCONFDIR)
--      @echo "Installing xmp.conf in $(SYSCONFDIR)"
--      @$(INSTALL_DATA) $(ETC_PATH)/xmp.conf $(DESTDIR)$(SYSCONFDIR)/
--      @echo "Installing modules.conf in $(SYSCONFDIR)"
--      @$(INSTALL_DATA) $(ETC_PATH)/modules.conf $(DESTDIR)$(SYSCONFDIR)/
-+      @echo "Installing xmp.conf in ${DESTDIR}$(datarootdir)/examples/xmp"
-+      @$(INSTALL_DATA) $(ETC_PATH)/xmp.conf $(DESTDIR)$(datarootdir)/examples/xmp/
-+      @echo "Installing modules.conf in ${DESTDIR}$(datarootdir)/examples/xmp"
-+      @$(INSTALL_DATA) $(ETC_PATH)/modules.conf $(DESTDIR)$(datarootdir)/examples/xmp/
- 
- dist-etc:
-       mkdir -p $(DIST)/$(ETC_PATH)
+ uninstall-pkgsysconfDATA:
diff -r 0527f0ee9f0a -r 32be03647e75 audio/xmp/patches/patch-src_drivers_netbsd.c
--- a/audio/xmp/patches/patch-src_drivers_netbsd.c      Sat Nov 16 07:41:00 2013 +0000
+++ b/audio/xmp/patches/patch-src_drivers_netbsd.c      Sat Nov 16 07:41:02 2013 +0000
@@ -1,8 +1,34 @@
-$NetBSD: patch-src_drivers_netbsd.c,v 1.1 2011/04/05 05:22:52 rxg Exp $
+$NetBSD: patch-src_drivers_netbsd.c,v 1.2 2013/11/16 07:41:02 shattered Exp $
 
---- src/drivers/netbsd.c.orig  2010-01-09 22:34:20.000000000 +0000
-+++ src/drivers/netbsd.c
-@@ -174,7 +174,7 @@ static void bufdump(struct xmp_context *
+--- src/sound_netbsd.c.orig    2013-04-06 13:38:02.000000000 +0000
++++ src/sound_netbsd.c
+@@ -68,21 +68,23 @@ static int init(struct options *options)
+ 
+       AUDIO_INITINFO(&ainfo);
+ 
++      ainfo.mode = AUMODE_PLAY_ALL;
+       ainfo.play.sample_rate = options->rate;
+       ainfo.play.channels = options->format & XMP_FORMAT_MONO ? 1 : 2;
+ 
+       if (options->format & XMP_FORMAT_8BIT) {
+               ainfo.play.precision = 8;
+-              ainfo.play.precision = AUDIO_ENCODING_ULINEAR;
++              ainfo.play.encoding = AUDIO_ENCODING_ULINEAR;
+               options->format |= XMP_FORMAT_UNSIGNED;
+       } else {
+               ainfo.play.precision = 16;
+-              ainfo.play.precision = AUDIO_ENCODING_SLINEAR;
++              ainfo.play.encoding = AUDIO_ENCODING_SLINEAR;
+               options->format &= ~XMP_FORMAT_UNSIGNED;
+       }
+ 
+       ainfo.play.gain = gain;
+       ainfo.play.buffer_size = bsize;
++      ainfo.blocksize = 0;
+ 
+       if (ioctl(audio_fd, AUDIO_SETINFO, &ainfo) == -1) {
+               close(audio_fd);
+@@ -99,7 +101,7 @@ static void play(void *b, int i)
        while (i) {
                if ((j = write(audio_fd, b, i)) > 0) {
                        i -= j;
diff -r 0527f0ee9f0a -r 32be03647e75 audio/xmp/patches/patch-src_sound_oss.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/xmp/patches/patch-src_sound_oss.c   Sat Nov 16 07:41:02 2013 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_sound_oss.c,v 1.1 2013/11/16 07:41:02 shattered Exp $
+
+--- src/sound_oss.c.orig       2013-04-06 13:38:02.000000000 +0000
++++ src/sound_oss.c
+@@ -109,7 +109,7 @@ static void setaudio(int *rate, int *for
+ static int init(struct options *options)
+ {
+       char **parm = options->driver_parm;
+-      static const char *dev_audio[] = { "/dev/dsp", "/dev/sound/dsp" };
++      static const char *dev_audio[] = { DEVOSSAUDIO, "/dev/sound/dsp" };
+       audio_buf_info info;
+       static char buf[80];
+       int i;



Home | Main Index | Thread Index | Old Index