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 Scandiff -r1.1 -r1.2 pkgsrc/audio/xmp/DESCR
(nia)
@@ -1,12 +1,4 @@ | @@ -1,12 +1,4 @@ | |||
1 | This is the Extended Module Player, an open source module player for UNIX | 1 | The Extended Module Player, or xmp, is a portable command-line module | |
2 | distributed under the terms of the GNU GPL. xmp currently runs on several | 2 | player. Xmp plays many mainstream and obscure module formats including | |
3 | platforms, including ALSA, OSS (for Linux on i386 and Alpha and FreeBSD), | 3 | Protracker (MOD), Scream Tracker 3 (S3M), Fast Tracker II (XM), and | |
4 | BSD, SunOS, Solaris, S/Linux and HP-UX. On PC class machines with GUS or | 4 | Impulse Tracker (IT). | |
5 | AWE cards xmp takes advantage of the OSS sequencer to play modules with | |||
6 | virtually no system load. Using software mixing, xmp plays at rates up to | |||
7 | 48 kHz in mono or stereo, 8 or 16 bits, signed or unsigned, little or big | |||
8 | endian samples with 32 bit linear interpolation. | |||
9 | ||||
10 | The current version of xmp supports many Amiga and PC module formats | |||
11 | (including packed, Powerpacked and SQSHed modules) -- currently 47 known | |||
12 | formats. |
@@ -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 | |||
3 | DISTNAME= xmp-4.0.10 | 3 | DISTNAME= xmp-4.1.0 | |
4 | PKGREVISION= 7 | |||
5 | CATEGORIES= audio | 4 | CATEGORIES= audio | |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xmp/} | 5 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xmp/} | |
7 | 6 | |||
8 | MAINTAINER= rxg@NetBSD.org | 7 | MAINTAINER= rxg@NetBSD.org | |
9 | HOMEPAGE= http://xmp.sourceforge.net/ | 8 | HOMEPAGE= http://xmp.sourceforge.net/ | |
10 | COMMENT= Player for many different Amiga and PC module formats | 9 | COMMENT= Player for many different Amiga and PC module formats | |
11 | LICENSE= gnu-gpl-v2 | 10 | LICENSE= gnu-gpl-v2 | |
12 | 11 | |||
13 | USE_TOOLS+= gmake pkg-config | 12 | USE_TOOLS+= gmake pkg-config | |
14 | GNU_CONFIGURE= yes | 13 | GNU_CONFIGURE= yes | |
15 | 14 | |||
16 | EGDIR= ${PREFIX}/share/examples/xmp | 15 | EGDIR= ${PREFIX}/share/examples/xmp | |
17 | CONF_FILES= ${EGDIR}/modules.conf ${PKG_SYSCONFDIR}/xmp/modules.conf | 16 | CONF_FILES= ${EGDIR}/modules.conf ${PKG_SYSCONFDIR}/xmp/modules.conf | |
18 | CONF_FILES+= ${EGDIR}/xmp.conf ${PKG_SYSCONFDIR}/xmp/xmp.conf | 17 | CONF_FILES+= ${EGDIR}/xmp.conf ${PKG_SYSCONFDIR}/xmp/xmp.conf | |
19 | 18 | |||
20 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${EGDIR} | 19 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${EGDIR} | |
21 | INSTALL_MAKE_FLAGS+= INSTALL=${INSTALL:Q} | 20 | INSTALL_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" | |||
29 | LIBS+= ${LIBOSSAUDIO} | |||
30 | CPPFLAGS+= -DDEVOSSAUDIO="\"${DEVOSSAUDIO}\"" | |||
31 | CPPFLAGS+= -DDEVOSSSOUND="\"${DEVOSSSOUND}\"" | |||
32 | .else | |||
33 | CONFIGURE_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" |
@@ -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 | |||
3 | SHA1 (xmp-4.0.10.tar.gz) = e6a39a5158a9e36d437b233d68a8dc7756a971e1 | 3 | SHA1 (xmp-4.1.0.tar.gz) = 4550bd5daa505f577a9cd9470da202fcc4b57ebc | |
4 | RMD160 (xmp-4.0.10.tar.gz) = 1dfd7f50c0bf8fa7cfd72c127d9d66dc151cced2 | 4 | RMD160 (xmp-4.1.0.tar.gz) = 61d875610bf2e90d1d91fb01e2a960b714036413 | |
5 | SHA512 (xmp-4.0.10.tar.gz) = 14e85cb0a35edb7f1584e1b8485b502b8ac8b1ce8d6360f9d3d5cbb488379e25a6a19587c9bacd598cac13ca7ab8e07380cfbb7fb41fe54897fa3ef598de0da6 | 5 | SHA512 (xmp-4.1.0.tar.gz) = 9d9791b729f902afc8c728609e82c06fc6576d915b83a01957b1ca585d726f00196f9059df1d86c3e75db7b275416b3d550aea32b140daafaf20b0170ae2dc32 | |
6 | Size (xmp-4.0.10.tar.gz) = 203088 bytes | 6 | Size (xmp-4.1.0.tar.gz) = 210435 bytes | |
7 | SHA1 (patch-etc_Makefile) = 5816b82a6253a627b39ff2ca262bfb5675ca97e3 | 7 | SHA1 (patch-etc_Makefile) = 5816b82a6253a627b39ff2ca262bfb5675ca97e3 | |
8 | SHA1 (patch-src_drivers_netbsd.c) = 6bbb1a40b7bb95ecdad6fe5f76be2a51a8940906 | 8 | SHA1 (patch-src_drivers_netbsd.c) = ff8c97165380ea2323957135554fda53253b00d5 | |
9 | SHA1 (patch-src_options.c) = f372d1336e795b77c7ce38230bf69dd363da02c2 | 9 | SHA1 (patch-src_options.c) = f372d1336e795b77c7ce38230bf69dd363da02c2 | |
10 | SHA1 (patch-src_sound_oss.c) = 251a09075ade185e33938be67776e7740473a6a5 | 10 | SHA1 (patch-src_sound_oss.c) = 251a09075ade185e33938be67776e7740473a6a5 |
@@ -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 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.xmp | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.xmp | |
4 | # XXX configure.ac is broken, you cannot disable oss and alsa at the moment. | 4 | PKG_SUPPORTED_OPTIONS= alsa pulseaudio | |
5 | PKG_SUPPORTED_OPTIONS= alsa esound nas oss pulseaudio | 5 | PKG_SUGGESTED_OPTIONS.Linux= alsa | |
6 | ||||
7 | .include "../../mk/bsd.prefs.mk" | |||
8 | ||||
9 | .if ${OPSYS} == "Linux" | |||
10 | PKG_SUGGESTED_OPTIONS= alsa | |||
11 | .elif ${OPSYS} == "Interix" | |||
12 | # No native support for this OS, so use esound for audio output | |||
13 | PKG_SUGGESTED_OPTIONS= esound | |||
14 | # On Darwin, xmp uses CoreAudio | |||
15 | .elif ${OPSYS} != "Darwin" | |||
16 | PKG_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 | |
25 | CONFIGURE_ARGS+=--disable-alsa | 13 | CONFIGURE_ARGS+= --disable-alsa | |
26 | .endif | |||
27 | ||||
28 | # Esd support | |||
29 | .if !empty(PKG_OPTIONS:Mesound) | |||
30 | CONFIGURE_ARGS+=--enable-esd | |||
31 | . include "../../audio/esound/buildlink3.mk" | |||
32 | .endif | |||
33 | ||||
34 | # Nas support | |||
35 | .if !empty(PKG_OPTIONS:Mnas) | |||
36 | CONFIGURE_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" | |||
43 | LIBS+= ${LIBOSSAUDIO} | |||
44 | CPPFLAGS+= -DDEVOSSAUDIO="\"${DEVOSSAUDIO}\"" | |||
45 | CPPFLAGS+= -DDEVOSSSOUND="\"${DEVOSSSOUND}\"" | |||
46 | .else | |||
47 | CONFIGURE_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) | |
52 | CONFIGURE_ARGS+=--enable-pulseaudio | 18 | CONFIGURE_ARGS+= --enable-pulseaudio | |
53 | . include "../../audio/pulseaudio/buildlink3.mk" | 19 | . include "../../audio/pulseaudio/buildlink3.mk" | |
54 | .endif | 20 | .endif |
@@ -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 | } |