From owner-freebsd-ports Wed Nov 8 12:10:13 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6CC8A37B4C5 for ; Wed, 8 Nov 2000 12:10:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA83247; Wed, 8 Nov 2000 12:10:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from farley.org (unknown [216.140.158.72]) by hub.freebsd.org (Postfix) with ESMTP id 6167E37B479 for ; Wed, 8 Nov 2000 12:03:43 -0800 (PST) Received: from thor.farley.org ([192.168.1.5]) by farley.org with esmtp (Exim 3.03 #1) id 13tbQ3-000CMj-00 for FreeBSD-gnats-submit@freebsd.org; Wed, 08 Nov 2000 14:02:03 -0600 Received: (from sean@localhost) by thor.farley.org (8.11.1/8.11.1) id eA8K23j35708; Wed, 8 Nov 2000 14:02:03 -0600 (CST) (envelope-from sean) Message-Id: <200011082002.eA8K23j35708@thor.farley.org> Date: Wed, 8 Nov 2000 14:02:03 -0600 (CST) From: sean-freebsd@farley.org Reply-To: sean-freebsd@farley.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/22699: New port: gsi (general sound interface) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 22699 >Category: ports >Synopsis: New port: gsi (general sound interface) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Nov 08 12:10:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: Sean C. Farley >Release: FreeBSD 4.1.1-STABLE i386 >Organization: >Environment: >Description: Important note: As this is my first port ever, I caution the victim^H^H^H^H^H^Hcommitter to really scrutinize this port. :) This is the development version as this is the first version to support FreeBSD. 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. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # gsi # gsi/Makefile # gsi/files # gsi/files/patch-aa # gsi/files/configure.sh # gsi/files/patch-ab # gsi/pkg-comment # gsi/pkg-descr # gsi/pkg-message # gsi/pkg-plist # gsi/distinfo # echo c - gsi mkdir -p gsi > /dev/null 2>&1 echo x - gsi/Makefile sed 's/^X//' >gsi/Makefile << 'END-of-gsi/Makefile' X# New ports collection makefile for: gsi X# Date created: 3 October 2000 X# Whom: Sean Farley X# X# $FreeBSD$ X# X XPORTNAME= gsi XPORTVERSION= 0.9.4 XCATEGORIES= audio XMASTER_SITES= http://www.xs4all.nl/~whs/gsi/bestanden/ XEXTRACT_SUFX= .tgz X XMAINTAINER= ports@FreeBSD.org X XWRKSRC= ${WRKDIR}/${PORTNAME} X XMAN1= gsifile.1 gsiplay.1 XMAN3= gsi.3 gsi_commands.3 gsi_events.3 gsif.3 gsipcm.3 XMAN5= gsi.conf.5 XMAN7= gsi_overview.7 XMAN8= gsi_server.8 X XMANCOMPRESSED= no X XUSE_GMAKE= yes X XINSTALLS_SHLIB= yes X X# This is needed to prevent the chopping off of the minor numbers X# on the shared libraries. XNO_FILTER_SHLIBS= yes X Xpre-configure: X @${FILESDIR}/configure.sh ${PREFIX} ${WRKSRC} X Xpost-install: X @${INSTALL_DATA} ${WRKSRC}/server.conf/gsi.conf.fbsd \ X ${PREFIX}/etc/gsi.conf.sample X.for fileNdx in gsi_server gsifile gsiplay X @strip ${PREFIX}/bin/${fileNdx} X.endfor X @${ECHO} "A sample configuration file was installed as" \ X ${PREFIX}/etc/gsi.conf.sample. X @${ECHO} "Copy and edit it to fit the system." X @${ECHO} X @${CAT} ${PKGMESSAGE} X X.include END-of-gsi/Makefile echo c - gsi/files mkdir -p gsi/files > /dev/null 2>&1 echo x - gsi/files/patch-aa sed 's/^X//' >gsi/files/patch-aa << 'END-of-gsi/files/patch-aa' X--- Config/Choose.sh Wed Jan 5 01:32:05 2000 X+++ Config/Choose.sh-stderr-off Tue Oct 3 15:49:11 2000 X@@ -7,15 +7,6 @@ X X prompt=$1 X default=$2 X-if [ "$default" != "" ]; then X- default="[$default]" X-fi X-if [ "`echo '\c'`" != "" ]; then X- echo -e "$prompt $default \c" >/dev/tty X-else X- echo -ne "$prompt $default " >/dev/tty X-fi X-#echo -e $prompt [$default] >/dev/tty X read answer X if [ "$answer" = "" ]; then X echo $2 END-of-gsi/files/patch-aa echo x - gsi/files/configure.sh sed 's/^X//' >gsi/files/configure.sh << 'END-of-gsi/files/configure.sh' X#!/bin/sh X XPREFIX=$1 XSYSCONFSCRIPT=Config/Configure_system.sh XAPPCONFSCRIPT=Config/Configure_application.sh X X# Change to the work directory. Xcd $2 X X# Execute two configure scripts while piping the output to /dev/null. X# This is because the output looks somewhat mashed. Xecho -n "Executing ${SYSCONFSCRIPT}... " X${SYSCONFSCRIPT} << _E_O_M_ > /dev/null 2>&1 X0 X${PREFIX} X_E_O_M_ Xecho "done." X Xecho -n "Executing ${APPCONFSCRIPT}... " X${APPCONFSCRIPT} << _E_O_M2_ > /dev/null 2>&1 X3 X X X X X_E_O_M2_ Xecho "done." X X# Fix a file to reflect where the configuration file should be looked for. Xecho -n "Configuring server/config.c... " Xmv server/config.c server/config.c.orig Xcat server/config.c.orig | sed "s|/etc/gsi.conf|${PREFIX}&|" > server/config.c X Xecho "done." END-of-gsi/files/configure.sh echo x - gsi/files/patch-ab sed 's/^X//' >gsi/files/patch-ab << 'END-of-gsi/files/patch-ab' X--- server/Makefile Wed Feb 2 11:01:15 2000 X+++ server/Makefile.patched Tue Nov 7 15:06:38 2000 X@@ -96,12 +96,6 @@ X @echo X @echo "Installing the server:" X cp $(GSI_SERVER) $(INSTALL_FILE) X- @echo X- @echo "Don't forget to place a line in /etc/services, like this:" X- @echo "gsi_server 9000/tcp # Shared 3d sound server" X- @echo "if you want to be able to run the server over a network." X- @echo "[ note the security implications, see the documentation ]" X- X X install.man: $(MANDIR)/man8/gsi_server.8 $(MANDIR)/man5/gsi.conf.5 X END-of-gsi/files/patch-ab echo x - gsi/pkg-comment sed 's/^X//' >gsi/pkg-comment << 'END-of-gsi/pkg-comment' XGSI - general sound interface END-of-gsi/pkg-comment echo x - gsi/pkg-descr sed 's/^X//' >gsi/pkg-descr << 'END-of-gsi/pkg-descr' XFrom the home page: X GSI is an easy to use audio system which can be used over a network X and which gives applications, through a very simple API, sample X playing with stereo, 3D, doppler effects, music playing (MIDI, HMP, X MUS), cd playing and ejecting/changing. X X GSI also contains a separately usable sound/music X loading/saving/format conversion library libgsif X (au/aiff/voc/wav/raw, midi/hmp/mus), although saving/format X conversion is not completely done. X X GSI runs on any unix system that has generic /dev/audio (8000Hz mono X mulaw), OSS, ultrasound project drivers, or NAS (well, it did once, I X need to update the NAS stuff), e.g. Linux, OpenBSD and FreeBSD. CD X playing is dependant on the OS' ioctl's and structs so that probably X works on linux/*BSD only (solaris may work, as it seems to use the X same ioctl's/structs as linux). X XLicense: 2-clause BSD-style for code / public domain for headers XWWW: http://www.xs4all.nl/~whs/gsi/gsi.html END-of-gsi/pkg-descr echo x - gsi/pkg-message sed 's/^X//' >gsi/pkg-message << 'END-of-gsi/pkg-message' XDon't forget to place a line in /etc/services, like this: X Xgsi_server 9000/tcp # Shared 3d sound server X Xif you want to be able to run the server over a network. X[ note the security implications, see the documentation ] END-of-gsi/pkg-message echo x - gsi/pkg-plist sed 's/^X//' >gsi/pkg-plist << 'END-of-gsi/pkg-plist' Xbin/gsi_server Xbin/gsiplay Xbin/gsifile Xetc/gsi.conf.sample Xinclude/gsi/config.h Xinclude/gsi/whs_types.h Xinclude/gsi/whs_defines.h Xinclude/gsi/whs_debug.h Xinclude/gsi/version.h Xinclude/gsi/synth_data.h Xinclude/gsi/pcm_data.h Xinclude/gsi/p_signal.h Xinclude/gsi/mixer_data.h Xinclude/gsi/kpmidi_patch.h Xinclude/gsi/kpmidi.h Xinclude/gsi/gsisynth.h Xinclude/gsi/gsipcm.h Xinclude/gsi/gsimixer.h Xinclude/gsi/gsif_midi.h Xinclude/gsi/gsif.h Xinclude/gsi/gsicd.h Xinclude/gsi/gsi_subcommands.h Xinclude/gsi/gsi_midi_names.h Xinclude/gsi/gsi_instrumentnames_gus.h Xinclude/gsi/gsi_events.h Xinclude/gsi/gsi_debug.h Xinclude/gsi/gsi_eventmasks.h Xinclude/gsi/gsi_event_names.h Xinclude/gsi/gsi_event_lengths.h Xinclude/gsi/gsi_config.h Xinclude/gsi/gsi_commands.h Xinclude/gsi/gsi_command_names.h Xinclude/gsi/gsi_command_lengths.h Xinclude/gsi/gsi.h Xinclude/gsi/device.h Xinclude/gsi/p_signal.c X@dirrm include/gsi Xlib/libgsi.so Xlib/libgsi.so.0.1 Xlib/libgsicd.so Xlib/libgsicd.so.0.1 Xlib/libgsif.so Xlib/libgsif.so.0.1 Xlib/libgsimidi_pcm.so Xlib/libgsimidi_pcm.so.2.0 Xlib/libgsimixer.so Xlib/libgsimixer.so.0.1 Xlib/libgsipcm.so Xlib/libgsipcm.so.0.1 Xlib/libgsisynth.so Xlib/libgsisynth.so.0.1 END-of-gsi/pkg-plist echo x - gsi/distinfo sed 's/^X//' >gsi/distinfo << 'END-of-gsi/distinfo' XMD5 (gsi-0.9.4.tgz) = d6d901b545d6bd2e264e8ed326fe07bf END-of-gsi/distinfo exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message