Thu Nov 21 23:59:06 2019 UTC ()
xmp: Update to 4.1.0

Switch to native audio drivers for NetBSD and Solaris, which it has,
somehow.

4.1.0 (20160719):
	- Requires libxmp 4.4
	- Add option to force tracker emulation
	- Add option to use simulated Amiga mixers
	- Add option to set the maximum number of virtual channels
	- Add command to switch between standard and classic mixers
	- Add command to display current mixer type
	- Fix default amplification factor
	- Fix module-specific configuration file options
	- Fix screen corruption when module uses more than 255 virtual
	  channels (reported by Lionel Debroux)
	- Remove option --offset-bug-emulation

4.0.11 (20160306):
	- Mark surround channels in channel list
	- Address errors reported by Coverity Scan


(nia)
diff -r1.1 -r1.2 pkgsrc/audio/xmp/DESCR
diff -r1.53 -r1.54 pkgsrc/audio/xmp/Makefile
diff -r1.18 -r1.19 pkgsrc/audio/xmp/distinfo
diff -r1.5 -r1.6 pkgsrc/audio/xmp/options.mk
diff -r1.3 -r1.4 pkgsrc/audio/xmp/patches/patch-src_drivers_netbsd.c

cvs diff -r1.1 -r1.2 pkgsrc/audio/xmp/DESCR (expand / switch to unified diff)

--- pkgsrc/audio/xmp/DESCR 2001/11/01 00:18:37 1.1
+++ pkgsrc/audio/xmp/DESCR 2019/11/21 23:59:06 1.2
@@ -1,12 +1,4 @@ @@ -1,12 +1,4 @@
1This is the Extended Module Player, an open source module player for UNIX 1The Extended Module Player, or xmp, is a portable command-line module
2distributed under the terms of the GNU GPL. xmp currently runs on several 2player. Xmp plays many mainstream and obscure module formats including
3platforms, including ALSA, OSS (for Linux on i386 and Alpha and FreeBSD), 3Protracker (MOD), Scream Tracker 3 (S3M), Fast Tracker II (XM), and
4BSD, SunOS, Solaris, S/Linux and HP-UX. On PC class machines with GUS or 4Impulse Tracker (IT).
5AWE cards xmp takes advantage of the OSS sequencer to play modules with 
6virtually no system load. Using software mixing, xmp plays at rates up to 
748 kHz in mono or stereo, 8 or 16 bits, signed or unsigned, little or big 
8endian samples with 32 bit linear interpolation. 
9 
10The current version of xmp supports many Amiga and PC module formats 
11(including packed, Powerpacked and SQSHed modules) -- currently 47 known 
12formats. 

cvs diff -r1.53 -r1.54 pkgsrc/audio/xmp/Makefile (expand / switch to unified diff)

--- pkgsrc/audio/xmp/Makefile 2019/09/18 14:17:06 1.53
+++ pkgsrc/audio/xmp/Makefile 2019/11/21 23:59:06 1.54
@@ -1,26 +1,38 @@ @@ -1,26 +1,38 @@
1# $NetBSD: Makefile,v 1.53 2019/09/18 14:17:06 ryoon Exp $ 1# $NetBSD: Makefile,v 1.54 2019/11/21 23:59:06 nia Exp $
2 2
3DISTNAME= xmp-4.0.10 3DISTNAME= xmp-4.1.0
4PKGREVISION= 7 
5CATEGORIES= audio 4CATEGORIES= audio
6MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xmp/} 5MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xmp/}
7 6
8MAINTAINER= rxg@NetBSD.org 7MAINTAINER= rxg@NetBSD.org
9HOMEPAGE= http://xmp.sourceforge.net/ 8HOMEPAGE= http://xmp.sourceforge.net/
10COMMENT= Player for many different Amiga and PC module formats 9COMMENT= Player for many different Amiga and PC module formats
11LICENSE= gnu-gpl-v2 10LICENSE= gnu-gpl-v2
12 11
13USE_TOOLS+= gmake pkg-config 12USE_TOOLS+= gmake pkg-config
14GNU_CONFIGURE= yes 13GNU_CONFIGURE= yes
15 14
16EGDIR= ${PREFIX}/share/examples/xmp 15EGDIR= ${PREFIX}/share/examples/xmp
17CONF_FILES= ${EGDIR}/modules.conf ${PKG_SYSCONFDIR}/xmp/modules.conf 16CONF_FILES= ${EGDIR}/modules.conf ${PKG_SYSCONFDIR}/xmp/modules.conf
18CONF_FILES+= ${EGDIR}/xmp.conf ${PKG_SYSCONFDIR}/xmp/xmp.conf 17CONF_FILES+= ${EGDIR}/xmp.conf ${PKG_SYSCONFDIR}/xmp/xmp.conf
19 18
20INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${EGDIR} 19INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${EGDIR}
21INSTALL_MAKE_FLAGS+= INSTALL=${INSTALL:Q} 20INSTALL_MAKE_FLAGS+= INSTALL=${INSTALL:Q}
22 21
23.include "options.mk" 22.include "../../mk/bsd.prefs.mk"
 23.include "../../mk/oss.buildlink3.mk"
 24
 25# NetBSD and Solaris have their own drivers.
 26.if ${OPSYS} != "NetBSD" && \
 27 ${OPSYS} != "Solaris" && \
 28 ${OSS_TYPE} != "none"
 29LIBS+= ${LIBOSSAUDIO}
 30CPPFLAGS+= -DDEVOSSAUDIO="\"${DEVOSSAUDIO}\""
 31CPPFLAGS+= -DDEVOSSSOUND="\"${DEVOSSSOUND}\""
 32.else
 33CONFIGURE_ARGS+= --disable-oss
 34.endif
