1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add GSI. GSI is an easy to use audio system which can be used over a network

and which gives applications, through a very simple API, sample playing with
stereo, 3D, doppler effects, music playing (MIDI, HMP, MUS), cd playing and
ejecting/changing.
This commit is contained in:
Maxim Sobolev 2000-12-07 18:05:12 +00:00
parent ce13902f3d
commit 2a64cbe596
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=35752
30 changed files with 497 additions and 0 deletions

View File

@ -59,6 +59,7 @@
SUBDIR += gqmpeg
SUBDIR += gramofile
SUBDIR += grip
SUBDIR += gsi
SUBDIR += gsm
SUBDIR += holyshout
SUBDIR += icecast

48
audio/gsi/Makefile Normal file
View File

@ -0,0 +1,48 @@
# New ports collection makefile for: gsi
# Date created: 3 October 2000
# Whom: Sean Farley <sean-freebsd@farley.org>
#
# $FreeBSD$
#
PORTNAME= gsi
PORTVERSION= 0.9.4
CATEGORIES= audio
MASTER_SITES= http://www.farley.org/ \
http://www.xs4all.nl/~whs/gsi/bestanden/
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_GMAKE= yes
INSTALLS_SHLIB= yes
MANCOMPRESSED= no
MAN1= gsifile.1 gsiplay.1
MAN3= gsi.3 gsi_commands.3 gsi_events.3 gsif.3 gsipcm.3
MAN5= gsi.conf.5
MAN7= gsi_overview.7
MAN8= gsi_server.8
pre-configure:
@${SH} ${FILESDIR}/configure.sh ${PREFIX} ${WRKSRC}
post-install:
@${INSTALL_DATA} ${WRKSRC}/server.conf/gsi.conf.fbsd \
${PREFIX}/etc/gsi.conf.sample
.for fileNdx in gsi_server gsifile gsiplay
@strip ${PREFIX}/bin/${fileNdx}
.endfor
.for lib in "" cd f midi_pcm mixer pcm synth
@strip ${PREFIX}/lib/libgsi${lib}.so.[02]
.endfor
@${ECHO} "A sample configuration file was installed as" \
${PREFIX}/etc/gsi.conf.sample.
@${ECHO} "Copy and edit it to fit the system."
@${ECHO}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

1
audio/gsi/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (gsi-0.9.4.tgz) = d6d901b545d6bd2e264e8ed326fe07bf

View File

@ -0,0 +1,34 @@
#!/bin/sh
PREFIX=$1
SYSCONFSCRIPT=Config/Configure_system.sh
APPCONFSCRIPT=Config/Configure_application.sh
# Change to the work directory.
cd $2
# Execute two configure scripts while piping the output to /dev/null.
# This is because the output looks somewhat mashed.
echo -n "Executing ${SYSCONFSCRIPT}... "
${SYSCONFSCRIPT} << _E_O_M_ > /dev/null 2>&1
0
${PREFIX}
_E_O_M_
echo "done."
echo -n "Executing ${APPCONFSCRIPT}... "
${APPCONFSCRIPT} << _E_O_M2_ > /dev/null 2>&1
3
_E_O_M2_
echo "done."
# Fix a file to reflect where the configuration file should be looked for.
echo -n "Configuring server/config.c... "
mv server/config.c server/config.c.orig
cat server/config.c.orig | sed "s|/etc/gsi.conf|${PREFIX}&|" > server/config.c
echo "done."

18
audio/gsi/files/patch-aa Normal file
View File

@ -0,0 +1,18 @@
--- ../gsi/Config/Choose.sh Wed Jan 5 09:32:05 2000
+++ ./Config/Choose.sh Thu Dec 7 18:59:20 2000
@@ -7,15 +7,6 @@
prompt=$1
default=$2
-if [ "$default" != "" ]; then
- default="[$default]"
-fi
-if [ "`echo '\c'`" != "" ]; then
- echo -e "$prompt $default \c" >/dev/tty
-else
- echo -ne "$prompt $default " >/dev/tty
-fi
-#echo -e $prompt [$default] >/dev/tty
read answer
if [ "$answer" = "" ]; then
echo $2

