summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorben <ben@pkgsrc.org>2004-06-24 22:54:27 +0000
committerben <ben@pkgsrc.org>2004-06-24 22:54:27 +0000
commitb9ed44979791cce72d4b3940ada8f556e71ba009 (patch)
tree27591a822efa3e69b11f859214c3e69877fb74f2 /audio
parent2842fa79c6128fdfc031574dfd1ebea2e1b8f858 (diff)
downloadpkgsrc-b9ed44979791cce72d4b3940ada8f556e71ba009.tar.gz
Removing package because gmodplay is no longer maintained. For a
modplug-based player, see audio/xmms-modplug.
Diffstat (limited to 'audio')
-rw-r--r--audio/gmodplay/DESCR3
-rw-r--r--audio/gmodplay/Makefile46
-rw-r--r--audio/gmodplay/PLIST5
-rw-r--r--audio/gmodplay/distinfo12
-rwxr-xr-xaudio/gmodplay/files/mod2wav59
-rw-r--r--audio/gmodplay/patches/patch-aa33
-rw-r--r--audio/gmodplay/patches/patch-ab13
-rw-r--r--audio/gmodplay/patches/patch-ac49
-rw-r--r--audio/gmodplay/patches/patch-ad13
-rw-r--r--audio/gmodplay/patches/patch-ae143
-rw-r--r--audio/gmodplay/patches/patch-af25
-rw-r--r--audio/gmodplay/patches/patch-ag49
-rw-r--r--audio/gmodplay/patches/patch-ah29
13 files changed, 0 insertions, 479 deletions
diff --git a/audio/gmodplay/DESCR b/audio/gmodplay/DESCR
deleted file mode 100644
index 1ec5c8b6c64..00000000000
--- a/audio/gmodplay/DESCR
+++ /dev/null
@@ -1,3 +0,0 @@
-Gmodplay is a MOD player based on the modplug source code.
-It understands IT, XM, S3M, MOD, MTM, STM, FAR, ULT, 669, AMS, DBM, MDL,
-and OKT module formats.
diff --git a/audio/gmodplay/Makefile b/audio/gmodplay/Makefile
deleted file mode 100644
index c8f294a8b95..00000000000
--- a/audio/gmodplay/Makefile
+++ /dev/null
@@ -1,46 +0,0 @@
-# $NetBSD: Makefile,v 1.17 2004/04/18 14:34:19 ben Exp $
-
-DISTNAME= gmodplay-0.08
-PKGREVISION= 3
-CATEGORIES= audio
-MASTER_SITES= http://magic.metawire.com/~rani/ \
- http://rani.free.fr/
-
-MAINTAINER= ben@NetBSD.org
-HOMEPAGE= http://rani.free.fr/
-COMMENT= MOD player for IT XM S3M MOD MTM STM FAR ULT 669 AMS DBM MDL OKT files
-
-# only runs correctly on little-endian machines
-ONLY_FOR_PLATFORM= *-*-alpha *-*-arc *-*-cobalt *-*-dreamcast \
- *-*-hpcmips *-*-hpcsh *-*-i386 *-*-pc532 *-*-pmax \
- *-*-vax
-
-USE_BUILDLINK3= YES
-USE_GNU_TOOLS+= make
-USE_LANGUAGES= c c++
-
-# for libslang and ossaudio
-CFLAGS+= -DAUDIO_DEV="\"\\\"$(DEVOSSAUDIO)\\\"\""
-LDFLAGS+= ${LIBOSSAUDIO}
-
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} == "NetBSD"
-LDFLAGS+= -lcurses
-.endif
-
-.if ${OPSYS} == "Linux"
-LDFLAGS+= -lncurses -ldl
-.endif
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/gmodplay ${PREFIX}/bin/gmodplay
- ${INSTALL_SCRIPT} ${FILESDIR}/mod2wav ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gmodplay
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/gmodplay
-
-.include "../../devel/libslang/buildlink3.mk"
-.include "../../devel/glib/buildlink3.mk"
-.include "../../mk/ossaudio.buildlink3.mk"
-.include "../../mk/curses.buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/audio/gmodplay/PLIST b/audio/gmodplay/PLIST
deleted file mode 100644
index 9a7eac34869..00000000000
--- a/audio/gmodplay/PLIST
+++ /dev/null
@@ -1,5 +0,0 @@
-@comment $NetBSD: PLIST,v 1.1 2001/11/01 00:16:36 zuntum Exp $
-bin/gmodplay
-bin/mod2wav
-share/doc/gmodplay/README
-@dirrm share/doc/gmodplay
diff --git a/audio/gmodplay/distinfo b/audio/gmodplay/distinfo
deleted file mode 100644
index b4e0e369b77..00000000000
--- a/audio/gmodplay/distinfo
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: distinfo,v 1.4 2003/12/13 17:59:57 ben Exp $
-
-SHA1 (gmodplay-0.08.tar.gz) = fb19c21cfd08b96e5a4ef5bb802127803260c3bd
-Size (gmodplay-0.08.tar.gz) = 104056 bytes
-SHA1 (patch-aa) = 9017c2645ff85792f606007270ec2cbf31eca4b1
-SHA1 (patch-ab) = bb3ab618f39109d9c528770feaf1ae8516c9162f
-SHA1 (patch-ac) = 34bb9d525107359c0decd35af197ded216cd588a
-SHA1 (patch-ad) = 3cd04b588226e2e5f2fb2c899ca6c61297a5ccbf
-SHA1 (patch-ae) = 09c7f894b6289d9fb262d825c594f3ab875714d5
-SHA1 (patch-af) = 6f5614591a9a544958ad6f4541db217da47c203b
-SHA1 (patch-ag) = a8e1e1d54ecb17dfb8fbd438b5b7a81bf73c085b
-SHA1 (patch-ah) = 44073bbefd4b48414588e15e5eb2da073b815007
diff --git a/audio/gmodplay/files/mod2wav b/audio/gmodplay/files/mod2wav
deleted file mode 100755
index 07c135e776d..00000000000
--- a/audio/gmodplay/files/mod2wav
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/bin/sh
-#
-# $NetBSD: mod2wav,v 1.3 2003/11/25 22:16:28 wiz Exp $
-#
-# I wrote this shell script long ago to be able to master CDs from modules
-# in Un*x using gmodplay. -Ben
-
-CMD=$(basename $0)
-
-if [ -z "$*" ]
-then
- echo "
-Usage: $CMD <module>
-for example \"$CMD funky.xm\" would create funky.xm.wav
-"
- exit
-fi
-
-sox -V 2>&1 | grep sox >/dev/null 2>&1
-if [ $? -ne 0 ]
-then
- echo "
-FATAL: I can't find sox in your path. Is it installed?
-"
- exit
-fi
-
-WAVDIR=$(dirname "$*")
-WAVNAME=$(basename "$*").wav
-
-echo -e "$* -> $WAVDIR/$WAVNAME\c"
-
-
-echo -e " [step 1]\c"
-gmodplay -n -w "$*" >/dev/null 2>&1
-if [ $? -ne 0 ]
-then
- echo "
-FATAL: gmodplay returned an error.
-"
- exit
-fi
-
-echo -e " [step 2]\c"
-chmod a+r output.raw
-sox -t raw -r 44100 -s -w -c 2 output.raw "$WAVDIR/$WAVNAME" >/dev/null 2>&1
-if [ $? -ne 0 ]
-then
- echo "
-FATAL: sox returned an error.
-You may need to remove output.raw
-"
- exit
-fi
-
-echo -e " [step 3]\c"
-rm -f output.raw
-
-echo " Finished!"
diff --git a/audio/gmodplay/patches/patch-aa b/audio/gmodplay/patches/patch-aa
deleted file mode 100644
index 113da0cbf27..00000000000
--- a/audio/gmodplay/patches/patch-aa
+++ /dev/null
@@ -1,33 +0,0 @@
-$NetBSD: patch-aa,v 1.2 2003/07/22 19:34:31 jmmv Exp $
-
---- cmdline/cmdline.cpp.orig 1998-10-03 13:29:20.000000000 +0200
-+++ cmdline/cmdline.cpp
-@@ -10,6 +10,7 @@
- #include <slang.h>
- #include <math.h>
- #include <stdio.h>
-+#include <stdlib.h>
- #include <signal.h>
- #include <string.h>
-
-@@ -213,7 +214,7 @@ InitTextMode(int argc, char **argv, Play
- char *modfile;
-
- _player = Player;
-- Player->generic = new struct CmdInfo;
-+ Player->generic = new CmdInfo;
- CMD_INFO(Player)->first_visible_instrument = 0;
- CMD_INFO(Player)->last_visible_instrument = 0;
-
-@@ -415,9 +416,11 @@ InitTextMode(int argc, char **argv, Play
- Player->repeat = !Player->repeat;
- goto update_info;
- case '+':
-+ case 'e':
- volume = VolumeCtrl(2, 2, &Player->mixer);
- goto update_info;
- case '-':
-+ case 'w':
- volume = VolumeCtrl(-2, -2, &Player->mixer);
- goto update_info;
- case '<':
diff --git a/audio/gmodplay/patches/patch-ab b/audio/gmodplay/patches/patch-ab
deleted file mode 100644
index d09b142ba1a..00000000000
--- a/audio/gmodplay/patches/patch-ab
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ab,v 1.1.1.1 2001/03/19 19:35:51 wiz Exp $
-
---- cmdline/cmdline.h.orig Sun Jan 28 10:58:04 2001
-+++ cmdline/cmdline.h Sun Jan 28 10:58:23 2001
-@@ -26,7 +26,7 @@
- #define _LINE_SPECTRO_BANDS_ (_LINE_SPECTRO_MIN_ + 1)
- #define _LINE_INSTRUMENTS_ (_LINE_SPECTRO_BANDS_ + 1)
-
--#define CMD_INFO(playerinfo) ((struct CmdInfo*) playerinfo->generic)
-+#define CMD_INFO(playerinfo) ((CmdInfo*) playerinfo->generic)
- typedef struct {
- int first_visible_instrument;
- int last_visible_instrument;
diff --git a/audio/gmodplay/patches/patch-ac b/audio/gmodplay/patches/patch-ac
deleted file mode 100644
index 3731c4a9c49..00000000000
--- a/audio/gmodplay/patches/patch-ac
+++ /dev/null
@@ -1,49 +0,0 @@
-$NetBSD: patch-ac,v 1.3 2003/12/13 17:59:57 ben Exp $
-
---- common/devices.cpp.orig 1998-09-28 14:59:27.000000000 -0700
-+++ common/devices.cpp
-@@ -13,6 +13,7 @@
- #include <unistd.h>
- #include <fcntl.h>
- #include <stdio.h>
-+#include <stdlib.h>
- #include <sys/ioctl.h>
- #include <sys/soundcard.h>
-
-@@ -24,13 +25,26 @@ OpenDSP(DSPInfo * DSP)
- int val;
-
- //DSP->fd = open(AUDIO_DEV, O_WRONLY|O_NONBLOCK);
-- DSP->fd = open(DSP->name?DSP->name:AUDIO_DEV, O_WRONLY);
-+ //DSP->fd = open(DSP->name?DSP->name:AUDIO_DEV, O_WRONLY);
-+ if (DSP->rawdump) {
-+ DSP->fd = open(DSP->name, O_WRONLY|O_CREAT);
-+ } else {
-+ DSP->fd = open(DSP->name?DSP->name:AUDIO_DEV, O_WRONLY);
-+ }
-+
- if (DSP->fd == -1) {
- return -1;
- }
-
- val = SND_FORMAT;
- dsp_format:
-+ if (DSP->rawdump) {
-+ DSP->snd_format = SND_FORMAT;
-+ DSP->bits_per_sample = 16;
-+ DSP->stereo_support = 1;
-+ DSP->sample_rate = DEFAULT_RATE;
-+ return 0;
-+ }
- if (ioctl(DSP->fd, SNDCTL_DSP_SETFMT, &val) == -1) {
- perror("ioctl SNDCTL_DSP_SETFMT failed");
- exit(-1);
-@@ -76,7 +90,7 @@ OpenDSP(DSPInfo * DSP)
- }
- DSP->sample_rate = val;
-
-- ioctl(DSP->fd, SNDCTL_DSP_RESET);
-+ ioctl(DSP->fd, SNDCTL_DSP_RESET, NULL);
- return 0;
- }
-
diff --git a/audio/gmodplay/patches/patch-ad b/audio/gmodplay/patches/patch-ad
deleted file mode 100644
index 99191745661..00000000000
--- a/audio/gmodplay/patches/patch-ad
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ad,v 1.1.1.1 2001/03/19 19:35:52 wiz Exp $
-
---- common/modfile.cpp.orig Sun Jan 28 11:06:47 2001
-+++ common/modfile.cpp Sun Jan 28 11:07:29 2001
-@@ -79,7 +79,7 @@
- return -1;
- }
-
-- Mod->ptr = mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, Mod->fd, 0);
-+ Mod->ptr = (char *)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, Mod->fd, 0);
- if ((int) *Mod->ptr == -1) {
- Mod->ptr = NULL;
- close(Mod->fd);
diff --git a/audio/gmodplay/patches/patch-ae b/audio/gmodplay/patches/patch-ae
deleted file mode 100644
index 35e5a6d7526..00000000000
--- a/audio/gmodplay/patches/patch-ae
+++ /dev/null
@@ -1,143 +0,0 @@
-$NetBSD: patch-ae,v 1.2 2003/12/13 17:59:57 ben Exp $
-
---- common/modplay.cpp.orig 1998-10-05 01:29:52.000000000 -0700
-+++ common/modplay.cpp
-@@ -16,6 +16,7 @@
- #include <sys/ioctl.h>
- #include <sys/soundcard.h>
- #include <string.h>
-+#include <libgen.h>
-
- #include "stdafx.h"
- #include "sndfile.h"
-@@ -88,9 +89,9 @@ ResetPlayer(PlayerInfo * Player)
- }
- else {
- int val = Player->stereo?1:0;
-- ioctl(Player->dsp.fd, SNDCTL_DSP_POST);
-+ ioctl(Player->dsp.fd, SNDCTL_DSP_POST, NULL);
- ioctl(Player->dsp.fd, SNDCTL_DSP_STEREO, &val);
-- ioctl(Player->dsp.fd, SNDCTL_DSP_RESET);
-+ ioctl(Player->dsp.fd, SNDCTL_DSP_RESET, NULL);
- }
-
- bufsize = (TIMELEN * Player->dsp.sample_rate) / 1000;
-@@ -127,8 +128,8 @@ PausePlayer(PlayerInfo * Player)
- Player->paused = true;
- /* FIXME: Useless when doing a close(dsp)??
- if (!Player->stopped) {
-- ioctl(Player->dsp.fd, SNDCTL_DSP_SYNC);
-- ioctl(Player->dsp.fd, SNDCTL_DSP_RESET);
-+ ioctl(Player->dsp.fd, SNDCTL_DSP_SYNC, NULL);
-+ ioctl(Player->dsp.fd, SNDCTL_DSP_RESET, NULL);
- }
- */
- if (Player->buffer) {
-@@ -143,8 +144,8 @@ StopPlayer(PlayerInfo * Player)
- {
- if (Player->stopped)
- return 0;
-- ioctl(Player->dsp.fd, SNDCTL_DSP_SYNC);
-- ioctl(Player->dsp.fd, SNDCTL_DSP_RESET);
-+ ioctl(Player->dsp.fd, SNDCTL_DSP_SYNC, NULL);
-+ ioctl(Player->dsp.fd, SNDCTL_DSP_RESET, NULL);
- if (Player->buffer) {
- delete Player->buffer;
- Player->buffer = NULL;
-@@ -330,6 +331,14 @@ Help()
- printf(" -n, --nospectrum don't display spectrum\n");
- printf(" -x disable X11 interface\n");
- printf(" -v, --version output version information and exit\n");
-+ printf(" -s, --surround surround sound on\n");
-+ printf(" -o, --oversamp oversampling on\n");
-+ printf(" -r, --reverb reverb on\n");
-+ printf(" -b, --megabass megabass on\n");
-+ printf(" -g, --volramp gain control on\n");
-+ printf(" -f, --filter noise reduction on\n");
-+ printf(" -w, --rawdump dump to output.raw\n");
-+
- }
-
- void
-@@ -370,11 +379,55 @@ ParseArgs(PlayerInfo * Player, int Count
- Player->updatespectro = false;
- continue;
- }
-+ if (strcmp(Args[i], "-s") == 0 ||
-+ strcmp(Args[i], "--surround") == 0)
-+ {
-+ Player->surround = true;
-+ continue;
-+ }
-+ if (strcmp(Args[i], "-o") == 0 ||
-+ strcmp(Args[i], "--oversamp") == 0)
-+ {
-+ Player->oversamp = true;
-+ continue;
-+ }
-+ if (strcmp(Args[i], "-r") == 0 ||
-+ strcmp(Args[i], "--reverb") == 0)
-+ {
-+ Player->reverb = true;
-+ continue;
-+ }
-+ if (strcmp(Args[i], "-b") == 0 ||
-+ strcmp(Args[i], "--megabass") == 0)
-+ {
-+ Player->megabass = true;
-+ continue;
-+ }
-+ if (strcmp(Args[i], "-g") == 0 ||
-+ strcmp(Args[i], "--gain") == 0)
-+ {
-+ Player->nr = true;
-+ continue;
-+ }
-+ if (strcmp(Args[i], "-f") == 0 ||
-+ strcmp(Args[i], "--filter") == 0)
-+ {
-+ Player->volramp = true;
-+ continue;
-+ }
- if (strcmp(Args[i], "-d") == 0 || strcmp(Args[i], "--device") == 0) {
- /* FIXME: Test if Args[i+1] starts with - */
- Player->dsp.name = Args[1+i++];
- continue;
- }
-+ if (strcmp(Args[i], "-w") == 0 ||
-+ strcmp(Args[i], "--rawdump") == 0)
-+ {
-+ Player->dsp.rawdump = true;
-+ Player->dsp.name = (char *)malloc(11);
-+ strcpy(Player->dsp.name, "output.raw");
-+ continue;
-+ }
- if (strcmp(Args[i], "--") == 0) {
- more_params = false;
- continue;
-@@ -413,18 +466,19 @@ main(int argc, char **argv)
-
- Player->dsp.name = NULL;
- Player->dsp.fd = -1;
-+ Player->dsp.rawdump = false;
-
- Player->stereo = true;
- Player->updatespectro = true;
- Player->repeat = false;
- Player->paused = false;
- Player->stopped = true;
-- Player->surround = true;
-- Player->oversamp = true;
-- Player->reverb = true;
-- Player->megabass = true;
-- Player->nr = false;
-- Player->volramp = true;
-+ Player->surround = false;
-+ Player->oversamp = false;
-+ Player->reverb = false;
-+ Player->megabass = false;
-+ Player->nr = true;
-+ Player->volramp = false;
-
-
- if ((Player->playlist = CreatePlayList("default")) == NULL) {
diff --git a/audio/gmodplay/patches/patch-af b/audio/gmodplay/patches/patch-af
deleted file mode 100644
index 977a1380713..00000000000
--- a/audio/gmodplay/patches/patch-af
+++ /dev/null
@@ -1,25 +0,0 @@
-$NetBSD: patch-af,v 1.2 2003/07/22 19:34:31 jmmv Exp $
-
---- common/modplay.h.orig Fri Oct 2 23:44:25 1998
-+++ common/modplay.h
-@@ -12,8 +12,11 @@
- #define MODPLAY_H
-
- #include <sys/types.h>
-+#include <glib.h>
-
-+#ifndef AUDIO_DEV
- #define AUDIO_DEV "/dev/dsp"
-+#endif
- #define MIXER_DEV "/dev/mixer"
-
- #define MIXER_CHANNEL SOUND_MIXER_PCM
-@@ -39,7 +42,7 @@
- int bits_per_sample;
- int sample_rate;
- bool stereo_support;
--
-+ bool rawdump;
- } DSPInfo;
-
- typedef struct {
diff --git a/audio/gmodplay/patches/patch-ag b/audio/gmodplay/patches/patch-ag
deleted file mode 100644
index 493e3ebd80f..00000000000
--- a/audio/gmodplay/patches/patch-ag
+++ /dev/null
@@ -1,49 +0,0 @@
-$NetBSD: patch-ag,v 1.1.1.1 2001/03/19 19:35:52 wiz Exp $
-
---- common/playlist.cpp.orig Sun Jan 28 11:22:24 2001
-+++ common/playlist.cpp Sun Jan 28 11:26:25 2001
-@@ -13,7 +13,7 @@
-
- #include "playlist.h"
-
--gint CompareNames(gconstpointer a, gconstpointer b);
-+gint CompareNames(const gpointer a, const gpointer b);
-
- PlayList *
- CreatePlayList(char *Name)
-@@ -56,7 +56,7 @@
- int i = 1;
- char *item;
-
-- while ((item = g_list_nth_data(List->modfiles, i++)) != NULL) {
-+ while ((item = (char *)g_list_nth_data(List->modfiles, i++)) != NULL) {
- delete item;
- }
- g_list_free(List->modfiles);
-@@ -80,8 +80,8 @@
- int
- RemoveModFile(char *ModFile, PlayList * List)
- {
-- char *name = (char *) g_list_find_custom(List->modfiles, (gpointer) ModFile,
-- CompareNames);
-+ char *name = new char[strlen(ModFile) + 1];
-+ strcpy(name, ModFile);
-
- if (name == NULL)
- return -1;
-@@ -151,13 +151,12 @@
- bool
- IsOnList(char *ModFile, PlayList * List)
- {
-- char *name = (char *) g_list_find_custom(List->modfiles, (gpointer) ModFile,
-- CompareNames);
-+ char *name = (char *) g_list_find(List->modfiles, (gpointer) ModFile);
- return (name == NULL) ? false : true;
- }
-
- gint
--CompareNames(gconstpointer a, gconstpointer b)
-+CompareNames(const gpointer a, const gpointer b)
- {
- if (strcmp((const char *) a, (const char *) b) == 0)
- return true;
diff --git a/audio/gmodplay/patches/patch-ah b/audio/gmodplay/patches/patch-ah
deleted file mode 100644
index 6cf6e1fd9b7..00000000000
--- a/audio/gmodplay/patches/patch-ah
+++ /dev/null
@@ -1,29 +0,0 @@
-$NetBSD: patch-ah,v 1.1.1.1 2001/03/19 19:35:52 wiz Exp $
-
---- Makefile.orig Mon Oct 5 01:36:12 1998
-+++ Makefile Sun Jan 28 14:17:57 2001
-@@ -24,13 +24,13 @@
- TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
- # TOPDIR := $(CURDIR)
-
--CFLAGS = -O1 -D__GMODVER__=\"$(VERSION)\" -pipe \
-- -I $(TOPDIR)/include `glib-config --cflags`
-+CFLAGS += -D__GMODVER__=\"$(VERSION)\" -pipe \
-+ -I$(TOPDIR)/include `glib-config --cflags`
-
- #CFLAGS = -O2 -D__GMODVER__=\"$(VERSION)\" -pipe -march=pentiumpro \
- # -I $(TOPDIR)/include `glib-config --cflags`
-
--LDFLAGS = -lstdc++ `glib-config --libs`
-+LDFLAGS += -lstdc++ `glib-config --libs`
- SUBDIRS = sndlib common
-
- ifndef DEBUG
-@@ -71,6 +71,7 @@
-
- all: gmodplay
-
-+install:
-
- gmodplay: $(SUBDIRS)
- $(CC) -o $@ $(ALLOBJECTS) $(LDFLAGS)