24 35
 36.include "options.mk"
25.include "../../audio/libxmp/buildlink3.mk" 37.include "../../audio/libxmp/buildlink3.mk"
26.include "../../mk/bsd.pkg.mk" 38.include "../../mk/bsd.pkg.mk"

cvs diff -r1.18 -r1.19 pkgsrc/audio/xmp/distinfo (expand / switch to unified diff)

--- pkgsrc/audio/xmp/distinfo 2015/11/03 01:12:56 1.18
+++ pkgsrc/audio/xmp/distinfo 2019/11/21 23:59:06 1.19
@@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
1$NetBSD: distinfo,v 1.18 2015/11/03 01:12:56 agc Exp $ 1$NetBSD: distinfo,v 1.19 2019/11/21 23:59:06 nia Exp $
2 2
3SHA1 (xmp-4.0.10.tar.gz) = e6a39a5158a9e36d437b233d68a8dc7756a971e1 3SHA1 (xmp-4.1.0.tar.gz) = 4550bd5daa505f577a9cd9470da202fcc4b57ebc
4RMD160 (xmp-4.0.10.tar.gz) = 1dfd7f50c0bf8fa7cfd72c127d9d66dc151cced2 4RMD160 (xmp-4.1.0.tar.gz) = 61d875610bf2e90d1d91fb01e2a960b714036413
5SHA512 (xmp-4.0.10.tar.gz) = 14e85cb0a35edb7f1584e1b8485b502b8ac8b1ce8d6360f9d3d5cbb488379e25a6a19587c9bacd598cac13ca7ab8e07380cfbb7fb41fe54897fa3ef598de0da6 5SHA512 (xmp-4.1.0.tar.gz) = 9d9791b729f902afc8c728609e82c06fc6576d915b83a01957b1ca585d726f00196f9059df1d86c3e75db7b275416b3d550aea32b140daafaf20b0170ae2dc32
6Size (xmp-4.0.10.tar.gz) = 203088 bytes 6Size (xmp-4.1.0.tar.gz) = 210435 bytes
7SHA1 (patch-etc_Makefile) = 5816b82a6253a627b39ff2ca262bfb5675ca97e3 7SHA1 (patch-etc_Makefile) = 5816b82a6253a627b39ff2ca262bfb5675ca97e3
8SHA1 (patch-src_drivers_netbsd.c) = 6bbb1a40b7bb95ecdad6fe5f76be2a51a8940906 8SHA1 (patch-src_drivers_netbsd.c) = ff8c97165380ea2323957135554fda53253b00d5
9SHA1 (patch-src_options.c) = f372d1336e795b77c7ce38230bf69dd363da02c2 9SHA1 (patch-src_options.c) = f372d1336e795b77c7ce38230bf69dd363da02c2
10SHA1 (patch-src_sound_oss.c) = 251a09075ade185e33938be67776e7740473a6a5 10SHA1 (patch-src_sound_oss.c) = 251a09075ade185e33938be67776e7740473a6a5

cvs diff -r1.5 -r1.6 pkgsrc/audio/xmp/options.mk (expand / switch to unified diff)