24
audio/gsi/files/patch-ab Normal file
View File

@ -0,0 +1,24 @@
--- Config/Configure_application.sh.orig Thu Feb 10 05:05:40 2000
+++ Config/Configure_application.sh Thu Dec 7 19:20:18 2000
@@ -274,8 +274,8 @@
# Optimize & debug:
# Include DEBUG code?
if [ "`$Ask 'Do you want to compile with DEBUG code included?' 'y'`" != "n" ]; then
- debug="-DDEBUG -g"
- optimize="-O2"
+ debug="-DDEBUG"
+# optimize="-O2"
# Use NANA debugging library?
if [ "`$Ask ' Use the NANA debugging library? (probably only usable for GCC)' 'n'`" != "n" ]; then
@@ -283,9 +283,8 @@
extralibs="$extralibs -lnana"
fi
-else
# Default: full optimization:
- optimize="-O2 -fomit-frame-pointer"
+ optimize=""
optimize=`$Ask 'What optimization flags do you want to use?' "$optimize"`
fi

11
audio/gsi/files/patch-ac Normal file
View File

@ -0,0 +1,11 @@
--- ../gsi/applications/file/Makefile Wed Feb 2 19:04:50 2000
+++ ./applications/file/Makefile Thu Dec 7 18:59:20 2000
@@ -23,7 +23,7 @@
INCLUDES = -I../../include
-CFLAGS = -O2 -fomit-frame-pointer -DDEBUG -g -Wall
+CFLAGS += -Wall -DDEBUG
ALL_CFLAGS = $(DEFINES) $(INCLUDES) $(CFLAGS)

11
audio/gsi/files/patch-ad Normal file
View File

@ -0,0 +1,11 @@
--- ../gsi/applications/player/Makefile Wed Feb 2 19:05:01 2000
+++ ./applications/player/Makefile Thu Dec 7 18:59:20 2000
@@ -23,7 +23,7 @@
INCLUDES = -I../../include
-CFLAGS = -O2 -fomit-frame-pointer -DDEBUG -g -Wall
+CFLAGS += -Wall -DDEBUG
ALL_CFLAGS = $(DEFINES) $(INCLUDES) $(CFLAGS)

20
audio/gsi/files/patch-ae Normal file
View File

@ -0,0 +1,20 @@
--- ../gsi/lib/gsi/Makefile Wed Feb 2 19:02:05 2000
+++ ./lib/gsi/Makefile Thu Dec 7 18:59:20 2000
@@ -23,7 +23,7 @@
STATIC_LIB = libgsi.a
DYNAMIC_LIB = libgsi.so
LIB_NAME = $(LIBGSI)
-VERSION = .0.1
+VERSION = .0
LIB_OBJS = gsi.o event.o functions.o io.o
@@ -31,7 +31,7 @@
INCLUDES = -I../../include
-WARN = -Wall -Wstrict-prototypes
+WARN = -Wall #-Wstrict-prototypes
MY_CFLAGS = $(CFLAGS) $(DEBUG) $(OPTIMIZE) $(WARN) $(SYSCONFIG_THREADS_CFLAGS)

19
audio/gsi/files/patch-af Normal file
View File

@ -0,0 +1,19 @@
--- ../gsi/lib/gsicd/Makefile Wed Feb 2 19:02:51 2000
+++ ./lib/gsicd/Makefile Thu Dec 7 18:59:20 2000
@@ -23,14 +23,14 @@
STATIC_LIB = libgsicd.a
DYNAMIC_LIB = libgsicd.so
LIB_NAME = $(LIBGSICD)
-VERSION = .0.1
+VERSION = .0
LIB_OBJS = gsicd.o utils.o event.o
INCLUDES = -I../../include
-WARN = -Wall -Wstrict-prototypes
+WARN = -Wall #-Wstrict-prototypes
MY_CFLAGS = $(CFLAGS) $(DEBUG) $(OPTIMIZE) $(WARN) $(SYSCONFIG_THREADS_CFLAGS)

20
audio/gsi/files/patch-ag Normal file
View File

@ -0,0 +1,20 @@
--- ../gsi/lib/gsif/Makefile Wed Feb 2 19:03:14 2000
+++ ./lib/gsif/Makefile Thu Dec 7 18:59:20 2000
@@ -23,7 +23,7 @@
STATIC_LIB = libgsif.a
DYNAMIC_LIB = libgsif.so
LIB_NAME = $(LIBGSIF)
-VERSION = .0.1
+VERSION = .0
LIB_OBJS = io.o \
sample/load_save.o sample/sample_format.o sample/block.o sample/types.o sample/fill_buffer.o sample/convert_block.o sample/mulaw.o sample/sample_get_structure_aif.o sample/sample_get_structure_au.o sample/sample_get_structure_voc.o sample/sample_get_structure_wav.o sample/save_au.o sample/save_aiff.o \
song/save_midi.o song/midi_utils.o song/midi_decode.o song/load_song.o song/load_midi.o song/load_hmp.o song/load_mus.o song/convert_mus_to_midi.o
@@ -34,7 +34,7 @@
INCLUDES = -I../../include
-WARN = -Wall -Wstrict-prototypes
+WARN = -Wall #-Wstrict-prototypes
MY_CFLAGS = $(CFLAGS) $(DEBUG) $(OPTIMIZE) $(WARN) $(SYSCONFIG_THREADS_CFLAGS)

20
audio/gsi/files/patch-ah Normal file
View File

@ -0,0 +1,20 @@
--- ../gsi/lib/gsimidi_pcm/Makefile Wed Feb 2 19:03:27 2000
+++ ./lib/gsimidi_pcm/Makefile Thu Dec 7 18:59:21 2000
@@ -23,7 +23,7 @@
STATIC_LIB = libgsimidi_pcm.a
DYNAMIC_LIB = libgsimidi_pcm.so
LIB_NAME = $(LIBGSIMIDI_PCM)
-VERSION = .2.0
+VERSION = .2
LIB_SRCS = patchgram.c patchlex.c
LIB_OBJS = debug.o midi.o midiparse.o mididata.o input/midifile.o \
init.o input/midiin.o match.o volume.o instrum.o error.o \
@@ -33,7 +33,7 @@
INSTRUM_DIR = $(SHRDIR)/share/gsi/gsimidi_pcm
INSTRUM_MAP = $(INSTRUM_DIR)/patch.mp
-DEBUG_FLAGS = -DKPMIDI_DEBUG -Wall -Wstrict-prototypes
+DEBUG_FLAGS = -DKPMIDI_DEBUG -Wall #-Wstrict-prototypes
#OTHER_FLAGS = -DPOSIX_REALTIME -DREPLACED_GUS_C
#OUTPUT_SRCS = output/gsi.c
#OUTPUT_OBJS = output/gsi.o

20
audio/gsi/files/patch-ai Normal file
View File

@ -0,0 +1,20 @@
--- ../gsi/lib/gsimixer/Makefile Wed Feb 2 19:03:43 2000
+++ ./lib/gsimixer/Makefile Thu Dec 7 18:59:21 2000
@@ -23,7 +23,7 @@
STATIC_LIB = libgsimixer.a
DYNAMIC_LIB = libgsimixer.so
LIB_NAME = $(LIBGSIMIXER)
-VERSION = .0.1
+VERSION = .0
LIB_OBJS = gsimixer.o
@@ -31,7 +31,7 @@
INCLUDES = -I../../include
-WARN = -Wall -Wstrict-prototypes
+WARN = -Wall #-Wstrict-prototypes
MY_CFLAGS = $(CFLAGS) $(DEBUG) $(OPTIMIZE) $(WARN) $(SYSCONFIG_THREADS_CFLAGS)

20
audio/gsi/files/patch-aj Normal file
View File