--- pkgsrc/audio/xmp/options.mk 2017/09/27 13:47:30 1.5
+++ pkgsrc/audio/xmp/options.mk 2019/11/21 23:59:06 1.6
@@ -1,54 +1,20 @@ @@ -1,54 +1,20 @@
1# $NetBSD: options.mk,v 1.5 2017/09/27 13:47:30 wiz Exp $ 1# $NetBSD: options.mk,v 1.6 2019/11/21 23:59:06 nia Exp $
2 2
3PKG_OPTIONS_VAR= PKG_OPTIONS.xmp 3PKG_OPTIONS_VAR= PKG_OPTIONS.xmp
4# XXX configure.ac is broken, you cannot disable oss and alsa at the moment. 4PKG_SUPPORTED_OPTIONS= alsa pulseaudio
5PKG_SUPPORTED_OPTIONS= alsa esound nas oss pulseaudio 5PKG_SUGGESTED_OPTIONS.Linux= alsa
6 
7.include "../../mk/bsd.prefs.mk" 
8 
9.if ${OPSYS} == "Linux" 
10PKG_SUGGESTED_OPTIONS= alsa 
11.elif ${OPSYS} == "Interix" 
12# No native support for this OS, so use esound for audio output 
13PKG_SUGGESTED_OPTIONS= esound 
14# On Darwin, xmp uses CoreAudio 
15.elif ${OPSYS} != "Darwin" 
16PKG_SUGGESTED_OPTIONS+= pulseaudio 
17.endif 
18 6
19.include "../../mk/bsd.options.mk" 7.include "../../mk/bsd.options.mk"
20 8
21# Alsa support 9# Alsa support
22.if !empty(PKG_OPTIONS:Malsa) 10.if !empty(PKG_OPTIONS:Malsa)
23. include "../../audio/alsa-lib/buildlink3.mk" 11. include "../../audio/alsa-lib/buildlink3.mk"
24.else 12.else
25CONFIGURE_ARGS+=--disable-alsa 13CONFIGURE_ARGS+= --disable-alsa
26.endif 
27 
28# Esd support 
29.if !empty(PKG_OPTIONS:Mesound) 
30CONFIGURE_ARGS+=--enable-esd 
31. include "../../audio/esound/buildlink3.mk" 
32.endif 
33 
34# Nas support 
35.if !empty(PKG_OPTIONS:Mnas) 
36CONFIGURE_ARGS+=--enable-nas 
37. include "../../audio/nas/buildlink3.mk" 
38.endif 
39 
40# Oss support 
41.if !empty(PKG_OPTIONS:Moss) 
42. include "../../mk/oss.buildlink3.mk" 
43LIBS+= ${LIBOSSAUDIO} 
44CPPFLAGS+= -DDEVOSSAUDIO="\"${DEVOSSAUDIO}\"" 
45CPPFLAGS+= -DDEVOSSSOUND="\"${DEVOSSSOUND}\"" 
46.else 
47CONFIGURE_ARGS+=--disable-oss 
48.endif 14.endif
49 15
50# Pulseaudio support 16# Pulseaudio support
51.if !empty(PKG_OPTIONS:Mpulseaudio) 17.if !empty(PKG_OPTIONS:Mpulseaudio)
52CONFIGURE_ARGS+=--enable-pulseaudio 18CONFIGURE_ARGS+= --enable-pulseaudio
53. include "../../audio/pulseaudio/buildlink3.mk" 19. include "../../audio/pulseaudio/buildlink3.mk"
54.endif 20.endif

cvs diff -r1.3 -r1.4 pkgsrc/audio/xmp/patches/patch-src_drivers_netbsd.c (expand / switch to unified diff)

--- pkgsrc/audio/xmp/patches/patch-src_drivers_netbsd.c 2014/02/27 03:40:10 1.3
+++ pkgsrc/audio/xmp/patches/patch-src_drivers_netbsd.c 2019/11/21 23:59:06 1.4
@@ -1,13 +1,22 @@ @@ -1,13 +1,22 @@
1$NetBSD: patch-src_drivers_netbsd.c,v 1.3 2014/02/27 03:40:10 rxg Exp $ 1$NetBSD: patch-src_drivers_netbsd.c,v 1.4 2019/11/21 23:59:06 nia Exp $
2 2
3--- src/sound_netbsd.c.orig 2013-04-06 13:38:02.000000000 +0000 3--- src/sound_netbsd.c.orig 2016-07-16 11:29:44.213738881 +0000
4+++ src/sound_netbsd.c 4+++ src/sound_netbsd.c
5@@ -99,7 +101,7 @@ static void play(void *b, int i) 5@@ -36,7 +36,7 @@ static int init(struct options *options)
 6 chkparm1("buffer", bsize = strtoul(token, NULL, 0));
 7 parm_end();
 8
 9- if ((audio_fd = open("/dev/sound", O_WRONLY)) == -1)
 10+ if ((audio_fd = open("/dev/audio", O_WRONLY)) == -1)
 11 return -1;
 12
 13 /* try to open audioctldevice */
 14@@ -101,7 +101,7 @@ static void play(void *b, int i)
6 while (i) { 15 while (i) {
7 if ((j = write(audio_fd, b, i)) > 0) { 16 if ((j = write(audio_fd, b, i)) > 0) {
8 i -= j; 17 i -= j;
9- (char *)b += j; 18- (char *)b += j;
10+ b = (char *)b + j; 19+ b = (char *)b + j;
11 } else 20 } else
12 break; 21 break;
13 } 22 }