@ -0,0 +1,20 @@
--- ../gsi/lib/gsipcm/Makefile Wed Feb 2 19:04:05 2000
+++ ./lib/gsipcm/Makefile Thu Dec 7 18:59:21 2000
@@ -23,7 +23,7 @@
STATIC_LIB = libgsipcm.a
DYNAMIC_LIB = libgsipcm.so
LIB_NAME = $(LIBGSIPCM)
-VERSION = .0.1
+VERSION = .0
LIB_OBJS = gsipcm.o
@@ -31,7 +31,7 @@
INCLUDES = -I../../include
-WARN = -Wall -Wstrict-prototypes
+WARN = -Wall #-Wstrict-prototypes
MY_CFLAGS = $(CFLAGS) $(DEBUG) $(OPTIMIZE) $(WARN) $(SYSCONFIG_THREADS_CFLAGS)

18
audio/gsi/files/patch-ak Normal file
View File

@ -0,0 +1,18 @@
--- ../gsi/lib/gsisynth/Makefile Wed Feb 2 19:04:23 2000
+++ ./lib/gsisynth/Makefile Thu Dec 7 18:59:21 2000
@@ -23,13 +23,13 @@
STATIC_LIB = libgsisynth.a
DYNAMIC_LIB = libgsisynth.so
LIB_NAME = $(LIBGSISYNTH)
-VERSION = .0.1
+VERSION = .0
LIB_OBJS = gsisynth.o midi_control.o api/synth_null.o api/synth_oss.o api/synth_oss_opl.o api/synth_oss_gus.o api/synth_ultra.o api/synth_pcm.o api/midi_control_null.o api/midi_control_oss.o api/midi_control_ultra.o
INCLUDES = -I../../include
-WARN = -Wall -Wstrict-prototypes
+WARN = -Wall #-Wstrict-prototypes
MY_CFLAGS = $(CFLAGS) $(DEBUG) $(OPTIMIZE) $(WARN) $(SYSCONFIG_THREADS_CFLAGS)

24
audio/gsi/files/patch-al Normal file
View File

@ -0,0 +1,24 @@
--- ../gsi/server/Makefile Wed Feb 2 19:01:15 2000
+++ ./server/Makefile Thu Dec 7 18:59:21 2000
@@ -23,7 +23,7 @@
DEFINES =
-WARN = -Wall -Wstrict-prototypes
+WARN = -Wall #-Wstrict-prototypes
CFLAGS = $(DEBUG) $(OPTIMIZE) $(WARN)
@@ -96,12 +96,6 @@
@echo
@echo "Installing the server:"
cp $(GSI_SERVER) $(INSTALL_FILE)
- @echo
- @echo "Don't forget to place a line in /etc/services, like this:"
- @echo "gsi_server 9000/tcp # Shared 3d sound server"
- @echo "if you want to be able to run the server over a network."
- @echo "[ note the security implications, see the documentation ]"
-
install.man: $(MANDIR)/man8/gsi_server.8 $(MANDIR)/man5/gsi.conf.5

11
audio/gsi/files/patch-am Normal file
View File

@ -0,0 +1,11 @@
--- ../gsi/test/gsicd/Makefile Wed Feb 2 19:05:14 2000
+++ ./test/gsicd/Makefile Thu Dec 7 18:59:21 2000
@@ -26,7 +26,7 @@
#-----------------------------------------------------------------------------#
INCLUDES = -I../../include
-CFLAGS = -O2 -fomit-frame-pointer -DDEBUG -g -Wall
+CFLAGS += -Wall -DDEBUG
ALL_CFLAGS = $(DEFINES) $(INCLUDES) $(CFLAGS)

11
audio/gsi/files/patch-an Normal file
View File

@ -0,0 +1,11 @@
--- ../gsi/test/gsif/Makefile Wed Feb 2 19:05:23 2000
+++ ./test/gsif/Makefile Thu Dec 7 18:59:21 2000
@@ -25,7 +25,7 @@
#-----------------------------------------------------------------------------#
INCLUDES = -I../../include
-CFLAGS = -O2 -fomit-frame-pointer -DDEBUG -g -Wall
+CFLAGS += -Wall -DDEBUG
ALL_CFLAGS = $(DEFINES) $(INCLUDES) $(CFLAGS)

11
audio/gsi/files/patch-ao Normal file
View File

@ -0,0 +1,11 @@
--- ../gsi/test/gsif/mus_to_midi/Makefile Wed Feb 2 19:05:31 2000
+++ ./test/gsif/mus_to_midi/Makefile Thu Dec 7 18:59:21 2000
@@ -25,7 +25,7 @@
#-----------------------------------------------------------------------------#
INCLUDES = -I../../../include
-CFLAGS = -O2 -fomit-frame-pointer -DDEBUG -g -Wall
+CFLAGS += -Wall -DDEBUG
ALL_CFLAGS = $(DEFINES) $(INCLUDES) $(CFLAGS)

11
audio/gsi/files/patch-ap Normal file
View File

@ -0,0 +1,11 @@
--- ../gsi/test/gsimixer/Makefile Wed Feb 2 19:05:44 2000
+++ ./test/gsimixer/Makefile Thu Dec 7 18:59:21 2000
@@ -26,7 +26,7 @@
#-----------------------------------------------------------------------------#
INCLUDES = -I../../include
-CFLAGS = -O2 -fomit-frame-pointer -DDEBUG -g -Wall
+CFLAGS += -Wall -DDEBUG
ALL_CFLAGS = $(DEFINES) $(INCLUDES) $(CFLAGS)

11
audio/gsi/files/patch-aq Normal file
View File

@ -0,0 +1,11 @@
--- ../gsi/test/gsipcm/Makefile Wed Feb 2 19:05:53 2000
+++ ./test/gsipcm/Makefile Thu Dec 7 18:59:21 2000
@@ -26,7 +26,7 @@
#-----------------------------------------------------------------------------#
INCLUDES = -I../../include
-CFLAGS = -O2 -fomit-frame-pointer -DDEBUG -g -Wall
+CFLAGS += -Wall -DDEBUG
ALL_CFLAGS = $(DEFINES) $(INCLUDES) $(CFLAGS)

11
audio/gsi/files/patch-ar Normal file
View File

@ -0,0 +1,11 @@
--- ../gsi/test/memory_leak/Makefile Wed Feb 2 19:06:01 2000
+++ ./test/memory_leak/Makefile Thu Dec 7 18:59:21 2000
@@ -28,7 +28,7 @@
INCLUDES = -I../../include #-I/usr/local/include
-CFLAGS = -O2 -fomit-frame-pointer -DDEBUG -g -Wall
+CFLAGS += -Wall -DDEBUG
ALL_CFLAGS = $(DEFINES) $(INCLUDES) $(CFLAGS)

11
audio/gsi/files/patch-as Normal file
View File

@ -0,0 +1,11 @@
--- ../gsi/test/server/general/Makefile Wed Feb 2 19:06:12 2000
+++ ./test/server/general/Makefile Thu Dec 7 18:59:21 2000
@@ -28,7 +28,7 @@
INCLUDES = -I../../../include
-CFLAGS = -O2 -fomit-frame-pointer -DDEBUG -g -Wall
+CFLAGS += -Wall -DDEBUG
ALL_CFLAGS = $(DEFINES) $(INCLUDES) $(CFLAGS)

11
audio/gsi/files/patch-at Normal file
View File

@ -0,0 +1,11 @@
--- ../gsi/test/server/shm/Makefile Wed Feb 2 19:06:19 2000
+++ ./test/server/shm/Makefile Thu Dec 7 18:59:21 2000
@@ -28,7 +28,7 @@
INCLUDES = -I../../../include
-CFLAGS = -O2 -fomit-frame-pointer -DDEBUG -g -Wall
+CFLAGS += -Wall -DDEBUG
ALL_CFLAGS = $(DEFINES) $(INCLUDES) $(CFLAGS)

11
audio/gsi/files/patch-au Normal file
View File

@ -0,0 +1,11 @@
--- ../gsi/test/server/stream/Makefile Wed Feb 2 19:06:27 2000
+++ ./test/server/stream/Makefile Thu Dec 7 18:59:21 2000
@@ -28,7 +28,7 @@
INCLUDES = -I../../../include
-CFLAGS = -O2 -fomit-frame-pointer -DDEBUG -g -Wall
+CFLAGS += -Wall -DDEBUG
ALL_CFLAGS = $(DEFINES) $(INCLUDES) $(CFLAGS)

11
audio/gsi/files/patch-av Normal file
View File

@ -0,0 +1,11 @@
--- ../gsi/test/server/threads/Makefile Wed Feb 2 19:06:37 2000
+++ ./test/server/threads/Makefile Thu Dec 7 18:59:21 2000
@@ -29,7 +29,7 @@
INCLUDES = -I../../../include
-CFLAGS = -O2 -fomit-frame-pointer -DDEBUG -g -Wall
+CFLAGS += -Wall -DDEBUG
ALL_CFLAGS = $(DEFINES) $(INCLUDES) $(CFLAGS)

1
audio/gsi/pkg-comment Normal file
View File

@ -0,0 +1 @@
GSI - general sound interface

20
audio/gsi/pkg-descr Normal file
View File

@ -0,0 +1,20 @@
From the home page:
GSI is an easy to use audio system which can be used over a network
and which gives applications, through a very simple API, sample
playing with stereo, 3D, doppler effects, music playing (MIDI, HMP,
MUS), cd playing and ejecting/changing.
GSI also contains a separately usable sound/music
loading/saving/format conversion library libgsif
(au/aiff/voc/wav/raw, midi/hmp/mus), although saving/format
conversion is not completely done.
GSI runs on any unix system that has generic /dev/audio (8000Hz mono
mulaw), OSS, ultrasound project drivers, or NAS (well, it did once, I
need to update the NAS stuff), e.g. Linux, OpenBSD and FreeBSD. CD
playing is dependant on the OS' ioctl's and structs so that probably
works on linux/*BSD only (solaris may work, as it seems to use the
same ioctl's/structs as linux).
License: 2-clause BSD-style for code / public domain for headers
WWW: http://www.xs4all.nl/~whs/gsi/gsi.html

6
audio/gsi/pkg-message Normal file
View File

@ -0,0 +1,6 @@
Don't forget to place a line in /etc/services, like this:
gsi_server 9000/tcp # Shared 3d sound server
if you want to be able to run the server over a network.
[ note the security implications, see the documentation ]

51
audio/gsi/pkg-plist Normal file
View File

@ -0,0 +1,51 @@
bin/gsi_server
bin/gsifile
bin/gsiplay
etc/gsi.conf.sample
include/gsi/config.h
include/gsi/device.h
include/gsi/gsi.h
include/gsi/gsi_command_lengths.h
include/gsi/gsi_command_names.h
include/gsi/gsi_commands.h
include/gsi/gsi_config.h
include/gsi/gsi_debug.h
include/gsi/gsi_event_lengths.h
include/gsi/gsi_event_names.h
include/gsi/gsi_eventmasks.h
include/gsi/gsi_events.h
include/gsi/gsi_instrumentnames_gus.h
include/gsi/gsi_midi_names.h
include/gsi/gsi_subcommands.h
include/gsi/gsicd.h
include/gsi/gsif.h
include/gsi/gsif_midi.h
include/gsi/gsimixer.h
include/gsi/gsipcm.h
include/gsi/gsisynth.h
include/gsi/kpmidi.h
include/gsi/kpmidi_patch.h
include/gsi/mixer_data.h
include/gsi/p_signal.c
include/gsi/p_signal.h
include/gsi/pcm_data.h
include/gsi/synth_data.h
include/gsi/version.h
include/gsi/whs_debug.h
include/gsi/whs_defines.h
include/gsi/whs_types.h
lib/libgsi.so
lib/libgsi.so.0
lib/libgsicd.so
lib/libgsicd.so.0
lib/libgsif.so
lib/libgsif.so.0
lib/libgsimidi_pcm.so
lib/libgsimidi_pcm.so.2
lib/libgsimixer.so
lib/libgsimixer.so.0
lib/libgsipcm.so
lib/libgsipcm.so.0
lib/libgsisynth.so
lib/libgsisynth.so.0
@dirrm include/gsi