From cbff228de64e6b18dcad0364280e632574e884e4 Mon Sep 17 00:00:00 2001 From: angelos Date: Thu, 21 May 1998 01:38:01 +0000 Subject: [PATCH] xmcd port --- audio/xmcd/Makefile | 23 + audio/xmcd/files/md5 | 1 + audio/xmcd/patches/patch-aa | 59 + audio/xmcd/patches/patch-ab | 138 ++ audio/xmcd/patches/patch-ac | 46 + audio/xmcd/pkg/COMMENT | 1 + audio/xmcd/pkg/DESCR | 14 + audio/xmcd/pkg/PLIST | 148 ++ audio/xmcd/playmidi/Makefile | 23 + audio/xmcd/playmidi/files/md5 | 1 + audio/xmcd/playmidi/patches/patch-aa | 16 + audio/xmcd/playmidi/patches/patch-ab | 239 ++ audio/xmcd/playmidi/patches/patch-ac | 19 + audio/xmcd/playmidi/patches/patch-ad | 42 + audio/xmcd/playmidi/patches/patch-ae | 14 + audio/xmcd/playmidi/patches/patch-af | 16 + audio/xmcd/playmidi/patches/patch-ag | 16 + audio/xmcd/playmidi/pkg/COMMENT | 1 + audio/xmcd/playmidi/pkg/DESCR | 9 + audio/xmcd/playmidi/pkg/PLIST | 6 + audio/xmcd/rosegarden/Makefile | 25 + audio/xmcd/rosegarden/files/md5 | 1 + audio/xmcd/rosegarden/patches/patch-aa | 22 + audio/xmcd/rosegarden/patches/patch-ab | 28 + audio/xmcd/rosegarden/pkg/COMMENT | 1 + audio/xmcd/rosegarden/pkg/DESCR | 7 + audio/xmcd/rosegarden/pkg/PLIST | 14 + audio/xmcd/rsynth/Makefile | 26 + audio/xmcd/rsynth/files/config.guess | 497 ++++ audio/xmcd/rsynth/files/config.sub | 833 +++++++ audio/xmcd/rsynth/files/configure | 2455 ++++++++++++++++++++ audio/xmcd/rsynth/files/freebsdplay.c | 140 ++ audio/xmcd/rsynth/files/md5 | 1 + audio/xmcd/rsynth/patches/patch-aa | 9 + audio/xmcd/rsynth/patches/patch-ab | 30 + audio/xmcd/rsynth/patches/patch-ac | 11 + audio/xmcd/rsynth/pkg/COMMENT | 1 + audio/xmcd/rsynth/pkg/DESCR | 15 + audio/xmcd/rsynth/pkg/PLIST | 2 + audio/xmcd/splay/Makefile | 18 + audio/xmcd/splay/files/md5 | 1 + audio/xmcd/splay/patches/patch-aa | 19 + audio/xmcd/splay/patches/patch-ab | 11 + audio/xmcd/splay/pkg/COMMENT | 1 + audio/xmcd/splay/pkg/DESCR | 14 + audio/xmcd/splay/pkg/PLIST | 1 + audio/xmcd/timidity/Makefile | 36 + audio/xmcd/timidity/files/md5 | 2 + audio/xmcd/timidity/patches/patch-aa | 85 + audio/xmcd/timidity/patches/patch-ab | 150 ++ audio/xmcd/timidity/patches/patch-ac | 40 + audio/xmcd/timidity/patches/patch-ad | 13 + audio/xmcd/timidity/pkg/COMMENT | 1 + audio/xmcd/timidity/pkg/DESCR | 5 + audio/xmcd/timidity/pkg/PLIST | 205 ++ audio/xmcd/tracker/Makefile | 35 + audio/xmcd/tracker/files/md5 | 1 + audio/xmcd/tracker/patches/patch-aa | 73 + audio/xmcd/tracker/patches/patch-ab | 33 + audio/xmcd/tracker/patches/patch-ac | 24 + audio/xmcd/tracker/pkg/COMMENT | 1 + audio/xmcd/tracker/pkg/DESCR | 6 + audio/xmcd/tracker/pkg/PLIST | 88 + audio/xmcd/workman/Makefile | 22 + audio/xmcd/workman/files/md5 | 1 + audio/xmcd/workman/patches/patch-aa | 288 +++ audio/xmcd/workman/pkg/COMMENT | 1 + audio/xmcd/workman/pkg/DESCR | 13 + audio/xmcd/workman/pkg/PLIST | 3 + audio/xmcd/xcdplayer/Makefile | 19 + audio/xmcd/xcdplayer/files/cdrom_freebsd.c | 601 +++++ audio/xmcd/xcdplayer/files/cdrom_freebsd.h | 95 + audio/xmcd/xcdplayer/files/md5 | 1 + audio/xmcd/xcdplayer/patches/patch-aa | 171 ++ audio/xmcd/xcdplayer/patches/patch-ab | 266 +++ audio/xmcd/xcdplayer/pkg/COMMENT | 1 + audio/xmcd/xcdplayer/pkg/DESCR | 8 + audio/xmcd/xcdplayer/pkg/PLIST | 3 + audio/xmcd/xcdplayer/scripts/pre-configure | 8 + audio/xmcd/xmcd/Makefile | 23 + audio/xmcd/xmcd/files/md5 | 1 + audio/xmcd/xmcd/patches/patch-aa | 59 + audio/xmcd/xmcd/patches/patch-ab | 138 ++ audio/xmcd/xmcd/patches/patch-ac | 46 + audio/xmcd/xmcd/pkg/COMMENT | 1 + audio/xmcd/xmcd/pkg/DESCR | 14 + audio/xmcd/xmcd/pkg/PLIST | 148 ++ audio/xmcd/xmix/Makefile | 26 + audio/xmcd/xmix/files/md5 | 2 + audio/xmcd/xmix/patches/patch-aa | 37 + audio/xmcd/xmix/pkg/COMMENT | 1 + audio/xmcd/xmix/pkg/DESCR | 4 + audio/xmcd/xmix/pkg/PLIST | 3 + audio/xmcd/xmmix/Makefile | 19 + audio/xmcd/xmmix/files/md5 | 1 + audio/xmcd/xmmix/patches/patch-aa | 22 + audio/xmcd/xmmix/pkg/COMMENT | 1 + audio/xmcd/xmmix/pkg/DESCR | 20 + audio/xmcd/xmmix/pkg/PLIST | 4 + 99 files changed, 7884 insertions(+) create mode 100644 audio/xmcd/Makefile create mode 100644 audio/xmcd/files/md5 create mode 100644 audio/xmcd/patches/patch-aa create mode 100644 audio/xmcd/patches/patch-ab create mode 100644 audio/xmcd/patches/patch-ac create mode 100644 audio/xmcd/pkg/COMMENT create mode 100644 audio/xmcd/pkg/DESCR create mode 100644 audio/xmcd/pkg/PLIST create mode 100644 audio/xmcd/playmidi/Makefile create mode 100644 audio/xmcd/playmidi/files/md5 create mode 100644 audio/xmcd/playmidi/patches/patch-aa create mode 100644 audio/xmcd/playmidi/patches/patch-ab create mode 100644 audio/xmcd/playmidi/patches/patch-ac create mode 100644 audio/xmcd/playmidi/patches/patch-ad create mode 100644 audio/xmcd/playmidi/patches/patch-ae create mode 100644 audio/xmcd/playmidi/patches/patch-af create mode 100644 audio/xmcd/playmidi/patches/patch-ag create mode 100644 audio/xmcd/playmidi/pkg/COMMENT create mode 100644 audio/xmcd/playmidi/pkg/DESCR create mode 100644 audio/xmcd/playmidi/pkg/PLIST create mode 100644 audio/xmcd/rosegarden/Makefile create mode 100644 audio/xmcd/rosegarden/files/md5 create mode 100644 audio/xmcd/rosegarden/patches/patch-aa create mode 100644 audio/xmcd/rosegarden/patches/patch-ab create mode 100644 audio/xmcd/rosegarden/pkg/COMMENT create mode 100644 audio/xmcd/rosegarden/pkg/DESCR create mode 100644 audio/xmcd/rosegarden/pkg/PLIST create mode 100644 audio/xmcd/rsynth/Makefile create mode 100644 audio/xmcd/rsynth/files/config.guess create mode 100644 audio/xmcd/rsynth/files/config.sub create mode 100644 audio/xmcd/rsynth/files/configure create mode 100644 audio/xmcd/rsynth/files/freebsdplay.c create mode 100644 audio/xmcd/rsynth/files/md5 create mode 100644 audio/xmcd/rsynth/patches/patch-aa create mode 100644 audio/xmcd/rsynth/patches/patch-ab create mode 100644 audio/xmcd/rsynth/patches/patch-ac create mode 100644 audio/xmcd/rsynth/pkg/COMMENT create mode 100644 audio/xmcd/rsynth/pkg/DESCR create mode 100644 audio/xmcd/rsynth/pkg/PLIST create mode 100644 audio/xmcd/splay/Makefile create mode 100644 audio/xmcd/splay/files/md5 create mode 100644 audio/xmcd/splay/patches/patch-aa create mode 100644 audio/xmcd/splay/patches/patch-ab create mode 100644 audio/xmcd/splay/pkg/COMMENT create mode 100644 audio/xmcd/splay/pkg/DESCR create mode 100644 audio/xmcd/splay/pkg/PLIST create mode 100644 audio/xmcd/timidity/Makefile create mode 100644 audio/xmcd/timidity/files/md5 create mode 100644 audio/xmcd/timidity/patches/patch-aa create mode 100644 audio/xmcd/timidity/patches/patch-ab create mode 100644 audio/xmcd/timidity/patches/patch-ac create mode 100644 audio/xmcd/timidity/patches/patch-ad create mode 100644 audio/xmcd/timidity/pkg/COMMENT create mode 100644 audio/xmcd/timidity/pkg/DESCR create mode 100644 audio/xmcd/timidity/pkg/PLIST create mode 100644 audio/xmcd/tracker/Makefile create mode 100644 audio/xmcd/tracker/files/md5 create mode 100644 audio/xmcd/tracker/patches/patch-aa create mode 100644 audio/xmcd/tracker/patches/patch-ab create mode 100644 audio/xmcd/tracker/patches/patch-ac create mode 100644 audio/xmcd/tracker/pkg/COMMENT create mode 100644 audio/xmcd/tracker/pkg/DESCR create mode 100644 audio/xmcd/tracker/pkg/PLIST create mode 100644 audio/xmcd/workman/Makefile create mode 100644 audio/xmcd/workman/files/md5 create mode 100644 audio/xmcd/workman/patches/patch-aa create mode 100644 audio/xmcd/workman/pkg/COMMENT create mode 100644 audio/xmcd/workman/pkg/DESCR create mode 100644 audio/xmcd/workman/pkg/PLIST create mode 100644 audio/xmcd/xcdplayer/Makefile create mode 100644 audio/xmcd/xcdplayer/files/cdrom_freebsd.c create mode 100644 audio/xmcd/xcdplayer/files/cdrom_freebsd.h create mode 100644 audio/xmcd/xcdplayer/files/md5 create mode 100644 audio/xmcd/xcdplayer/patches/patch-aa create mode 100644 audio/xmcd/xcdplayer/patches/patch-ab create mode 100644 audio/xmcd/xcdplayer/pkg/COMMENT create mode 100644 audio/xmcd/xcdplayer/pkg/DESCR create mode 100644 audio/xmcd/xcdplayer/pkg/PLIST create mode 100644 audio/xmcd/xcdplayer/scripts/pre-configure create mode 100644 audio/xmcd/xmcd/Makefile create mode 100644 audio/xmcd/xmcd/files/md5 create mode 100644 audio/xmcd/xmcd/patches/patch-aa create mode 100644 audio/xmcd/xmcd/patches/patch-ab create mode 100644 audio/xmcd/xmcd/patches/patch-ac create mode 100644 audio/xmcd/xmcd/pkg/COMMENT create mode 100644 audio/xmcd/xmcd/pkg/DESCR create mode 100644 audio/xmcd/xmcd/pkg/PLIST create mode 100644 audio/xmcd/xmix/Makefile create mode 100644 audio/xmcd/xmix/files/md5 create mode 100644 audio/xmcd/xmix/patches/patch-aa create mode 100644 audio/xmcd/xmix/pkg/COMMENT create mode 100644 audio/xmcd/xmix/pkg/DESCR create mode 100644 audio/xmcd/xmix/pkg/PLIST create mode 100644 audio/xmcd/xmmix/Makefile create mode 100644 audio/xmcd/xmmix/files/md5 create mode 100644 audio/xmcd/xmmix/patches/patch-aa create mode 100644 audio/xmcd/xmmix/pkg/COMMENT create mode 100644 audio/xmcd/xmmix/pkg/DESCR create mode 100644 audio/xmcd/xmmix/pkg/PLIST diff --git a/audio/xmcd/Makefile b/audio/xmcd/Makefile new file mode 100644 index 00000000000..35865f7c9a0 --- /dev/null +++ b/audio/xmcd/Makefile @@ -0,0 +1,23 @@ +# OpenBSD makefile for: xmcd +# Version required: 2.2 +# Date created: May 20 1998 +# Whom: Angelos D. Keromytis +# +# $OpenBSD: Makefile,v 1.1.1.1 1998/05/21 01:38:30 angelos Exp $ +# + +DISTNAME= xmcd-2.2 +CATEGORIES= audio +MASTER_SITES= ${MASTER_SITE_XCONTRIB} +MASTER_SITE_SUBDIR= applications/xmcd + +MAINTAINER= angelos@openbsd.org + +REQUIRES_MOTIF= yes +USE_IMAKE= yes +IS_INTERACTIVE= yes # asks a lot of questions + +post-install: + ${CP} ${WRKSRC}/README ${PREFIX}/lib/X11/xmcd + +.include diff --git a/audio/xmcd/files/md5 b/audio/xmcd/files/md5 new file mode 100644 index 00000000000..0bde8c5fb95 --- /dev/null +++ b/audio/xmcd/files/md5 @@ -0,0 +1 @@ +MD5 (xmcd-2.2.tar.gz) = a47e379e7b93c597b9bf729d79c13ded diff --git a/audio/xmcd/patches/patch-aa b/audio/xmcd/patches/patch-aa new file mode 100644 index 00000000000..c274277434e --- /dev/null +++ b/audio/xmcd/patches/patch-aa @@ -0,0 +1,59 @@ +*** ./xmcd_d/Imakefile.orig Thu Apr 4 21:42:31 1996 +--- ./xmcd_d/Imakefile Thu Apr 4 23:31:17 1996 +*************** +*** 43,49 **** + * #include "Motif.tmpl" + * #include "Motif.rules" + */ +! LOCAL_LIBRARIES= XmClientLibs + + + /**** Optional defines: Change as you see fit. ***************************** +--- 43,49 ---- + * #include "Motif.tmpl" + * #include "Motif.rules" + */ +! LOCAL_LIBRARIES= ${MOTIFLIB} XawClientLibs + + + /**** Optional defines: Change as you see fit. ***************************** +*************** +*** 67,78 **** + DEFINES= + #endif + + + /* + * Add local include path + */ + INCLUDES=-I.. +- + + /* + * C Source files +--- 67,78 ---- + DEFINES= + #endif + ++ MANSUFFIX = 1 + + /* + * Add local include path + */ + INCLUDES=-I.. + + /* + * C Source files +*** ./dbconv_d/Imakefile.orig Thu Apr 4 23:33:09 1996 +--- ./dbconv_d/Imakefile Thu Apr 4 23:33:53 1996 +*************** +*** 24,29 **** +--- 24,31 ---- + * + */ + ++ MANSUFFIX = 1 ++ + + /* + * Add local include path diff --git a/audio/xmcd/patches/patch-ab b/audio/xmcd/patches/patch-ab new file mode 100644 index 00000000000..b4646bbae0c --- /dev/null +++ b/audio/xmcd/patches/patch-ab @@ -0,0 +1,138 @@ +*** install.sh.orig Tue Aug 12 19:12:27 1997 +--- install.sh Sun Sep 7 16:23:43 1997 +*************** +*** 48,53 **** +--- 48,56 ---- + ERRFILE=/tmp/xmcd.err + TMPFILE=/tmp/xmcdinst.$$ + ++ # Flag for indicating we do not want to prompt the user if possible. ++ NO_PROMPT=1 ++ + # + # Utility functions + # +*************** +*** 586,592 **** + + while : + do +! if getstr "\nEnter X binary directory\n[${BINDIR}]:" + then + if [ -d "$ANS" ] + then +--- 589,599 ---- + + while : + do +! if [ -n "$NO_PROMPT" ] +! then +! $ECHO "X binary directory - using ${BINDIR}" +! break +! elif getstr "\nEnter X binary directory\n[${BINDIR}]:" + then + if [ -d "$ANS" ] + then +*************** +*** 634,640 **** + + while : + do +! if getstr "\nEnter X library directory\n[${LIBDIR}]:" + then + if [ -d "$ANS" ] + then +--- 641,651 ---- + + while : + do +! if [ -n "$NO_PROMPT" ] +! then +! $ECHO "X library directory - using ${LIBDIR}" +! break +! elif getstr "\nEnter X library directory\n[${LIBDIR}]:" + then + if [ -d "$ANS" ] + then +*************** +*** 657,663 **** + APPDEFAULTSDIR=$LIBDIR/app-defaults + while : + do +! if getstr "\nEnter X app-defaults directory\n[${APPDEFAULTSDIR}]:" + then + if [ -d "$ANS" ] + then +--- 668,678 ---- + APPDEFAULTSDIR=$LIBDIR/app-defaults + while : + do +! if [ -n "$NO_PROMPT" ] +! then +! $ECHO "X app-defaults directory - using ${LIBDIR}" +! break +! elif getstr "\nEnter X app-defaults directory\n[${APPDEFAULTSDIR}]:" + then + if [ -d "$ANS" ] + then +*************** +*** 680,686 **** + XMCDLIB=$LIBDIR/xmcd + while : + do +! if getstr "\nEnter xmcd library directory\n[${XMCDLIB}]:" + then + if [ -d "$ANS" ] + then +--- 695,705 ---- + XMCDLIB=$LIBDIR/xmcd + while : + do +! if [ -n "$NO_PROMPT" ] +! then +! $ECHO "xmcd library directory - using ${XMCDLIB}" +! break +! elif getstr "\nEnter xmcd library directory\n[${XMCDLIB}]:" + then + if [ -d "$ANS" ] + then +*************** +*** 733,739 **** + $ECHO "\n\nThe on-line manual directory is where the man pages in" + $ECHO "in the xmcd package will be installed." + +! if getstr "\nEnter on-line manual directory\n[${MANDIR}]:" + then + MANDIR=$ANS + fi +--- 752,761 ---- + $ECHO "\n\nThe on-line manual directory is where the man pages in" + $ECHO "in the xmcd package will be installed." + +! if [ -n "$NO_PROMPT" ] +! then +! $ECHO "xmcd on-line manual directory - using ${MANDIR}" +! elif getstr "\nEnter on-line manual directory\n[${MANDIR}]:" + then + MANDIR=$ANS + fi +*************** +*** 758,764 **** + MANSUFFIX=1 + fi + +! if getstr "\nEnter on-line manual file name suffix\n[${MANSUFFIX}]:" + then + MANSUFFIX=$ANS + fi +--- 780,789 ---- + MANSUFFIX=1 + fi + +! if [ -n "$NO_PROMPT" ] +! then +! $ECHO "xmcd on-line manual file name suffix - using ${MANSUFFIX}" +! elif getstr "\nEnter on-line manual file name suffix\n[${MANSUFFIX}]:" + then + MANSUFFIX=$ANS + fi diff --git a/audio/xmcd/patches/patch-ac b/audio/xmcd/patches/patch-ac new file mode 100644 index 00000000000..70bdebed4ae --- /dev/null +++ b/audio/xmcd/patches/patch-ac @@ -0,0 +1,46 @@ +*** cda_d/Imakefile.orig Sun Nov 30 18:36:25 1997 +--- cda_d/Imakefile Wed May 20 21:28:11 1998 +*************** +*** 86,92 **** + LOCAL_LIBRARIES= + #else + #if defined(OpenBSDArchitecture) +! LOCAL_LIBRARIES=-lncurses -ltermlib + #else + #if defined(UltrixArchitecture) + LOCAL_LIBRARIES=-lcursesX +--- 86,92 ---- + LOCAL_LIBRARIES= + #else + #if defined(OpenBSDArchitecture) +! LOCAL_LIBRARIES=-lcurses -ltermlib + #else + #if defined(UltrixArchitecture) + LOCAL_LIBRARIES=-lcursesX +*************** +*** 97,103 **** + #if defined(__QNX__) + LOCAL_LIBRARIES=-lncurses + #else +! LOCAL_LIBRARIES=-lcurses + #endif /* __QNX__ */ + #endif /* SINIX */ + #endif /* ultrix */ +--- 97,103 ---- + #if defined(__QNX__) + LOCAL_LIBRARIES=-lncurses + #else +! LOCAL_LIBRARIES=-lcurses -ltermlib -lossaudio + #endif /* __QNX__ */ + #endif /* SINIX */ + #endif /* ultrix */ +*************** +*** 107,112 **** +--- 107,113 ---- + #endif /* LinuxArchitecture OpenBSDArchitecture */ + #endif /* SunArchitecture */ + ++ MANSUFFIX = 1 + + /* + * C Source files diff --git a/audio/xmcd/pkg/COMMENT b/audio/xmcd/pkg/COMMENT new file mode 100644 index 00000000000..76dcbc12d27 --- /dev/null +++ b/audio/xmcd/pkg/COMMENT @@ -0,0 +1 @@ +Motif CD player. diff --git a/audio/xmcd/pkg/DESCR b/audio/xmcd/pkg/DESCR new file mode 100644 index 00000000000..761dcb3fc50 --- /dev/null +++ b/audio/xmcd/pkg/DESCR @@ -0,0 +1,14 @@ +Xmcd is a program that allows the use of the CD-ROM drive +as a full-featured stereo compact-disc player for the X +window system. + +Most of the features found on real CD players are +available in xmcd, such as shuffle and repeat, track +programming functions, a numeric keypad and track warp +slider for direct track access. Additional functions +include sample play, A to B segment play, volume control, +balance control, etc. Several automation options are also +available on CD load, eject, play completion and program +exit. A Channel Routing feature allow you to select from +several stereo or mono routing options. The volume +control slider taper characteristics can also be altered. diff --git a/audio/xmcd/pkg/PLIST b/audio/xmcd/pkg/PLIST new file mode 100644 index 00000000000..b1cf6889881 --- /dev/null +++ b/audio/xmcd/pkg/PLIST @@ -0,0 +1,148 @@ +bin/xmcd +bin/cda +bin/wm2xmcd +lib/X11/app-defaults/XMcd +lib/X11/xmcd/help/Ab.btn +lib/X11/xmcd/help/DbProg.btn +lib/X11/xmcd/help/DdCancel.btn +lib/X11/xmcd/help/DdClr.btn +lib/X11/xmcd/help/DdOk.btn +lib/X11/xmcd/help/DpAbout.btn +lib/X11/xmcd/help/DpAddPgm.btn +lib/X11/xmcd/help/DpCancel.btn +lib/X11/xmcd/help/DpClrPgm.btn +lib/X11/xmcd/help/DpDExt.btn +lib/X11/xmcd/help/DpLink.btn +lib/X11/xmcd/help/DpLoad.btn +lib/X11/xmcd/help/DpSave.btn +lib/X11/xmcd/help/DpSend.btn +lib/X11/xmcd/help/DpTExt.btn +lib/X11/xmcd/help/DpTimSel.btn +lib/X11/xmcd/help/DsCancel.btn +lib/X11/xmcd/help/DsOk.btn +lib/X11/xmcd/help/DtCancel.btn +lib/X11/xmcd/help/DtClr.btn +lib/X11/xmcd/help/DtOk.btn +lib/X11/xmcd/help/Eject.btn +lib/X11/xmcd/help/Ff.btn +lib/X11/xmcd/help/Help.btn +lib/X11/xmcd/help/Keypad.btn +lib/X11/xmcd/help/KpCancel.btn +lib/X11/xmcd/help/KpClear.btn +lib/X11/xmcd/help/KpEnter.btn +lib/X11/xmcd/help/KpNum.btn +lib/X11/xmcd/help/KpSel.btn +lib/X11/xmcd/help/LsCancel.btn +lib/X11/xmcd/help/LsOk.btn +lib/X11/xmcd/help/NextDisc.btn +lib/X11/xmcd/help/NextIdx.btn +lib/X11/xmcd/help/NextTrk.btn +lib/X11/xmcd/help/OpBalCtr.btn +lib/X11/xmcd/help/OpOk.btn +lib/X11/xmcd/help/OpReset.btn +lib/X11/xmcd/help/OpSave.btn +lib/X11/xmcd/help/Options.btn +lib/X11/xmcd/help/PlayPaus.btn +lib/X11/xmcd/help/Power.btn +lib/X11/xmcd/help/PrevDisc.btn +lib/X11/xmcd/help/PrevIdx.btn +lib/X11/xmcd/help/PrevTrk.btn +lib/X11/xmcd/help/Rew.btn +lib/X11/xmcd/help/Sample.btn +lib/X11/xmcd/help/Stop.btn +lib/X11/xmcd/help/Time.btn +lib/X11/xmcd/help/DbMode.lbl +lib/X11/xmcd/help/Disc.lbl +lib/X11/xmcd/help/DiscId.lbl +lib/X11/xmcd/help/DiscTitl.lbl +lib/X11/xmcd/help/Index.lbl +lib/X11/xmcd/help/Keypad.lbl +lib/X11/xmcd/help/PlayMode.lbl +lib/X11/xmcd/help/ProgMode.lbl +lib/X11/xmcd/help/RptCnt.lbl +lib/X11/xmcd/help/Time.lbl +lib/X11/xmcd/help/TimeMode.lbl +lib/X11/xmcd/help/Track.lbl +lib/X11/xmcd/help/TrkTitle.lbl +lib/X11/xmcd/help/DdDisc.txw +lib/X11/xmcd/help/DpDTitle.txw +lib/X11/xmcd/help/DpPgmSeq.txw +lib/X11/xmcd/help/DpTTitle.txw +lib/X11/xmcd/help/DtTrack.txw +lib/X11/xmcd/help/KpWarp.scl +lib/X11/xmcd/help/Level.scl +lib/X11/xmcd/help/OpBal.scl +lib/X11/xmcd/help/DpTrk.lsw +lib/X11/xmcd/help/DsDir.lsw +lib/X11/xmcd/help/LsLink.lsw +lib/X11/xmcd/help/OpChRt.rbx +lib/X11/xmcd/help/OpExit.rbx +lib/X11/xmcd/help/OpLoad.rbx +lib/X11/xmcd/help/OpVolTpr.rbx +lib/X11/xmcd/help/Main.cbx +lib/X11/xmcd/help/OpChgr.cbx +lib/X11/xmcd/help/OpDone.cbx +lib/X11/xmcd/help/OpEject.cbx +lib/X11/xmcd/help/OpLoad.cbx +lib/X11/xmcd/cddb/misc/4102560a +lib/X11/xmcd/pixmaps/xmcd.icon +lib/X11/xmcd/pixmaps/xmcd_a.px +lib/X11/xmcd/pixmaps/xmcd_b.px +lib/X11/xmcd/pixmaps/xmcd.xpm +lib/X11/xmcd/config/common.cfg +lib/X11/xmcd/config/device.cfg +lib/X11/xmcd/config/.tbl/Acer +lib/X11/xmcd/config/.tbl/Apple +lib/X11/xmcd/config/.tbl/Aztech +lib/X11/xmcd/config/.tbl/Chinon +lib/X11/xmcd/config/.tbl/Compaq +lib/X11/xmcd/config/.tbl/Compro +lib/X11/xmcd/config/.tbl/Creative +lib/X11/xmcd/config/.tbl/DEC +lib/X11/xmcd/config/.tbl/Goldstar +lib/X11/xmcd/config/.tbl/HP +lib/X11/xmcd/config/.tbl/Hitachi +lib/X11/xmcd/config/.tbl/IBM +lib/X11/xmcd/config/.tbl/Longshin +lib/X11/xmcd/config/.tbl/MDI +lib/X11/xmcd/config/.tbl/MediaVis +lib/X11/xmcd/config/.tbl/Mitsumi +lib/X11/xmcd/config/.tbl/NEC +lib/X11/xmcd/config/.tbl/Nakamich +lib/X11/xmcd/config/.tbl/Okano +lib/X11/xmcd/config/.tbl/Opticsto +lib/X11/xmcd/config/.tbl/Orchid +lib/X11/xmcd/config/.tbl/Panasoni +lib/X11/xmcd/config/.tbl/Philips +lib/X11/xmcd/config/.tbl/Pioneer +lib/X11/xmcd/config/.tbl/Plextor +lib/X11/xmcd/config/.tbl/Procom +lib/X11/xmcd/config/.tbl/SGI +lib/X11/xmcd/config/.tbl/Sanyo +lib/X11/xmcd/config/.tbl/Sony +lib/X11/xmcd/config/.tbl/Stratus +lib/X11/xmcd/config/.tbl/Sun +lib/X11/xmcd/config/.tbl/Teac +lib/X11/xmcd/config/.tbl/Toshiba +lib/X11/xmcd/config/.tbl/Yamaha +lib/X11/xmcd/config/config.sh +man/man1/xmcd.1 +man/man1/cda.1 +man/man1/wm2xmcd.1 +@dirrm lib/X11/xmcd/pixmaps +@dirrm lib/X11/xmcd/help +@dirrm lib/X11/xmcd/config/.tbl +@dirrm lib/X11/xmcd/config +@dirrm lib/X11/xmcd/cddb/soundtrack +@dirrm lib/X11/xmcd/cddb/rock +@dirrm lib/X11/xmcd/cddb/reggae +@dirrm lib/X11/xmcd/cddb/newage +@dirrm lib/X11/xmcd/cddb/misc +@dirrm lib/X11/xmcd/cddb/jazz +@dirrm lib/X11/xmcd/cddb/folk +@dirrm lib/X11/xmcd/cddb/data +@dirrm lib/X11/xmcd/cddb/country +@dirrm lib/X11/xmcd/cddb/classical +@dirrm lib/X11/xmcd/cddb/blues +@dirrm lib/X11/xmcd/cddb +@dirrm lib/X11/xmcd diff --git a/audio/xmcd/playmidi/Makefile b/audio/xmcd/playmidi/Makefile new file mode 100644 index 00000000000..997bdc45ca8 --- /dev/null +++ b/audio/xmcd/playmidi/Makefile @@ -0,0 +1,23 @@ +# New ports collection makefile for: playmidi +# Version required: 2.3 +# Date created: 27 Feb 1995 +# Whom: ache +# +# $Id: Makefile,v 1.1.1.1 1998/05/21 01:38:01 angelos Exp $ +# + +DISTNAME= playmidi-2.3 +CATEGORIES= audio +MASTER_SITES= ${MASTER_SITE_SUNSITE} +MASTER_SITE_SUBDIR= apps/sound/players + +MAINTAINER= ache@FreeBSD.ORG + +IS_INTERACTIVE= YES # asks what devices you want to support +HAS_CONFIGURE= YES +CONFIGURE_SCRIPT= Configure +CONFIGURE_ENV= PREFIX=${PREFIX} +INSTALL_TARGET= install.lame install.man +MAN1= playmidi.1 + +.include diff --git a/audio/xmcd/playmidi/files/md5 b/audio/xmcd/playmidi/files/md5 new file mode 100644 index 00000000000..55c3660f53c --- /dev/null +++ b/audio/xmcd/playmidi/files/md5 @@ -0,0 +1 @@ +MD5 (playmidi-2.3.tar.gz) = f5114d85cdbf6096f5820eb58b9ea390 diff --git a/audio/xmcd/playmidi/patches/patch-aa b/audio/xmcd/playmidi/patches/patch-aa new file mode 100644 index 00000000000..1a73bb923d3 --- /dev/null +++ b/audio/xmcd/playmidi/patches/patch-aa @@ -0,0 +1,16 @@ +*** patchload.c.orig Sun Nov 20 03:46:34 1994 +--- patchload.c Mon Feb 27 23:02:13 1995 +*************** +*** 7,13 **** +--- 7,17 ---- + *************************************************************************/ + + #include "playmidi.h" ++ #ifdef __FreeBSD__ ++ #include ++ #else + #include ++ #endif + #include + #include + #include diff --git a/audio/xmcd/playmidi/patches/patch-ab b/audio/xmcd/playmidi/patches/patch-ab new file mode 100644 index 00000000000..d0463befab9 --- /dev/null +++ b/audio/xmcd/playmidi/patches/patch-ab @@ -0,0 +1,239 @@ +*** Makefile.orig Sat Feb 24 17:00:00 1996 +--- Makefile Fri Nov 15 09:38:06 1996 +*************** +*** 28,34 **** + + # ncurses usually /usr/lib, -L/usr/local/lib doesn't hurt + # unless there's more than one ncurses floating around on your system +! LIBNC = -L/usr/local/lib -lncurses + + ######### NOTE: X11R6 or newer REQUIRED + LIBX11 = -L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11 -lXext -lSM -lICE +--- 28,34 ---- + + # ncurses usually /usr/lib, -L/usr/local/lib doesn't hurt + # unless there's more than one ncurses floating around on your system +! LIBNC = -lncurses -lmytinfo + + ######### NOTE: X11R6 or newer REQUIRED + LIBX11 = -L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11 -lXext -lSM -lICE +*************** +*** 36,60 **** + + # ncurses is usually in /usr/include/ncurses, but you may need + # to use /usr/local/include/ncurses depending on your setup. +! INCNC = -I/usr/include/ncurses + + # just in case you keep your X includes in an odd location. + INCX11 = -I/usr/X11R6/include -DNARROWPROTO + + # usually in /usr/include, but -I/usr/local/include doesn't hurt + # unless there's more than one svgalib floating around your system. +! INCVGA = -I/usr/local/include + + # Directory where application defaults files are stored for X11 version + XAPPDEFAULTS = /usr/X11R6/lib/X11/app-defaults + + INCLUDES= $(INCNC) $(INCX11) $(INCVGA) +! INSTALLDIR = /usr/local/bin +! INSTALL = install -s + + # if you are using the GUS Ultra driver module, add -DULTRA_DRIVER +! CFLAGS = -Wall -pipe -fomit-frame-pointer -O2 -m486 +! LDFLAGS = + + OBJECTS = playmidi.o readmidi.o playevents.o \ + patchload.o emumidi.o io_ncurses.o +--- 36,62 ---- + + # ncurses is usually in /usr/include/ncurses, but you may need + # to use /usr/local/include/ncurses depending on your setup. +! INCNC = #-I/usr/include/ncurses + + # just in case you keep your X includes in an odd location. + INCX11 = -I/usr/X11R6/include -DNARROWPROTO + + # usually in /usr/include, but -I/usr/local/include doesn't hurt + # unless there's more than one svgalib floating around your system. +! INCVGA = #-I/usr/local/include + + # Directory where application defaults files are stored for X11 version + XAPPDEFAULTS = /usr/X11R6/lib/X11/app-defaults + + INCLUDES= $(INCNC) $(INCX11) $(INCVGA) +! INSTALLDIR = ${PREFIX}/bin + + # if you are using the GUS Ultra driver module, add -DULTRA_DRIVER +! #CFLAGS = -Wall -pipe -fomit-frame-pointer -O2 -m486 +! CFLAGS += -DPREFIX=\"$(PREFIX)\" +! #LDFLAGS = +! INSTALL_BIN = $(INSTALL) -s -c -o $(BINOWN) -g $(BINGRP) -m 755 +! INSTALL_DAT = $(INSTALL) -c -o $(BINOWN) -g $(BINGRP) -m 644 + + OBJECTS = playmidi.o readmidi.o playevents.o \ + patchload.o emumidi.o io_ncurses.o +*************** +*** 65,71 **** + SOBJECTS= playmidi.o readmidi.o playevents.o \ + patchload.o emumidi.o io_svgalib.o + +! all: playmidi splaymidi xplaymidi + + config: + playmidi.h: playmidi.h-dist +--- 67,73 ---- + SOBJECTS= playmidi.o readmidi.o playevents.o \ + patchload.o emumidi.o io_svgalib.o + +! all: playmidi #splaymidi xplaymidi + + config: + playmidi.h: playmidi.h-dist +*************** +*** 80,137 **** + io_svgalib.o: io_svgalib.c + $(CC) $(CFLAGS) $(INCVGA) -c io_svgalib.c -o io_svgalib.o + +! playmidi: .depend $(OBJECTS) + $(CC) $(LDFLAGS) -o playmidi $(OBJECTS) $(LIBNC) + +! xplaymidi: .depend $(XOBJECTS) + $(CC) $(LDFLAGS) -o xplaymidi $(XOBJECTS) $(LIBX11) + +! splaymidi: .depend $(SOBJECTS) + $(CC) $(LDFLAGS) -o splaymidi $(SOBJECTS) $(LIBVGA) + + $(INSTALLDIR)/playmidi: playmidi +! $(INSTALL) playmidi $(INSTALLDIR) + + $(INSTALLDIR)/xplaymidi: xplaymidi +! $(INSTALL) xplaymidi $(INSTALLDIR) + + $(INSTALLDIR)/splaymidi: splaymidi +! $(INSTALL) splaymidi $(INSTALLDIR) + +! /etc/std.o3: +! cp -i std.o3 /etc + +! /etc/drums.o3: +! cp -i drums.o3 /etc + +! /etc/std.sb: +! cp -i std.sb /etc + +! /etc/drums.sb: +! cp -i drums.sb /etc + + $(XAPPDEFAULTS)/XPlaymidi: +! cp -i XPlaymidi.ad $(XAPPDEFAULTS)/XPlaymidi + +! install: $(INSTALLDIR)/playmidi $(INSTALLDIR)/splaymidi \ +! $(INSTALLDIR)/xplaymidi /etc/std.o3 /etc/drums.o3 \ +! /etc/std.sb /etc/drums.sb $(XAPPDEFAULTS)/XPlaymidi + +! install.novga: $(INSTALLDIR)/playmidi \ +! $(INSTALLDIR)/xplaymidi /etc/std.o3 /etc/drums.o3 \ +! /etc/std.sb /etc/drums.sb $(XAPPDEFAULTS)/XPlaymidi + +! install.noX11: $(INSTALLDIR)/playmidi $(INSTALLDIR)/splaymidi \ +! /etc/std.o3 /etc/drums.o3 /etc/std.sb /etc/drums.sb + +! install.Xonly: $(INSTALLDIR)/xplaymidi /etc/std.o3 /etc/drums.o3 \ +! /etc/std.sb /etc/drums.sb $(XAPPDEFAULTS)/XPlaymidi + +! install.lame: $(INSTALLDIR)/playmidi \ +! /etc/std.o3 /etc/drums.o3 /etc/std.sb /etc/drums.sb + + install.man: +! cp playmidi.1 /usr/man/man1/ + + clean: + rm -f *.o playmidi splaymidi xplaymidi a.out +--- 82,143 ---- + io_svgalib.o: io_svgalib.c + $(CC) $(CFLAGS) $(INCVGA) -c io_svgalib.c -o io_svgalib.o + +! playmidi: $(OBJECTS) + $(CC) $(LDFLAGS) -o playmidi $(OBJECTS) $(LIBNC) + +! xplaymidi: $(XOBJECTS) + $(CC) $(LDFLAGS) -o xplaymidi $(XOBJECTS) $(LIBX11) + +! splaymidi: $(SOBJECTS) + $(CC) $(LDFLAGS) -o splaymidi $(SOBJECTS) $(LIBVGA) + + $(INSTALLDIR)/playmidi: playmidi +! $(INSTALL_BIN) playmidi $(INSTALLDIR) + + $(INSTALLDIR)/xplaymidi: xplaymidi +! $(INSTALL_BIN) xplaymidi $(INSTALLDIR) + + $(INSTALLDIR)/splaymidi: splaymidi +! $(INSTALL_BIN) splaymidi $(INSTALLDIR) + +! ${PREFIX}/lib/midi/std.o3: +! $(INSTALL_DAT) std.o3 $@ + +! ${PREFIX}/lib/midi/drums.o3: +! $(INSTALL_DAT) drums.o3 $@ + +! ${PREFIX}/lib/midi/std.sb: +! $(INSTALL_DAT) std.sb $@ + +! ${PREFIX}/lib/midi/drums.sb: +! $(INSTALL_DAT) drums.sb $@ + + $(XAPPDEFAULTS)/XPlaymidi: +! $(INSTALL_DAT) XPlaymidi.ad $(XAPPDEFAULTS)/XPlaymidi + +! dirs: +! -@mkdir -p $(PREFIX)/lib/midi +! -@mkdir -p $(PREFIX)/lib/Plib + +! install: dirs $(INSTALLDIR)/playmidi $(INSTALLDIR)/splaymidi \ +! $(INSTALLDIR)/xplaymidi ${PREFIX}/lib/midi/std.o3 ${PREFIX}/lib/midi/drums.o3 \ +! ${PREFIX}/lib/midi/std.sb ${PREFIX}/lib/midi/drums.sb $(XAPPDEFAULTS)/XPlaymidi + +! install.novga: dirs $(INSTALLDIR)/playmidi \ +! $(INSTALLDIR)/xplaymidi ${PREFIX}/lib/midi/std.o3 ${PREFIX}/lib/midi/drums.o3 \ +! ${PREFIX}/lib/midi/std.sb ${PREFIX}/lib/midi/drums.sb $(XAPPDEFAULTS)/XPlaymidi + +! install.noX11: dirs $(INSTALLDIR)/playmidi $(INSTALLDIR)/splaymidi \ +! ${PREFIX}/lib/midi/std.o3 ${PREFIX}/lib/midi/drums.o3 ${PREFIX}/lib/midi/std.sb ${PREFIX}/lib/midi/drums.sb + +! install.Xonly: dirs $(INSTALLDIR)/xplaymidi ${PREFIX}/lib/midi/std.o3 ${PREFIX}/lib/midi/drums.o3 \ +! ${PREFIX}/lib/midi/std.sb ${PREFIX}/lib/midi/drums.sb $(XAPPDEFAULTS)/XPlaymidi +! +! install.lame: dirs $(INSTALLDIR)/playmidi \ +! ${PREFIX}/lib/midi/std.o3 ${PREFIX}/lib/midi/drums.o3 ${PREFIX}/lib/midi/std.sb ${PREFIX}/lib/midi/drums.sb + + install.man: +! ${INSTALL_DAT} playmidi.1 ${PREFIX}/man/man1 + + clean: + rm -f *.o playmidi splaymidi xplaymidi a.out +*************** +*** 139,160 **** + distclean: clean + rm -f .depend *~ *.bak playmidi.h config.sed + +- +- ifeq (.depend, $(wildcard .depend)) +- .depend depend dep: playmidi.h +- for i in *.c; do $(CPP) -M $(CFLAGS) $(INCLUDES) $$i; done >.depend +- +- include .depend +- else +- depend dep: +- for i in *.c; do $(CPP) -M $(CFLAGS) $(INCLUDES) $$i; done >.depend +- +- .depend: playmidi.h +- @echo +- @echo "Bad or missing .depend running 'make depend clean'" +- @echo +- $(MAKE) depend clean +- @echo +- @echo "Successful. Trying to make again" +- @exit 0 +- endif +--- 145,147 ---- diff --git a/audio/xmcd/playmidi/patches/patch-ac b/audio/xmcd/playmidi/patches/patch-ac new file mode 100644 index 00000000000..2d44bcc090f --- /dev/null +++ b/audio/xmcd/playmidi/patches/patch-ac @@ -0,0 +1,19 @@ +*** Configure.bak Sat Feb 24 17:00:00 1996 +--- Configure Fri Nov 15 08:47:23 1996 +*************** +*** 8,14 **** + mididevno=-1 + play=PLAY_MIDI + gus1=/dos/ultrasnd/midi +! gus2=/usr/local/lib/Plib + ########################################################## + ### YOU MUST HAVE THE VOXWARE SOUND DRIVER INSTALLED ### + ### FOR THIS SCRIPT TO FUNCTION PROPERLY. /dev/sndstat ### +--- 8,14 ---- + mididevno=-1 + play=PLAY_MIDI + gus1=/dos/ultrasnd/midi +! gus2=${PREFIX}/lib/Plib + ########################################################## + ### YOU MUST HAVE THE VOXWARE SOUND DRIVER INSTALLED ### + ### FOR THIS SCRIPT TO FUNCTION PROPERLY. /dev/sndstat ### diff --git a/audio/xmcd/playmidi/patches/patch-ad b/audio/xmcd/playmidi/patches/patch-ad new file mode 100644 index 00000000000..893d42c186b --- /dev/null +++ b/audio/xmcd/playmidi/patches/patch-ad @@ -0,0 +1,42 @@ +*** playmidi.h-dist.bak Sat Feb 24 17:00:00 1996 +--- playmidi.h-dist Fri Nov 15 08:47:23 1996 +*************** +*** 35,44 **** + #define MAXTRKS 128 + /* where to find fm patch libraries */ + #define SEQUENCER_DEV "/dev/sequencer" +! #define O3MELODIC "/etc/std.o3" +! #define O3DRUMS "/etc/drums.o3" +! #define SBMELODIC "/etc/std.sb" +! #define SBDRUMS "/etc/drums.sb" + #define ISPERC(x) (perc & (1 << x)) + #define ISGUS(x) (play_gus & (1 << x)) + #define ISFM(x) (play_fm & (1 << x)) +--- 35,47 ---- + #define MAXTRKS 128 + /* where to find fm patch libraries */ + #define SEQUENCER_DEV "/dev/sequencer" +! #ifndef PREFIX +! #define PREFIX "/usr/local" +! #endif +! #define O3MELODIC PREFIX "/lib/midi/std.o3" +! #define O3DRUMS PREFIX "/lib/midi/drums.o3" +! #define SBMELODIC PREFIX "/lib/midi/std.sb" +! #define SBDRUMS PREFIX "/lib/midi/drums.sb" + #define ISPERC(x) (perc & (1 << x)) + #define ISGUS(x) (play_gus & (1 << x)) + #define ISFM(x) (play_fm & (1 << x)) +*************** +*** 49,55 **** +--- 52,62 ---- + #include + #include + #include ++ #ifdef __FreeBSD__ ++ #include ++ #else + #include ++ #endif + #include + + struct chanstate { diff --git a/audio/xmcd/playmidi/patches/patch-ae b/audio/xmcd/playmidi/patches/patch-ae new file mode 100644 index 00000000000..24ca54fcfeb --- /dev/null +++ b/audio/xmcd/playmidi/patches/patch-ae @@ -0,0 +1,14 @@ +*** playmidi.c.orig Sat Feb 24 17:00:00 1996 +--- playmidi.c Fri Nov 15 08:57:40 1996 +*************** +*** 15,21 **** +--- 15,23 ---- + laredo@gnu.ai.mit.edu (Nathan Laredo) or to PSC 1, BOX 709, 2401 + Kelly Drive, Lackland AFB, TX 78236-5128, USA. + *************************************************************************/ ++ #ifndef __FreeBSD__ + #include ++ #endif + #include + #include + #include diff --git a/audio/xmcd/playmidi/patches/patch-af b/audio/xmcd/playmidi/patches/patch-af new file mode 100644 index 00000000000..1ab3d608cf4 --- /dev/null +++ b/audio/xmcd/playmidi/patches/patch-af @@ -0,0 +1,16 @@ +*** io_ncurses.c.bak Sat Feb 24 17:00:00 1996 +--- io_ncurses.c Fri Nov 15 09:22:19 1996 +*************** +*** 14,20 **** +--- 14,24 ---- + Kelly Drive, Lackland AFB, TX 78236-5128, USA. + *************************************************************************/ + #include "playmidi.h" ++ #ifdef __FreeBSD__ ++ #include ++ #else + #include ++ #endif + #include + #include + diff --git a/audio/xmcd/playmidi/patches/patch-ag b/audio/xmcd/playmidi/patches/patch-ag new file mode 100644 index 00000000000..5df09086ea6 --- /dev/null +++ b/audio/xmcd/playmidi/patches/patch-ag @@ -0,0 +1,16 @@ +*** emumidi.h.bak Sat Feb 24 17:00:00 1996 +--- emumidi.h Fri Nov 15 09:30:47 1996 +*************** +*** 14,20 **** +--- 14,24 ---- + Kelly Drive, Lackland AFB, TX 78236-5128, USA. + *************************************************************************/ + #include "playmidi.h" ++ #ifdef __FreeBSD__ ++ #include ++ #else + #include ++ #endif + + /* + * TABLE OF NEARLY EXACT FREQUENCIES FOR ALL MIDI NOTES (A=440Hz) diff --git a/audio/xmcd/playmidi/pkg/COMMENT b/audio/xmcd/playmidi/pkg/COMMENT new file mode 100644 index 00000000000..96697d37732 --- /dev/null +++ b/audio/xmcd/playmidi/pkg/COMMENT @@ -0,0 +1 @@ +MIDI player. diff --git a/audio/xmcd/playmidi/pkg/DESCR b/audio/xmcd/playmidi/pkg/DESCR new file mode 100644 index 00000000000..29ebda2c8d9 --- /dev/null +++ b/audio/xmcd/playmidi/pkg/DESCR @@ -0,0 +1,9 @@ + playmidi is a small quick midi file player using the level two sequencer + of the voxware 3.0 package to play on general midi devices or FM or + Gravis Ultrasound. If no files are specified, playmidi will give a short + summary of usage options. If more than one file is specified, you may + skip to the next file while the current one is playing by pressing your + interrupt (usually control-c) key. If you invoke playmidi while it is al- + ready running, it will allow you to control the currently running invoca- + tion until its death, after which time all waiting invocations fight to + go first. diff --git a/audio/xmcd/playmidi/pkg/PLIST b/audio/xmcd/playmidi/pkg/PLIST new file mode 100644 index 00000000000..65a104e0813 --- /dev/null +++ b/audio/xmcd/playmidi/pkg/PLIST @@ -0,0 +1,6 @@ +bin/playmidi +lib/midi/std.o3 +lib/midi/std.sb +lib/midi/drums.o3 +lib/midi/drums.sb +man/man1/playmidi.1.gz diff --git a/audio/xmcd/rosegarden/Makefile b/audio/xmcd/rosegarden/Makefile new file mode 100644 index 00000000000..0062d231f91 --- /dev/null +++ b/audio/xmcd/rosegarden/Makefile @@ -0,0 +1,25 @@ +# New ports collection makefile for: rosegarden +# Version required: 2.0.1 +# Date created: 04 Aug 1996 +# Whom: shanee +# +# $Id: Makefile,v 1.1.1.1 1998/05/21 01:38:01 angelos Exp $ +# + +DISTNAME= rosegarden-2.0.1 +CATEGORIES= audio +MASTER_SITES= ftp://ftp.maths.bath.ac.uk/pub/dream/ROSE/ +EXTRACT_SUFX= -sources.tgz + +MAINTAINER= shanee@augusta.de + +LIB_DEPENDS= Xaw3d\\.6\\.:$(PORTSDIR)/x11/Xaw3d +RUN_DEPENDS= playmidi:${PORTSDIR}/audio/playmidi + +ALL_TARGET= all ROSEGARDEN=$(WRKSRC) SYSLIBS="\"-lXaw3d -lXext -lXmu -lXt -lX11\"" SYSEXTRALIBS="" + +WRKSRC= ${WRKDIR}/rosegarden +MAKEFILE= Makefile.FreeBSD +MAKE_ENV+= INSTALL_PROGRAM="${INSTALL_PROGRAM}" INSTALL_DATA="${INSTALL_DATA}" MKDIR="${MKDIR}" + +.include diff --git a/audio/xmcd/rosegarden/files/md5 b/audio/xmcd/rosegarden/files/md5 new file mode 100644 index 00000000000..fbc4a443fa6 --- /dev/null +++ b/audio/xmcd/rosegarden/files/md5 @@ -0,0 +1 @@ +MD5 (rosegarden-2.0.1-sources.tgz) = e9407ba667a120cfc685b5b6b314494a diff --git a/audio/xmcd/rosegarden/patches/patch-aa b/audio/xmcd/rosegarden/patches/patch-aa new file mode 100644 index 00000000000..d2e8803d324 --- /dev/null +++ b/audio/xmcd/rosegarden/patches/patch-aa @@ -0,0 +1,22 @@ +*** Makefile.FreeBSD.orig Wed Sep 11 06:04:21 1996 +--- Makefile.FreeBSD Thu Aug 28 15:53:28 1997 +*************** +*** 265,270 **** +--- 265,281 ---- + ( $(EXPORTATION) ; cd $(ROSEGARDEN)/topbox/src ; \ + $(MAKE) depend ) + ++ install: ++ $(MKDIR) $(PREFIX)/lib/rosegarden ++ $(MKDIR) $(PREFIX)/lib/rosegarden/music ++ $(INSTALL_PROGRAM) ./bin/rosegarden $(PREFIX)/bin ++ $(INSTALL_PROGRAM) ./bin/editor $(PREFIX)/lib/rosegarden ++ $(INSTALL_PROGRAM) ./bin/sequencer $(PREFIX)/lib/rosegarden ++ $(INSTALL_DATA) ./common/help/* $(PREFIX)/lib/rosegarden ++ $(INSTALL_DATA) ./common/synth-patches/std.sb $(PREFIX)/lib/rosegarden ++ $(INSTALL_DATA) ./common/music/*.rose $(PREFIX)/lib/rosegarden/music ++ $(INSTALL_DATA) Rosegarden $(X11BASE)/lib/X11/app-defaults/ ++ + clean: + ( $(EXPORTATION) ; cd $(ROSEGARDEN)/lists/src ; \ + $(MAKE) clean ) diff --git a/audio/xmcd/rosegarden/patches/patch-ab b/audio/xmcd/rosegarden/patches/patch-ab new file mode 100644 index 00000000000..0a967fc4aa8 --- /dev/null +++ b/audio/xmcd/rosegarden/patches/patch-ab @@ -0,0 +1,28 @@ +*** Rosegarden.orig Wed Sep 11 06:25:10 1996 +--- Rosegarden Thu Aug 28 15:51:58 1997 +*************** +*** 8,19 **** + Rosegarden*sequencerName: /usr/local/lib/rosegarden/sequencer + Rosegarden*helpFile: /usr/local/lib/rosegarden/rosehelp.info + Rosegarden*midiFmPatchFile: /usr/local/lib/rosegarden/std.sb +! Rosegarden*externalPlayer: /usr/local/bin/playmidi + +! Rosegarden*musicDirectory: /usr/local/lib/music + Rosegarden*midiFmPatchFile: /usr/local/lib/rosegarden/std.sb +! !Rosegarden*midiPort: /dev/sequencer2 +! Rosegarden*externalPlayer: /usr/local/bin/xplaymidi + + Rosegarden*shouldWarpPointer: False + +--- 8,18 ---- + Rosegarden*sequencerName: /usr/local/lib/rosegarden/sequencer + Rosegarden*helpFile: /usr/local/lib/rosegarden/rosehelp.info + Rosegarden*midiFmPatchFile: /usr/local/lib/rosegarden/std.sb +! Rosegarden*externalPlayer: /usr/local/bin/playmidi -f + +! Rosegarden*musicDirectory: /usr/local/lib/rosegarden/music + Rosegarden*midiFmPatchFile: /usr/local/lib/rosegarden/std.sb +! Rosegarden*midiPort: /dev/sequencer + + Rosegarden*shouldWarpPointer: False + diff --git a/audio/xmcd/rosegarden/pkg/COMMENT b/audio/xmcd/rosegarden/pkg/COMMENT new file mode 100644 index 00000000000..a4e31c48566 --- /dev/null +++ b/audio/xmcd/rosegarden/pkg/COMMENT @@ -0,0 +1 @@ +The Rosegarden Editor and Sequencer suite. diff --git a/audio/xmcd/rosegarden/pkg/DESCR b/audio/xmcd/rosegarden/pkg/DESCR new file mode 100644 index 00000000000..f5349d009c6 --- /dev/null +++ b/audio/xmcd/rosegarden/pkg/DESCR @@ -0,0 +1,7 @@ +Rosegarden is a free integrated musical notation editor and MIDI +sequencer for Unix/X platforms, with specific support for FreeBSD, +Linux PCs and SGI IRIX workstations. + +See the Rosegarden Web page at http://www.bath.ac.uk/~masjpf/rose.html +for more information, or anonymous ftp to ftp.maths.bath.ac.uk, +directory /pub/dream/ROSE . diff --git a/audio/xmcd/rosegarden/pkg/PLIST b/audio/xmcd/rosegarden/pkg/PLIST new file mode 100644 index 00000000000..6e5452f931a --- /dev/null +++ b/audio/xmcd/rosegarden/pkg/PLIST @@ -0,0 +1,14 @@ +@cwd /usr/local +bin/rosegarden +lib/rosegarden/editor +lib/rosegarden/rosehelp.hnx +lib/rosegarden/rosehelp.info +lib/rosegarden/sequencer +lib/rosegarden/std.sb +lib/rosegarden/music/glazunov.rose +lib/rosegarden/music/sonataC.rose +lib/rosegarden/music/vivaldi.rose +@dirrm lib/rosegarden/music +@dirrm lib/rosegarden +@cwd /usr/X11R6 +lib/X11/app-defaults/Rosegarden diff --git a/audio/xmcd/rsynth/Makefile b/audio/xmcd/rsynth/Makefile new file mode 100644 index 00000000000..5c849f70c64 --- /dev/null +++ b/audio/xmcd/rsynth/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: rsynth +# Version required: 2.0 +# Date created: 03 Jan 1995 +# Whom: faulkner@mpd.tandem.com +# +# $Id: Makefile,v 1.1.1.1 1998/05/21 01:38:02 angelos Exp $ +# + +DISTNAME= rsynth-2.0 +CATEGORIES= audio +MASTER_SITES= ftp://svr-ftp.eng.cam.ac.uk/pub/comp.speech/synthesis/ + +MAINTAINER= faulkner@mpd.tandem.com + +BUILD_DEPENDS= ${PREFIX}/lib/libgdbm.a:${PORTSDIR}/databases/gdbm +EXEC_DEPENDS= auvoxware:${PORTSDIR}/audio/nas + +GNU_CONFIGURE= YES + +pre-configure: + @${CP} ${FILESDIR}/freebsdplay.c ${WRKSRC}/config/freebsdplay.c + @${CP} ${FILESDIR}/config.guess ${WRKSRC}/config.guess + @${CP} ${FILESDIR}/config.sub ${WRKSRC}/config.sub + @${CP} ${FILESDIR}/configure ${WRKSRC}/configure + +.include diff --git a/audio/xmcd/rsynth/files/config.guess b/audio/xmcd/rsynth/files/config.guess new file mode 100644 index 00000000000..a3d6a9f1bfd --- /dev/null +++ b/audio/xmcd/rsynth/files/config.guess @@ -0,0 +1,497 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc. +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Written by Per Bothner . +# The master version of this file is at the FSF in /home/gd/gnu/lib. +# +# This script attempts to guess a canonical system name similar to +# config.sub. If it succeeds, it prints the system name on stdout, and +# exits with 0. Otherwise, it exits with 1. +# +# The plan is that this can be called by configure scripts if you +# don't specify an explicit system type (host/target name). +# +# Only a few systems have been added to this list; please add others +# (but try to keep the structure clean). +# + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 8/24/94.) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15 + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + alpha:OSF1:V*:*) + # After 1.2, OSF1 uses "V1.3" for uname -r. + echo alpha-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^V//'` + exit 0 ;; + alpha:OSF1:*:*) + # 1.2 uses "1.2" for uname -r. + echo alpha-dec-osf${UNAME_RELEASE} + exit 0 ;; + amiga:NetBSD:*:*) + echo m68k-cbm-netbsd${UNAME_RELEASE} + exit 0 ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit 0;; + Pyramid*:OSx*:*:*) + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit 0 ;; + sun4*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit 0 ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit 0 ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit 0 ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit 0 ;; + mips:*:5*:RISCos) + echo mips-mips-riscos${UNAME_RELEASE} + exit 0 ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit 0 ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit 0 ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit 0 ;; + AViiON:dgux:*:*) + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ + -o ${TARGET_BINARY_INTERFACE}x = x ] ; then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + exit 0 ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit 0 ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit 0 ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit 0 ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit 0 ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit 0 ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i[34]86:AIX:*:*) + echo i386-ibm-aix + exit 0 ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + sed 's/^ //' << EOF >dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 + rm -f dummy.c dummy + echo rs6000-ibm-aix3.2.5 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit 0 ;; + *:AIX:*:4) + if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if grep bos410 /usr/include/stdio.h >/dev/null 2>&1; then + IBM_REV=4.1 + elif grep bos411 /usr/include/stdio.h >/dev/null 2>&1; then + IBM_REV=4.1.1 + else + IBM_REV=4.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit 0 ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit 0 ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit 0 ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit 0 ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit 0 ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit 0 ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit 0 ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit 0 ;; + 9000/[3478]??:HP-UX:*:*) + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/7?? | 9000/8?7 ) HP_ARCH=hppa1.1 ;; + 9000/8?? ) HP_ARCH=hppa1.0 ;; + esac + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit 0 ;; + 3050*:HI-UX:*:*) + sed 's/^ //' << EOF >dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 + rm -f dummy.c dummy + echo unknown-hitachi-hiuxwe2 + exit 0 ;; + 9000/7??:4.3bsd:*:* | 9000/8?7:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit 0 ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit 0 ;; + hp7??:OSF1:*:* | hp8?7:OSF1:*:* ) + echo hppa1.1-hp-osf + exit 0 ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit 0 ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit 0 ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit 0 ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit 0 ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit 0 ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit 0 ;; + CRAY*X-MP:UNICOS:*:*) + echo xmp-cray-unicos + exit 0 ;; + CRAY*Y-MP:UNICOS:*:*) + echo ymp-cray-unicos + exit 0 ;; + CRAY-2:UNICOS:*:*) + echo cray2-cray-unicos + exit 0 ;; + hp3[0-9][05]:NetBSD:*:*) + echo m68k-hp-netbsd${UNAME_RELEASE} + exit 0 ;; + i[34]86:BSD/386:*:* | *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit 0 ;; + *:FreeBSD:*:*) + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit 0 ;; + *:NetBSD:*:*) + echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + exit 0 ;; + *:GNU:*:*) + echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit 0 ;; + *:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux + exit 0 ;; +# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions +# are messed up and put the nodename in both sysname and nodename. + i[34]86:DYNIX/ptx:4*:*) + echo i386-sequent-sysv4 + exit 0 ;; + i[34]86:*:4.*:* | i[34]86:SYSTEM_V:4.*:*) + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} + else + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE} + fi + exit 0 ;; + i[34]86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` + (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 + echo ${UNAME_MACHINE}-unknown-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-unknown-sysv32 + fi + exit 0 ;; + Intel:Mach:3*:*) + echo i386-unknown-mach3 + exit 0 ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit 0 ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit 0 ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit 0 ;; + M680[234]0:*:R3V[567]*:*) + test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; + 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0) + uname -p 2>/dev/null | grep 86 >/dev/null \ + && echo i486-ncr-sysv4.3 && exit 0 ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + uname -p 2>/dev/null | grep 86 >/dev/null \ + && echo i486-ncr-sysv4 && exit 0 ;; + m680[234]0:LynxOS:2.2*:*) + echo m68k-lynx-lynxos${UNAME_RELEASE} + exit 0 ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit 0 ;; + i[34]86:LynxOS:2.2*:*) + echo i386-lynx-lynxos${UNAME_RELEASE} + exit 0 ;; + TSUNAMI:LynxOS:2.2*:*) + echo sparc-lynx-lynxos${UNAME_RELEASE} + exit 0 ;; + rs6000:LynxOS:2.2*:*) + echo rs6000-lynx-lynxos${UNAME_RELEASE} + exit 0 ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit 0 ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit 0 ;; +esac + +#echo '(No uname command or uname output not recognized.)' 1>&2 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 + +cat >dummy.c < + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + printf ("%s-next-nextstep%s\n", __ARCHITECTURE__, version==2 ? "2" : "3"); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-unknown-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + printf ("i386-sequent-ptx\n"); exit (0); +#endif + +#if defined (vax) +#if !defined (ultrix) + printf ("vax-dec-bsd\n"); exit (0); +#else + printf ("vax-dec-ultrix\n"); exit (0); +#endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0 +rm -f dummy.c dummy + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit 0 ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit 0 ;; + c34*) + echo c34-convex-bsd + exit 0 ;; + c38*) + echo c38-convex-bsd + exit 0 ;; + c4*) + echo c4-convex-bsd + exit 0 ;; + esac +fi + +#echo '(Unable to guess system type)' 1>&2 + +exit 1 diff --git a/audio/xmcd/rsynth/files/config.sub b/audio/xmcd/rsynth/files/config.sub new file mode 100644 index 00000000000..5641cc1ce67 --- /dev/null +++ b/audio/xmcd/rsynth/files/config.sub @@ -0,0 +1,833 @@ +#! /bin/sh +# Configuration validation subroutine script, version 1.1. +# Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. +# This file is (in principle) common to ALL GNU software. +# The presence of a machine in this file suggests that SOME GNU software +# can handle that machine. It does not imply ALL GNU software can. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +if [ x$1 = x ] +then + echo Configuration name missing. 1>&2 + echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 + echo "or $0 ALIAS" 1>&2 + echo where ALIAS is a recognized configuration type. 1>&2 + exit 1 +fi + +# First pass through any local machine types. +case $1 in + *local*) + echo $1 + exit 0 + ;; + *) + ;; +esac + +# Separate what the user gave into CPU-COMPANY and OS (if any). +basic_machine=`echo $1 | sed 's/-[^-]*$//'` +if [ $basic_machine != $1 ] +then os=`echo $1 | sed 's/.*-/-/'` +else os=; fi + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp ) + os= + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + tahoe | i[345]86 | i860 | m68k | m68000 | m88k | ns32k | arm | pyramid \ + | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \ + | alpha | we32k | ns16k | clipper | sparclite | i370 | sh \ + | powerpc | sparc64 | 1750a | dsp16xx | mips64 | mipsel \ + | pdp11 | mips64el | mips64orion | mips64orionel \ + | sparc) + basic_machine=$basic_machine-unknown + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + vax-* | tahoe-* | i[345]86-* | i860-* | m68k-* | m68000-* | m88k-* \ + | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \ + | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ + | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \ + | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \ + | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \ + | pdp11-* | sh-* | powerpc-* | sparc64-* | mips64-* | mipsel-* \ + | mips64el-* | mips64orion-* | mips64orionel-*) + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-cbm + ;; + amigados) + basic_machine=m68k-cbm + os=-amigados + ;; + amigaunix | amix) + basic_machine=m68k-cbm + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | ymp) + basic_machine=ymp-cray + os=-unicos + ;; + cray2) + basic_machine=cray2-cray + os=-unicos + ;; + crds | unos) + basic_machine=m68k-crds + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + os=-mvs + ;; +# I'm not sure what "Sysv32" means. Should this be sysv3.2? + i[345]86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` + os=-sysv32 + ;; + i[345]86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` + os=-sysv4 + ;; + i[345]86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` + os=-sysv + ;; + i[345]86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` + os=-solaris2 + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + miniframe) + basic_machine=m68000-convergent + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + np1) + basic_machine=np1-gould + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pentium-*) + # We will change tis to say i586 once there has been + # time for various packages to start to recognize that. + basic_machine=i486-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + ps2) + basic_machine=i386-ibm + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + xmp) + basic_machine=xmp-cray + os=-unicos + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + mips) + basic_machine=mips-mips + ;; + romp) + basic_machine=romp-ibm + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sparc) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # -solaris* is a basic system type, with this one exception. + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -unixware* | svr4*) + os=-sysv4 + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative must end in a *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[345]* \ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \ + | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \ + | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \ + | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta | -udi | -eabi) + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -ctix* | -uts*) + os=-sysv + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -xenix) + os=-xenix + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + *-acorn) + os=-riscix1.2 + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + # This also exists in the configure program, but was not the + # default. + # os=-sunos4 + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-ibm) + os=-aix + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigados + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -lynxos*) + vendor=lynx + ;; + -aix*) + vendor=ibm + ;; + -hpux*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -vxworks*) + vendor=wrs + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os diff --git a/audio/xmcd/rsynth/files/configure b/audio/xmcd/rsynth/files/configure new file mode 100644 index 00000000000..ae5e11cfeb0 --- /dev/null +++ b/audio/xmcd/rsynth/files/configure @@ -0,0 +1,2455 @@ +#! /bin/sh + +# From configure.in Revision: 1.4 + +# Guess values for system-dependent variables and create Makefiles. +# Generated automatically using autoconf version 2.3 +# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. + +# Defaults: +ac_help= +ac_default_prefix=/usr/local +# Any additions from configure.in: +ac_help="$ac_help + --with-gdbm[=] Uninstalled GNU gdbm source directory" +ac_help="$ac_help + --with-aDict[=] American Dictionary" +ac_help="$ac_help + --with-bDict[=] British Dictionary" +ac_help="$ac_help + --with-x use the X Window System" + +# Initialize some variables set by options. +# The variables have the same names as the options, with +# dashes changed to underlines. +build=NONE +cache_file=./config.cache +exec_prefix=NONE +host=NONE +no_create= +nonopt=NONE +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +target=NONE +verbose= +x_includes=NONE +x_libraries=NONE + +# Initialize some other variables. +subdirs= + +ac_prev= +for ac_option +do + + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=\$ac_option" + ac_prev= + continue + fi + + case "$ac_option" in + -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) ac_optarg= ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case "$ac_option" in + + -build | --build | --buil | --bui | --bu | --b) + ac_prev=build ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*) + build="$ac_optarg" ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file="$ac_optarg" ;; + + -disable-* | --disable-*) + ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + eval "enable_${ac_feature}=no" ;; + + -enable-* | --enable-*) + ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "enable_${ac_feature}='$ac_optarg'" ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix="$ac_optarg" ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he) + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat << EOF +Usage: configure [options] [host] +Options: [defaults in brackets after descriptions] +Configuration: + --cache-file=FILE cache test results in FILE + --help print this message + --no-create do not create output files + --quiet, --silent do not print \`checking...' messages + --version print the version of autoconf that created configure +Directory and file names: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=PREFIX install architecture-dependent files in PREFIX + [same as prefix] + --srcdir=DIR find the sources in DIR [configure dir or ..] + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names +Host type: + --build=BUILD configure for building on BUILD [BUILD=HOST] + --host=HOST configure for HOST [guessed] + --target=TARGET configure for TARGET [TARGET=HOST] +Features and packages: + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --x-includes=DIR X include files are in DIR + --x-libraries=DIR X library files are in DIR +--enable and --with options recognized:$ac_help +EOF + exit 0 ;; + + -host | --host | --hos | --ho) + ac_prev=host ;; + -host=* | --host=* | --hos=* | --ho=*) + host="$ac_optarg" ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix="$ac_optarg" ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix="$ac_optarg" ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix="$ac_optarg" ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name="$ac_optarg" ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site="$ac_optarg" ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir="$ac_optarg" ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target="$ac_optarg" ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers) + echo "configure generated by autoconf version 2.3" + exit 0 ;; + + -with-* | --with-*) + ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "with_${ac_package}='$ac_optarg'" ;; + + -without-* | --without-*) + ac_package=`echo $ac_option|sed -e 's/-*without-//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + eval "with_${ac_package}=no" ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes="$ac_optarg" ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries="$ac_optarg" ;; + + -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } + ;; + + *) + if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then + echo "configure: warning: $ac_option: invalid host type" 1>&2 + fi + if test "x$nonopt" != xNONE; then + { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } + fi + nonopt="$ac_option" + ;; + + esac +done + +if test -n "$ac_prev"; then + { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } +fi + +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +# File descriptor usage: +# 0 standard input +# 1 file creation +# 2 errors and warnings +# 3 some systems may open it to /dev/tty +# 4 used on the Kubota Titan +# 6 checking for... messages and results +# 5 compiler messages saved in config.log +if test "$silent" = yes; then + exec 6>/dev/null +else + exec 6>&1 +fi +exec 5>./config.log + +echo "\ +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. +" 1>&5 + +# Strip out --no-create and --no-recursion so they do not pile up. +# Also quote any args containing shell metacharacters. +ac_configure_args= +for ac_arg +do + case "$ac_arg" in + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c) ;; + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) + ac_configure_args="$ac_configure_args '$ac_arg'" ;; + *) ac_configure_args="$ac_configure_args $ac_arg" ;; + esac +done + +# NLS nuisances. +# Only set LANG and LC_ALL to C if already set. +# These must not be set unconditionally because not all systems understand +# e.g. LANG=C (notably SCO). +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi +if test "${LANG+set}" = set; then LANG=C; export LANG; fi + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo > confdefs.h + +# A filename unique to this package, relative to the directory that +# configure is in, which we can look for to find out if srcdir is correct. +ac_unique_file=say.c + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then its parent. + ac_prog=$0 + ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` + test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. + srcdir=$ac_confdir + if test ! -r $srcdir/$ac_unique_file; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r $srcdir/$ac_unique_file; then + if test "$ac_srcdir_defaulted" = yes; then + { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } + else + { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } + fi +fi +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` + +# Prefer explicitly selected file to automatically selected ones. +if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi +fi +for ac_site_file in $CONFIG_SITE; do + if test -r "$ac_site_file"; then + echo "loading site script $ac_site_file" + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + echo "loading cache $cache_file" + . $cache_file +else + echo "creating cache $cache_file" + > $cache_file +fi + +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' + +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then + # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. + if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then + ac_n= ac_c=' +' ac_t=' ' + else + ac_n=-n ac_c= ac_t= + fi +else + ac_n= ac_c='\c' ac_t= +fi + + +ac_aux_dir= +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do + if test -f $ac_dir/install-sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f $ac_dir/install.sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + fi +done +if test -z "$ac_aux_dir"; then + { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } +fi +ac_config_guess=$ac_aux_dir/config.guess +ac_config_sub=$ac_aux_dir/config.sub +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. + + +# Make sure we can run config.sub. +if $ac_config_sub sun4 >/dev/null 2>&1; then : +else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } +fi + +echo $ac_n "checking host system type""... $ac_c" 1>&6 + +host_alias=$host +case "$host_alias" in +NONE) + case $nonopt in + NONE) + if host_alias=`$ac_config_guess`; then : + else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } + fi ;; + *) host_alias=$nonopt ;; + esac ;; +esac + +host=`$ac_config_sub $host_alias` +host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` +host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` +host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` +echo "$ac_t""$host" 1>&6 + + + +PROGS="say" +hplay=dummy +dbm=none +make_dist=/dev/null + + +if test -z "$CC" && test -n "$GCC" ; then +CC=$GCC +fi + +# Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_CC="gcc" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc" +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.c <&5 | egrep yes >/dev/null 2>&1; then + ac_cv_prog_gcc=yes +else + ac_cv_prog_gcc=no +fi +fi +echo "$ac_t""$ac_cv_prog_gcc" 1>&6 +if test $ac_cv_prog_gcc = yes; then + GCC=yes + if test "${CFLAGS+set}" != set; then + echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + echo 'void f(){}' > conftest.c +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then + ac_cv_prog_gcc_g=yes +else + ac_cv_prog_gcc_g=no +fi +rm -f conftest* + +fi + echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 + if test $ac_cv_prog_gcc_g = yes; then + CFLAGS="-g -O" + else + CFLAGS="-O" + fi + fi +else + GCC= + test "${CFLAGS+set}" = set || CFLAGS="-g" +fi + + +if test "$GCC" != yes; then +CFLAGS="-O" +fi + +echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 +if test -d /etc/conf/kconfig.d && + grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 +then + echo "$ac_t""yes" 1>&6 + ISC=yes # If later tests want to check for ISC. + cat >> confdefs.h <<\EOF +#define _POSIX_SOURCE 1 +EOF + + if test "$GCC" = yes; then + CC="$CC -posix" + else + CC="$CC -Xp" + fi +else + echo "$ac_t""no" 1>&6 + ISC= +fi + +echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 +set dummy ${MAKE-make}; ac_make=$2 +if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftestmake <<\EOF +all: + @echo 'ac_maketemp="${MAKE}"' +EOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` +if test -n "$ac_maketemp"; then + eval ac_cv_prog_make_${ac_make}_set=yes +else + eval ac_cv_prog_make_${ac_make}_set=no +fi +rm -f conftestmake +fi +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then + echo "$ac_t""yes" 1>&6 + SET_MAKE= +else + echo "$ac_t""no" 1>&6 + SET_MAKE="MAKE=${MAKE-make}" +fi + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# ./install, which can be erroneously created by make from ./install.sh. +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 +if test -z "$INSTALL"; then +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do + # Account for people who put trailing slashes in PATH elements. + case "$ac_dir/" in + /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + for ac_prog in ginstall installbsd scoinst install; do + if test -f $ac_dir/$ac_prog; then + if test $ac_prog = install && + grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + # OSF/1 installbsd also uses dspmsg, but is usable. + : + else + ac_cv_path_install="$ac_dir/$ac_prog -c" + break 2 + fi + fi + done + ;; + esac + done + IFS="$ac_save_ifs" + # As a last resort, use the slow shell script. + test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh" +fi + INSTALL="$ac_cv_path_install" +fi +echo "$ac_t""$INSTALL" 1>&6 + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + + +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # This must be in double quotes, not single quotes, because CPP may get + # substituted into the Makefile and "${CC-cc}" will confuse make. + CPP="${CC-cc} -E" + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. + cat > conftest.$ac_ext < +Syntax Error +EOF +eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_err=`grep -v '^ *+' conftest.out` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + rm -rf conftest* + CPP="${CC-cc} -E -traditional-cpp" + cat > conftest.$ac_ext < +Syntax Error +EOF +eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_err=`grep -v '^ *+' conftest.out` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + rm -rf conftest* + CPP=/lib/cpp +fi +rm -f conftest* +fi +rm -f conftest* + ac_cv_prog_CPP="$CPP" +fi +fi +CPP="$ac_cv_prog_CPP" +echo "$ac_t""$CPP" 1>&6 + +# If we cannot run a trivial program, we must be cross compiling. +echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_c_cross=yes +else +cat > conftest.$ac_ext </dev/null; then + ac_cv_c_cross=no +else + ac_cv_c_cross=yes +fi +fi +rm -fr conftest* +fi +cross_compiling=$ac_cv_c_cross +echo "$ac_t""$ac_cv_c_cross" 1>&6 + +echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +#include +#include +EOF +eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_err=`grep -v '^ *+' conftest.out` +if test -z "$ac_err"; then + rm -rf conftest* + ac_cv_header_stdc=yes +else + echo "$ac_err" >&5 + rm -rf conftest* + ac_cv_header_stdc=no +fi +rm -f conftest* + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. +cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "memchr" >/dev/null 2>&1; then + : +else + rm -rf conftest* + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. +cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "free" >/dev/null 2>&1; then + : +else + rm -rf conftest* + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. +if test "$cross_compiling" = yes; then + ac_cv_header_stdc=no +else +cat > conftest.$ac_ext < +#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int main () { int i; for (i = 0; i < 256; i++) +if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); +exit (0); } + +EOF +eval $ac_link +if test -s conftest && (./conftest; exit) 2>/dev/null; then + : +else + ac_cv_header_stdc=no +fi +fi +rm -fr conftest* +fi +fi +echo "$ac_t""$ac_cv_header_stdc" 1>&6 +if test $ac_cv_header_stdc = yes; then + cat >> confdefs.h <<\EOF +#define STDC_HEADERS 1 +EOF + +fi + +for ac_hdr in fcntl.h limits.h sys/types.h sys/file.h sys/ioctl.h sys/time.h unistd.h +do +ac_safe=`echo "$ac_hdr" | tr './\055' '___'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_err=`grep -v '^ *+' conftest.out` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'` + cat >> confdefs.h <&6 +fi +done + +if test "$ac_cv_header_stdc" != yes; then +for ac_func in strchr memcpy +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +char $ac_func(); + +int main() { return 0; } +int t() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if eval $ac_link; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* + +fi +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in memory.h malloc.h +do +ac_safe=`echo "$ac_hdr" | tr './\055' '___'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_err=`grep -v '^ *+' conftest.out` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'` + cat >> confdefs.h <&6 +fi +done + +fi + +case "$host" in +*-sun-*) hplay=sun; for ac_hdr in sys/ioccom.h sys/audioio.h sun/audioio.h +do +ac_safe=`echo "$ac_hdr" | tr './\055' '___'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_err=`grep -v '^ *+' conftest.out` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'` + cat >> confdefs.h <&6 +fi +done +;; +*-sgi-*) hplay=sgi ;; +*-next-*) hplay=NeXT; for ac_hdr in libc.h +do +ac_safe=`echo "$ac_hdr" | tr './\055' '___'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_err=`grep -v '^ *+' conftest.out` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'` + cat >> confdefs.h <&6 +fi +done + ;; +*-*-linux*) hplay=linux ;; +*-*-freebsd*) hplay=freebsd ;; +*-*-hpux*) hplay=hpux ;; +*-*-*) echo "Unknown host type $host" ;; +esac + +echo $ac_n "checking for working const""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <j = 5; +} +{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; +} + +; return 0; } +EOF +if eval $ac_compile; then + rm -rf conftest* + ac_cv_c_const=yes +else + rm -rf conftest* + ac_cv_c_const=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_c_const" 1>&6 +if test $ac_cv_c_const = no; then + cat >> confdefs.h <<\EOF +#define const +EOF + +fi + +echo $ac_n "checking for off_t""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "off_t" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_off_t=yes +else + rm -rf conftest* + ac_cv_type_off_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_off_t" 1>&6 +if test $ac_cv_type_off_t = no; then + cat >> confdefs.h <<\EOF +#define off_t long +EOF + +fi + + +echo $ac_n "checking if we can use float in prototypes""... $ac_c" 1>&6 +cat > conftest.$ac_ext <&6 +else + rm -rf conftest* + +cat >> confdefs.h <<\EOF +#define NOPROTOFLOAT 1 +EOF + +echo "$ac_t""no" 1>&6 + +fi +rm -f conftest* + + +if test -d $prefix/include; then + CPPFLAGS="$CPPFLAGS -I$prefix/include" +fi + +if test -d $prefix/lib; then + LIBS="-L$prefix/lib $LIBS" +fi + +# Check whether --with-gdbm or --without-gdbm was given. +withval="$with_gdbm" +if test -n "$withval"; then + +if test "$withval" != "" && test -d "$withval" ; then + CPPFLAGS="-I$withval $CPPFLAGS" + LIBS="-L$withval $LIBS" +else + echo "--with-gdbm=$withval" +fi +fi + + +# Check whether --with-aDict or --without-aDict was given. +withval="$with_aDict" +if test -n "$withval"; then + +if test "$withval" != "" && test -r "$withval" ; then + ADICT="$withval" + DICTS="$DICTS aDict.db" +else + echo "Cannot read $withval" +fi +fi + + +# Check whether --with-bDict or --without-bDict was given. +withval="$with_bDict" +if test -n "$withval"; then + +if test "$withval" != "" && test -r "$withval" ; then + BDICT="$withval" + DICTS="$DICTS bDict.db" +else + echo "Cannot read $withval" +fi +fi + + +CPPFLAGS="-I. -I$srcdir $CPPFLAGS" + +echo $ac_n "checking for -lgdbm""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_lib_gdbm'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lgdbm $LIBS" +cat > conftest.$ac_ext <&6 + ac_tr_lib=HAVE_LIB`echo gdbm | tr '[a-z]' '[A-Z]'` + cat >> confdefs.h <&6 +fi + +if test "$ac_cv_lib_gdbm" = yes; then +PROGS="$PROGS mkdictdb dlookup" +else +DICTS="" +fi + +if test "$hplay" = sgi; then +echo $ac_n "checking for -laudio""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_lib_audio'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-laudio $LIBS" +cat > conftest.$ac_ext <&6 + ac_tr_lib=HAVE_LIB`echo audio | tr '[a-z]' '[A-Z]'` + cat >> confdefs.h <&6 +fi + +fi + +echo $ac_n "checking for -lM""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_lib_M'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lM $LIBS" +cat > conftest.$ac_ext <&6 + ac_tr_lib=HAVE_LIB`echo M | tr '[a-z]' '[A-Z]'` + cat >> confdefs.h <&6 +fi + +echo $ac_n "checking for -lm""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_lib_m'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lm $LIBS" +cat > conftest.$ac_ext <&6 + ac_tr_lib=HAVE_LIB`echo m | tr '[a-z]' '[A-Z]'` + cat >> confdefs.h <&6 +fi + + +# If we find X, set shell vars x_includes and x_libraries to the +# paths, otherwise set no_x=yes. +# Uses ac_ vars as temps to allow command line to override cache and checks. +# --without-x overrides everything else, but does not touch the cache. +echo $ac_n "checking for X""... $ac_c" 1>&6 + +# Check whether --with-x or --without-x was given. +withval="$with_x" +if test -n "$withval"; then + : +fi + +if test "x$with_x" = xno; then + no_x=yes +else + if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then + no_x= + else +if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # One or both of the vars are not set, and there is no cached value. +no_x=yes +rm -fr conftestdir +if mkdir conftestdir; then + cd conftestdir + # Make sure to not put "make" in the Imakefile rules, since we grep it out. + cat > Imakefile <<'EOF' +acfindx: + @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' +EOF + if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then + no_x= + # GNU make sometimes prints "make[1]: Entering...", which would confuse us. + eval `make acfindx 2>/dev/null | grep -v make` + # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. + if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a + then + ac_im_usrlibdir=$ac_im_libdir + fi + # Screen out bogus values from the imake configuration. + case "$ac_im_incroot" in + /usr/include) ;; + *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; + esac + case "$ac_im_usrlibdir" in + /usr/lib | /lib) ;; + *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; + esac + fi + cd .. + rm -fr conftestdir +fi + +if test "$no_x" = yes; then +test -z "$x_direct_test_library" && x_direct_test_library=Xt +test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc +test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h +cat > conftest.$ac_ext < +EOF +eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_err=`grep -v '^ *+' conftest.out` +if test -z "$ac_err"; then + rm -rf conftest* + no_x= ac_x_includes= +else + echo "$ac_err" >&5 + rm -rf conftest* + for ac_dir in \ + /usr/X11R6/include \ + /usr/X11R5/include \ + /usr/X11R4/include \ + \ + /usr/include/X11R6 \ + /usr/include/X11R5 \ + /usr/include/X11R4 \ + \ + /usr/local/X11R6/include \ + /usr/local/X11R5/include \ + /usr/local/X11R4/include \ + \ + /usr/local/include/X11R6 \ + /usr/local/include/X11R5 \ + /usr/local/include/X11R4 \ + \ + /usr/X11/include \ + /usr/include/X11 \ + /usr/local/X11/include \ + /usr/local/include/X11 \ + \ + /usr/X386/include \ + /usr/x386/include \ + /usr/XFree86/include/X11 \ + \ + /usr/include \ + /usr/local/include \ + /usr/unsupported/include \ + /usr/athena/include \ + /usr/local/x11r5/include \ + /usr/lpp/Xamples/include \ + \ + /usr/openwin/include \ + /usr/openwin/share/include \ + ; \ + do + if test -r "$ac_dir/$x_direct_test_include"; then + no_x= ac_x_includes=$ac_dir + break + fi + done +fi +rm -f conftest* + +# Check for the libraries. +# See if we find them without any special options. +# Don't add to $LIBS permanently. +ac_save_LIBS="$LIBS" +LIBS="-l$x_direct_test_library $LIBS" +cat > conftest.$ac_ext <&6 +else + test "x$x_includes" = xNONE && x_includes=$ac_x_includes + test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries + ac_cv_path_x="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries" + echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 +fi + +if test "$no_x" = yes; then + # Not all programs may use this symbol, but it does not hurt to define it. + X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING" +else + if test -n "$x_includes"; then + X_CFLAGS="$X_CFLAGS -I$x_includes" + fi + + # It would be nice to have a more robust check for the -R ld option than + # just checking for Solaris. + # It would also be nice to do this for all -L options, not just this one. + if test -n "$x_libraries"; then + X_LIBS="$X_LIBS -L$x_libraries" + if test "`(uname) 2>/dev/null`" = SunOS && + uname -r | grep '^5' >/dev/null; then + X_LIBS="$X_LIBS -R$x_libraries" + fi + fi + + # Check for libraries that X11R6 Xt/Xaw programs need. + + ac_save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -L$x_libraries" + # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to + # check for ICE first), but we must link in the order -lSM -lICE or + # we get undefined symbols. So assume we have SM if we have ICE. + # These have to be linked with before -lX11, unlike the other + # libraries we check for below, so use a different variable. + # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. + echo $ac_n "checking for -lICE""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_lib_ICE'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lICE $LIBS" +cat > conftest.$ac_ext <&6 + X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" +else + echo "$ac_t""no" 1>&6 +fi + + LDFLAGS="$ac_save_LDFLAGS" + + # Check for system-dependent libraries X programs must link with. + + if test "$ISC" = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" + else + # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X + # libraries were built with DECnet support. And karl@cs.umb.edu says + # the Alpha needs dnet_stub (dnet does not exist). + echo $ac_n "checking for -ldnet""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_lib_dnet'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-ldnet $LIBS" +cat > conftest.$ac_ext <&6 + X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" +else + echo "$ac_t""no" 1>&6 +fi + + if test $ac_cv_lib_dnet = no; then + echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_lib_dnet_stub'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-ldnet_stub $LIBS" +cat > conftest.$ac_ext <&6 + X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" +else + echo "$ac_t""no" 1>&6 +fi + + fi + + # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, + # to get the SysV transport functions. + # Not sure which flavor of 386 UNIX this is, but it seems harmless to + # check for it. + echo $ac_n "checking for -lnsl""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lnsl $LIBS" +cat > conftest.$ac_ext <&6 + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" +else + echo "$ac_t""no" 1>&6 +fi + + + # lieder@skyler.mavd.honeywell.com says without -lsocket, + # socket/setsockopt and other routines are undefined under SCO ODT 2.0. + # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch. + if test "`(uname) 2>/dev/null`" != IRIX; then + echo $ac_n "checking for -lsocket""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lsocket $LIBS" +cat > conftest.$ac_ext <&6 + X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket" +else + echo "$ac_t""no" 1>&6 +fi + + fi + fi +fi + +if test -n "$x_includes" ; then +CPPFLAGS="$CPPFLAGS -I$x_includes" +fi + +echo $ac_n "checking for -lsocket""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lsocket $LIBS" +cat > conftest.$ac_ext <&6 + XLIBS="-lsocket $XLIBS" +else + echo "$ac_t""no" 1>&6 +fi + +echo $ac_n "checking for -lnsl""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lnsl $LIBS" +cat > conftest.$ac_ext <&6 + XLIBS="-lnsl $XLIBS" +else + echo "$ac_t""no" 1>&6 +fi + +echo $ac_n "checking for -lX11""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_lib_X11'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lX11 $X_LIBS $XLIBS $LIBS $LIBS" +cat > conftest.$ac_ext <&6 + +XLIBS="$X_LIBS -lX11 $XLIBS" +cat >> confdefs.h <<\EOF +#define HAVE_LIBX11 1 +EOF + + +else + echo "$ac_t""no" 1>&6 +fi + + +for ac_hdr in audio/audiolib.h +do +ac_safe=`echo "$ac_hdr" | tr './\055' '___'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_err=`grep -v '^ *+' conftest.out` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'` + cat >> confdefs.h <&6 +fi +done + +if test "$ac_cv_header_audio_audiolib_h" = yes ; then + echo $ac_n "checking for -laudio""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_lib_audio'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-laudio $XLIBS $LIBS $LIBS" +cat > conftest.$ac_ext <&6 + + XLIBS="-laudio $XLIBS" + cat >> confdefs.h <<\EOF +#define HAVE_NAS 1 +EOF + + +else + echo "$ac_t""no" 1>&6 +fi + + if test "$ac_cv_lib_audio" = yes; then + if test "$hplay" = dummy; then + hplay="na" + LIBS="$XLIBS $LIBS" + XLIBS="" + else + PROGS="$PROGS nasay" + fi + fi +fi + +if test "$hplay" = sun; then +cat > conftest.$ac_ext <> confdefs.h <<\EOF +#define HAVE_NONSTDARITH 1 +EOF + +fi +rm -f conftest* + +fi + +if test $ac_cv_prog_gcc = yes; then + echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_pattern="Autoconf.*'x'" + cat > conftest.$ac_ext < +Autoconf TIOCGETP +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "$ac_pattern" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_prog_gcc_traditional=yes +else + rm -rf conftest* + ac_cv_prog_gcc_traditional=no +fi +rm -f conftest* + + + if test $ac_cv_prog_gcc_traditional = no; then + cat > conftest.$ac_ext < +Autoconf TCGETA +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "$ac_pattern" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_prog_gcc_traditional=yes +fi +rm -f conftest* + + fi +fi + echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 + if test $ac_cv_prog_gcc_traditional = yes; then + CC="$CC -traditional" + fi +fi + +echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +#ifdef signal +#undef signal +#endif +#ifdef __cplusplus +extern "C" +#endif +void (*signal ()) (); +int main() { return 0; } +int t() { +int i; +; return 0; } +EOF +if eval $ac_compile; then + rm -rf conftest* + ac_cv_type_signal=void +else + rm -rf conftest* + ac_cv_type_signal=int +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_signal" 1>&6 +cat >> confdefs.h <&6 +if make -v 2>/dev/null | grep -i 'GNU *Make' > /dev/null ; then +make_dist=$srcdir/config/make_dist +echo "$ac_t""yes" 1>&6 +else +echo "$ac_t""no" 1>&6 +fi + + + + + + + + + + + + + + + +trap '' 1 2 15 +cat > confcache <<\EOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs. It is not useful on other systems. +# If it contains results you don't want to keep, you may remove or edit it. +# +# By default, configure uses ./config.cache as the cache file, +# creating it if it does not exist already. You can give configure +# the --cache-file=FILE option to use a different cache file; that is +# what configure does when it calls configure scripts in +# subdirectories, so they share the cache. +# Giving --cache-file=/dev/null disables caching, for debugging configure. +# config.status only pays attention to the cache file if you give it the +# --recheck option to rerun configure. +# +EOF +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +(set) 2>&1 | + sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ + >> confcache +if cmp -s $cache_file confcache; then + : +else + if test -w $cache_file; then + echo "updating cache $cache_file" + cat confcache > $cache_file + else + echo "not updating unwritable cache $cache_file" + fi +fi +rm -f confcache + +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# Any assignment to VPATH causes Sun make to only execute +# the first set of double-colon rules, so remove it if not needed. +# If there is a colon in the path, we need to keep it. +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' +fi + +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 + +DEFS=-DHAVE_CONFIG_H + +# Without the "./", some shells look in PATH for config.status. +: ${CONFIG_STATUS=./config.status} + +echo creating $CONFIG_STATUS +rm -f $CONFIG_STATUS +cat > $CONFIG_STATUS </dev/null | sed 1q`: +# +# $0 $ac_configure_args +# +# Compiler output produced by configure, useful for debugging +# configure, is in ./config.log if it exists. + +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" +for ac_option +do + case "\$ac_option" in + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" + exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; + -version | --version | --versio | --versi | --vers | --ver | --ve | --v) + echo "$CONFIG_STATUS generated by autoconf version 2.3" + exit 0 ;; + -help | --help | --hel | --he | --h) + echo "\$ac_cs_usage"; exit 0 ;; + *) echo "\$ac_cs_usage"; exit 1 ;; + esac +done + +ac_given_srcdir=$srcdir +ac_given_INSTALL="$INSTALL" + +trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 + +# Protect against being on the right side of a sed subst in config.status. +sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; + s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF +$ac_vpsub +$extrasub +s%@CFLAGS@%$CFLAGS%g +s%@CPPFLAGS@%$CPPFLAGS%g +s%@CXXFLAGS@%$CXXFLAGS%g +s%@DEFS@%$DEFS%g +s%@LDFLAGS@%$LDFLAGS%g +s%@LIBS@%$LIBS%g +s%@exec_prefix@%$exec_prefix%g +s%@prefix@%$prefix%g +s%@program_transform_name@%$program_transform_name%g +s%@host@%$host%g +s%@host_alias@%$host_alias%g +s%@host_cpu@%$host_cpu%g +s%@host_vendor@%$host_vendor%g +s%@host_os@%$host_os%g +s%@CC@%$CC%g +s%@SET_MAKE@%$SET_MAKE%g +s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g +s%@INSTALL_DATA@%$INSTALL_DATA%g +s%@CPP@%$CPP%g +s%@X_CFLAGS@%$X_CFLAGS%g +s%@X_PRE_LIBS@%$X_PRE_LIBS%g +s%@X_LIBS@%$X_LIBS%g +s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g +s%@INSTALL@%$INSTALL%g +s%@DICTS@%$DICTS%g +s%@ADICT@%$ADICT%g +s%@BDICT@%$BDICT%g +s%@XLIBS@%$XLIBS%g +s%@PROGS@%$PROGS%g +s%@NOPROTOFLOAT@%$NOPROTOFLOAT%g +s%@HAVE_NONSTDARITH@%$HAVE_NONSTDARITH%g +/@make_dist@/r $make_dist +s%@make_dist@%%g + +CEOF +EOF +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then + # Support "outfile[:infile]", defaulting infile="outfile.in". + case "$ac_file" in + *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` + ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + *) ac_file_in="${ac_file}.in" ;; + esac + + # Adjust relative srcdir, etc. for subdirectories. + + # Remove last slash and all that follows it. Not all systems have dirname. + ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` + if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && mkdir "$ac_dir" + ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" + # A "../" for each directory in $ac_dir_suffix. + ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` + else + ac_dir_suffix= ac_dots= + fi + + case "$ac_given_srcdir" in + .) srcdir=. + if test -z "$ac_dots"; then top_srcdir=. + else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; + /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; + *) # Relative path. + srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" + top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + + case "$ac_given_INSTALL" in + [/$]*) INSTALL="$ac_given_INSTALL" ;; + *) INSTALL="$ac_dots$ac_given_INSTALL" ;; + esac + echo creating "$ac_file" + rm -f "$ac_file" + configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." + case "$ac_file" in + *Makefile*) ac_comsub="1i\\ +# $configure_input" ;; + *) ac_comsub= ;; + esac + sed -e "$ac_comsub +s%@configure_input@%$configure_input%g +s%@srcdir@%$srcdir%g +s%@top_srcdir@%$top_srcdir%g +s%@INSTALL@%$INSTALL%g +" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file +fi; done +rm -f conftest.subs + +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where +# NAME is the cpp macro being defined and VALUE is the value it is being given. +# +# ac_d sets the value in "#define NAME VALUE" lines. +ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' +ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' +ac_dC='\3' +ac_dD='%g' +# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". +ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' +ac_uB='\([ ]\)%\1#\2define\3' +ac_uC=' ' +ac_uD='\4%g' +# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". +ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' +ac_eB='$%\1#\2define\3' +ac_eC=' ' +ac_eD='%g' + +CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"} +for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then + # Support "outfile[:infile]", defaulting infile="outfile.in". + case "$ac_file" in + *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` + ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + *) ac_file_in="${ac_file}.in" ;; + esac + + echo creating $ac_file + + rm -f conftest.frag conftest.in conftest.out + cp $ac_given_srcdir/$ac_file_in conftest.in + +EOF + +# Transform confdefs.h into a sed script conftest.vals that substitutes +# the proper values into config.h.in to produce config.h. And first: +# Protect against being on the right side of a sed subst in config.status. +# Protect against being in an unquoted here document in config.status. +rm -f conftest.vals +cat > conftest.hdr <<\EOF +s/[\\&%]/\\&/g +s%[\\$`]%\\&%g +s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp +s%ac_d%ac_u%gp +s%ac_u%ac_e%gp +EOF +sed -n -f conftest.hdr confdefs.h > conftest.vals +rm -f conftest.hdr + +# This sed command replaces #undef with comments. This is necessary, for +# example, in the case of _POSIX_SOURCE, which is predefined and required +# on some systems where configure will not decide to define it. +cat >> conftest.vals <<\EOF +s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% +EOF + +# Break up conftest.vals because some shells have a limit on +# the size of here documents, and old seds have small limits too. +# Maximum number of lines to put in a single here document. +ac_max_here_lines=12 + +rm -f conftest.tail +while : +do + ac_lines=`grep -c . conftest.vals` + # grep -c gives empty output for an empty file on some AIX systems. + if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi + # Write a limited-size here document to conftest.frag. + echo ' cat > conftest.frag <> $CONFIG_STATUS + sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS + echo 'CEOF + sed -f conftest.frag conftest.in > conftest.out + rm -f conftest.in + mv conftest.out conftest.in +' >> $CONFIG_STATUS + sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail + rm -f conftest.vals + mv conftest.tail conftest.vals +done +rm -f conftest.vals + +cat >> $CONFIG_STATUS <<\EOF + rm -f conftest.frag conftest.h + echo "/* $ac_file. Generated automatically by configure. */" > conftest.h + cat conftest.in >> conftest.h + rm -f conftest.in + if cmp -s $ac_file conftest.h 2>/dev/null; then + echo "$ac_file is unchanged" + rm -f conftest.h + else + rm -f $ac_file + mv conftest.h $ac_file + fi +fi; done + +EOF + +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF +srcdir=$ac_given_srcdir +while test -n "$ac_sources"; do + set $ac_dests; ac_dest=$1; shift; ac_dests=$* + set $ac_sources; ac_source=$1; shift; ac_sources=$* + + echo "linking $srcdir/$ac_source to $ac_dest" + + if test ! -r $srcdir/$ac_source; then + { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } + fi + rm -f $ac_dest + + # Make relative symlinks. + # Remove last slash and all that follows it. Not all systems have dirname. + ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` + if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then + # The dest file is in a subdirectory. + test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" + ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" + # A "../" for each directory in $ac_dest_dir_suffix. + ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` + else + ac_dest_dir_suffix= ac_dots= + fi + + case "$srcdir" in + [/$]*) ac_rel_source="$srcdir/$ac_source" ;; + *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; + esac + + # Make a symlink if possible; otherwise try a hard link. + if ln -s $ac_rel_source $ac_dest 2>/dev/null || + ln $srcdir/$ac_source $ac_dest; then : + else + { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } + fi +done + + +exit 0 +EOF +chmod +x $CONFIG_STATUS +rm -fr confdefs* $ac_clean_files +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 + + diff --git a/audio/xmcd/rsynth/files/freebsdplay.c b/audio/xmcd/rsynth/files/freebsdplay.c new file mode 100644 index 00000000000..065b21fb9e1 --- /dev/null +++ b/audio/xmcd/rsynth/files/freebsdplay.c @@ -0,0 +1,140 @@ +#include + +/*****************************************************************/ +/*** ***/ +/*** Play out a file on FreeBSD ***/ +/*** (conf/linuxplay.c with changes) ***/ +/*** ***/ +/*****************************************************************/ + +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#include + +#include +#include "proto.h" +#include "getargs.h" +#include "hplay.h" + +#define SAMP_RATE 8000 +long samp_rate = SAMP_RATE; + +/* Audio Parameters */ + +static int dev_fd = -1; + /* file descriptor for audio device */ +char *dev_file = "/dev/dsp"; + +static int linear_fd = -1; + +static char *linear_file = NULL; + +char *prog = "hplay"; + +static int +audio_open(void) +{ + dev_fd = open(dev_file, O_WRONLY | O_NDELAY); + if (dev_fd < 0) + { + perror(dev_file); + return 0; + } + return 1; +} + +int +audio_init(int argc, char *argv[]) +{ + int rate_set = 0; + int use_audio = 1; + + prog = argv[0]; + + argc = getargs("freebsd Audio",argc, argv, + "r", "%d", &rate_set, "Sample rate", + "a", NULL, &use_audio, "Audio enable", + NULL); + + if (help_only) + return argc; + + if (use_audio) + audio_open(); + + if (rate_set) + samp_rate = rate_set; + + if (dev_fd > 0) + { + ioctl(dev_fd, SNDCTL_DSP_SPEED, &samp_rate); + printf("Actual sound rate: %ld\n", samp_rate); + } + + return argc; +} + +void +audio_term() +{ + int dummy; + + /* Close audio system */ + if (dev_fd >= 0) + { + ioctl(dev_fd, SNDCTL_DSP_SYNC, &dummy); + close(dev_fd); + dev_fd = -1; + } + + /* Finish linear file */ + if (linear_fd >= 0) + { + ftruncate(linear_fd, lseek(linear_fd, 0L, SEEK_CUR)); + close(linear_fd); + linear_fd = -1; + } +} + +void +audio_play(int n, short *data) +{ + if (n > 0) + { + unsigned char *converted = (unsigned char *) malloc(n); + int i; + + if (converted == NULL) + { + fprintf(stderr, "Could not allocate memory for conversion\n"); + exit(3); + } + + for (i = 0; i < n; i++) + converted[i] = (data[i] - 32768) / 256; + + if (linear_fd >= 0) + { + if (write(linear_fd, converted, n) != n) + perror("write"); + } + + if (dev_fd >= 0) + { + if (write(dev_fd, converted, n) != n) + perror("write"); + } + + free(converted); + } +} diff --git a/audio/xmcd/rsynth/files/md5 b/audio/xmcd/rsynth/files/md5 new file mode 100644 index 00000000000..47a70ccb500 --- /dev/null +++ b/audio/xmcd/rsynth/files/md5 @@ -0,0 +1 @@ +MD5 (rsynth-2.0.tar.gz) = 0546d21526a1ef4e7bd4b5b5ca26125f diff --git a/audio/xmcd/rsynth/patches/patch-aa b/audio/xmcd/rsynth/patches/patch-aa new file mode 100644 index 00000000000..44906e467d3 --- /dev/null +++ b/audio/xmcd/rsynth/patches/patch-aa @@ -0,0 +1,9 @@ +*** naplay.c.ORIG Tue Nov 1 19:40:13 1994 +--- naplay.c Sat Jun 10 19:51:40 1995 +*************** +*** 1,3 **** +--- 1,4 ---- ++ #include + #include + #include + #include diff --git a/audio/xmcd/rsynth/patches/patch-ab b/audio/xmcd/rsynth/patches/patch-ab new file mode 100644 index 00000000000..60772e54d8a --- /dev/null +++ b/audio/xmcd/rsynth/patches/patch-ab @@ -0,0 +1,30 @@ +*** configure.in.orig Tue Nov 8 14:30:51 1994 +--- configure.in Sat Jul 1 18:02:56 1995 +*************** +*** 11,17 **** + dbm=none + make_dist=/dev/null + +! AC_PREFIX_PROGRAM(gcc) + + if test -z "$CC" && test -n "$GCC" ; then + CC=$GCC +--- 11,18 ---- + dbm=none + make_dist=/dev/null + +! dnl *sigh* - torstenb +! dnl AC_PREFIX_PROGRAM(gcc) + + if test -z "$CC" && test -n "$GCC" ; then + CC=$GCC +*************** +*** 41,46 **** +--- 42,48 ---- + *-sgi-*) hplay=sgi ;; + *-next-*) hplay=NeXT; AC_CHECK_HEADERS(libc.h) ;; + *-*-linux*) hplay=linux ;; ++ *-*-freebsd*) hplay=freebsd ;; + *-*-hpux*) hplay=hpux ;; + *-*-*) echo "Unknown host type $host" ;; + esac diff --git a/audio/xmcd/rsynth/patches/patch-ac b/audio/xmcd/rsynth/patches/patch-ac new file mode 100644 index 00000000000..d2f780df5b1 --- /dev/null +++ b/audio/xmcd/rsynth/patches/patch-ac @@ -0,0 +1,11 @@ +--- ./Makefile.in.org Tue Nov 8 05:30:52 1994 ++++ ./Makefile.in Mon Jul 3 21:29:28 1995 +@@ -67,7 +67,7 @@ + for f in $(PROGS); do \ + $(INSTALL_PROG) $$f $(BIN_DIR); \ + done +- $(INSTALL) -d $(LIB_DIR) ++ if [ ! -d $(LIB_DIR) ]; then mkdir -p $(LIB_DIR); fi + for f in $(DICTS); do \ + $(INSTALL_DATA) $$f $(LIB_DIR); \ + done diff --git a/audio/xmcd/rsynth/pkg/COMMENT b/audio/xmcd/rsynth/pkg/COMMENT new file mode 100644 index 00000000000..942e8a8538f --- /dev/null +++ b/audio/xmcd/rsynth/pkg/COMMENT @@ -0,0 +1 @@ +Speech synthesizer. diff --git a/audio/xmcd/rsynth/pkg/DESCR b/audio/xmcd/rsynth/pkg/DESCR new file mode 100644 index 00000000000..d4122f31b47 --- /dev/null +++ b/audio/xmcd/rsynth/pkg/DESCR @@ -0,0 +1,15 @@ +This is a text to speech system produced by integrating various pieces +of code and tables of data, which are all (I believe) in the public domain. + +The Oxford Text Archive has for several years maintained copies of several +machine-readable dictionaries along with its extensive (if +unsystematic) collections of other machine-readable texts. This document +gives some further details of the various dictionaries available, and +summarises the conditions under which copies of them are currently +distributed. + +The Oxford Text Archive Shortlist (available on request via electronic +mail and by FTP) gives up to date brief details of all texts held in +the Archive. Send electronic mail to ARCHIVE@VAX.OXFORD.AC.UK. For +anonymous FTP, look in the directory ota on ota.ox.ac.uk (129.67.1.165) + diff --git a/audio/xmcd/rsynth/pkg/PLIST b/audio/xmcd/rsynth/pkg/PLIST new file mode 100644 index 00000000000..76a90edc9a9 --- /dev/null +++ b/audio/xmcd/rsynth/pkg/PLIST @@ -0,0 +1,2 @@ +bin/say +bin/nasay diff --git a/audio/xmcd/splay/Makefile b/audio/xmcd/splay/Makefile new file mode 100644 index 00000000000..0401f4f638b --- /dev/null +++ b/audio/xmcd/splay/Makefile @@ -0,0 +1,18 @@ +# New ports collection makefile for: splay +# Version required: 0.3 +# Date created: 1 Apr 1997 +# Whom: junker@jazz.snu.ac.kr +# +# $Id: Makefile,v 1.1.1.1 1998/05/21 01:38:02 angelos Exp $ +# + +DISTNAME= splay-0.5 +CATEGORIES= audio +MASTER_SITES= ${MASTER_SITE_SUNSITE} +MASTER_SITE_SUBDIR= apps/sound/players/ + +MAINTAINER= junker@jazz.snu.ac.kr + +GNU_CONFIGURE= yes + +.include diff --git a/audio/xmcd/splay/files/md5 b/audio/xmcd/splay/files/md5 new file mode 100644 index 00000000000..2563a9b3a0d --- /dev/null +++ b/audio/xmcd/splay/files/md5 @@ -0,0 +1 @@ +MD5 (splay-0.5.tar.gz) = 6c98edfb97961c4f89c6a4b8e9aac405 diff --git a/audio/xmcd/splay/patches/patch-aa b/audio/xmcd/splay/patches/patch-aa new file mode 100644 index 00000000000..253006d4b40 --- /dev/null +++ b/audio/xmcd/splay/patches/patch-aa @@ -0,0 +1,19 @@ +*** mpegsound/rawplayer.cc Thu Mar 27 22:18:47 1997 +--- mpegsound/rawplayer.cc Tue Apr 1 19:33:46 1997 +*************** +*** 8,14 **** + + #include + #include +! #include + + #include "mpegsound.h" + +--- 8,14 ---- + + #include + #include +! #include + + #include "mpegsound.h" + diff --git a/audio/xmcd/splay/patches/patch-ab b/audio/xmcd/splay/patches/patch-ab new file mode 100644 index 00000000000..cce91b282d0 --- /dev/null +++ b/audio/xmcd/splay/patches/patch-ab @@ -0,0 +1,11 @@ +--- src/cmd/cmd.cc.orig Sat Aug 9 16:31:03 1997 ++++ src/cmd/cmd.cc Sat Aug 9 16:31:15 1997 +@@ -15,7 +15,7 @@ + #include + #include + #include +-#include ++#include + + #include + diff --git a/audio/xmcd/splay/pkg/COMMENT b/audio/xmcd/splay/pkg/COMMENT new file mode 100644 index 00000000000..d757aaf70be --- /dev/null +++ b/audio/xmcd/splay/pkg/COMMENT @@ -0,0 +1 @@ +An audio player/decoder that decodes MPEG Layer I,II,III and WAV files. diff --git a/audio/xmcd/splay/pkg/DESCR b/audio/xmcd/splay/pkg/DESCR new file mode 100644 index 00000000000..614ef9bd715 --- /dev/null +++ b/audio/xmcd/splay/pkg/DESCR @@ -0,0 +1,14 @@ +splay-0.3 +--------- + +Splay program uses the MPEG/Wave Sound library to play sound files in +several formats, notably the MPEG audio and Wave format. This early version +has only limited functionally and a simplistic user interface. + +This program have NO WARRANTY. +You can use this program under GPL. +You can use these libraries under Library GPL. + +* This version of splay was not compiled with pthread library. +-- +Port by Choi Jun Ho diff --git a/audio/xmcd/splay/pkg/PLIST b/audio/xmcd/splay/pkg/PLIST new file mode 100644 index 00000000000..df1c853561d --- /dev/null +++ b/audio/xmcd/splay/pkg/PLIST @@ -0,0 +1 @@ +bin/splay diff --git a/audio/xmcd/timidity/Makefile b/audio/xmcd/timidity/Makefile new file mode 100644 index 00000000000..2df42f54346 --- /dev/null +++ b/audio/xmcd/timidity/Makefile @@ -0,0 +1,36 @@ +# New ports collection makefile for: timidity +# Homepage: http://www.cgs.fi/~tt/timidity/ +# Version required: 0.2i +# Date created: 17 Nov 1996 +# Whom: ache +# +# $Id: Makefile,v 1.1.1.1 1998/05/21 01:38:03 angelos Exp $ +# + +DISTNAME= timidity-0.2i +CATEGORIES= audio +MASTER_SITES= ftp://ftp.cdrom.com/pub/demos/music/samples/ \ + http://www.cgs.fi/~tt/timidity/ +TIINS= dgguspat.zip +DISTFILES= ${TIINS} ${DISTNAME}.tar.gz + +MAINTAINER= ache@FreeBSD.ORG + +NO_CDROM= "Uses copyrighted patches" + +BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip + +EXTRACT_ONLY= ${DISTNAME}.tar.gz +INSTALL_TARGET= install.all +MAN1= timidity.1 + +do-configure: + @cd ${WRKSRC} && \ + sed "s=%PREFIX%=${PREFIX}=" < gravis.cfg > gravis.cfg.new && \ + mv gravis.cfg.new gravis.cfg + +post-install: + cd ${PREFIX}/lib/timidity/patch && \ + unzip -o -q -L ${DISTDIR}/${TIINS} + +.include diff --git a/audio/xmcd/timidity/files/md5 b/audio/xmcd/timidity/files/md5 new file mode 100644 index 00000000000..f39b8934296 --- /dev/null +++ b/audio/xmcd/timidity/files/md5 @@ -0,0 +1,2 @@ +MD5 (dgguspat.zip) = 94affd73c5b53ff0d5e12df1bc55c53d +MD5 (timidity-0.2i.tar.gz) = 7dedd75232aaa7729e50c76cdd379b82 diff --git a/audio/xmcd/timidity/patches/patch-aa b/audio/xmcd/timidity/patches/patch-aa new file mode 100644 index 00000000000..3f12b08b1ce --- /dev/null +++ b/audio/xmcd/timidity/patches/patch-aa @@ -0,0 +1,85 @@ +*** config.h.orig Sat Jun 1 16:54:49 1996 +--- config.h Sun Nov 17 10:00:29 1996 +*************** +*** 217,222 **** +--- 217,238 ---- + # endif + #endif /* linux */ + ++ #ifdef __FreeBSD__ ++ #include ++ #include ++ #if BYTE_ORDER == LITTLE_ENDIAN ++ #undef BIG_ENDIAN ++ #undef PDP_ENDIAN ++ #elif BYTE_ORDER == BIG_ENDIAN ++ #undef LITTLE_ENDIAN ++ #undef PDP_ENDIAN ++ #else ++ # error No valid byte sex defined ++ #endif ++ #define USE_LDEXP ++ #define PI M_PI ++ #endif ++ + /* Win32 on Intel machines */ + #ifdef __WIN32__ + # define LITTLE_ENDIAN +*************** +*** 254,266 **** +--- 270,292 ---- + #ifdef LITTLE_ENDIAN + #define LE_SHORT(x) x + #define LE_LONG(x) x ++ #ifdef __FreeBSD__ ++ #define BE_SHORT(x) __byte_swap_word(x) ++ #define BE_LONG(x) __byte_swap_long(x) ++ #else + #define BE_SHORT(x) XCHG_SHORT(x) + #define BE_LONG(x) XCHG_LONG(x) ++ #endif + #else + #define BE_SHORT(x) x + #define BE_LONG(x) x ++ #ifdef __FreeBSD__ ++ #define LE_SHORT(x) __byte_swap_word(x) ++ #define LE_LONG(x) __byte_swap_long(x) ++ #else + #define LE_SHORT(x) XCHG_SHORT(x) + #define LE_LONG(x) XCHG_LONG(x) ++ #endif + #endif + + #define MAX_AMPLIFICATION 800 +*** mix.c.orig Mon May 20 17:09:46 1996 +--- mix.c Sun Nov 17 10:01:36 1996 +*************** +*** 23,29 **** +--- 23,33 ---- + + #include + #include ++ #ifdef __FreeBSD__ ++ #include ++ #else + #include ++ #endif + + #include "config.h" + #include "common.h" +*** resample.c.orig Mon May 20 17:09:47 1996 +--- resample.c Sun Nov 17 09:59:29 1996 +*************** +*** 22,28 **** +--- 22,32 ---- + + #include + #include ++ #ifdef __FreeBSD__ ++ #include ++ #else + #include ++ #endif + + #include "config.h" + #include "common.h" diff --git a/audio/xmcd/timidity/patches/patch-ab b/audio/xmcd/timidity/patches/patch-ab new file mode 100644 index 00000000000..34e8d69c27a --- /dev/null +++ b/audio/xmcd/timidity/patches/patch-ab @@ -0,0 +1,150 @@ +*** Makefile.orig Sun May 26 13:26:46 1996 +--- Makefile Sun Nov 17 13:09:19 1996 +*************** +*** 24,45 **** + # But where to change without revealing my secret identity? + + ########### Compiler and flags. +! CC = gcc +! DEBUGFLAGS = -Wall -O2 + + ########### Install. +! INSTALL = /usr/bin/install + + # Where to install the executable +! BIN_DIR = /usr/local/bin + + # Where to install the manual pages +! MAN_DIR = /usr/local/man/man1 + + # Where to install the patches, config files, and MIDI files. + # If you change this, it's a good idea to recompile the binary, + # or you'll need to invoke timidity with the -L option. +! TIMID_DIR = /usr/local/lib/timidity + + # Where to install the Tcl code, if you use the Tcl code that is. + TCL_DIR = $(TIMID_DIR) +--- 24,45 ---- + # But where to change without revealing my secret identity? + + ########### Compiler and flags. +! #CC = gcc +! DEBUGFLAGS = -Wall + + ########### Install. +! #INSTALL = /usr/bin/install + + # Where to install the executable +! BIN_DIR = ${PREFIX}/bin + + # Where to install the manual pages +! MAN_DIR = ${PREFIX}/man/man1 + + # Where to install the patches, config files, and MIDI files. + # If you change this, it's a good idea to recompile the binary, + # or you'll need to invoke timidity with the -L option. +! TIMID_DIR = ${PREFIX}/lib/timidity + + # Where to install the Tcl code, if you use the Tcl code that is. + TCL_DIR = $(TIMID_DIR) +*************** +*** 93,100 **** + # Select the ncurses full-screen interface + SYSTEM += -DIA_NCURSES + SYSEXTRAS += ncurs_c.c +! EXTRAINCS += -I/usr/include/ncurses +! EXTRALIBS += -lncurses + + ## Select the S-Lang full-screen interface + #SYSTEM += -DIA_SLANG +--- 93,100 ---- + # Select the ncurses full-screen interface + SYSTEM += -DIA_NCURSES + SYSEXTRAS += ncurs_c.c +! #EXTRAINCS += -I/usr/include/ncurses +! EXTRALIBS += -lncurses -lmytinfo + + ## Select the S-Lang full-screen interface + #SYSTEM += -DIA_SLANG +*************** +*** 112,120 **** + #EXTRALIBS += -lgen + + # Select the Tcl/Tk interface +! SYSTEM += -DTCLTK -DWISH=\"wishx\" -DTKPROGPATH=\"$(TCL_DIR)/tkmidity.tcl\" +! SYSEXTRAS += tk_c.c +! INST_TK = install.tk + #EXTRAINCS += + #EXTRALIBS += + +--- 112,120 ---- + #EXTRALIBS += -lgen + + # Select the Tcl/Tk interface +! #SYSTEM += -DTCLTK -DWISH=\"wishx\" -DTKPROGPATH=\"$(TCL_DIR)/tkmidity.tcl\" +! #SYSEXTRAS += tk_c.c +! #INST_TK = install.tk + #EXTRAINCS += + #EXTRALIBS += + +*************** +*** 136,142 **** + SDIST = timidity-lib-$(SUPPVERSION).tar.gz + SDISTZIP = tilib$(FNSUPPVERSION).zip + +! CFLAGS= $(DEBUGFLAGS) -DDEFAULT_PATH=\"$(TIMID_DIR)\" \ + -DTIMID_VERSION=\"$(VERSION)\" $(SYSTEM) $(EXTRAINCS) + + ########### All relevant files.. Anybody know autoconf? +--- 136,142 ---- + SDIST = timidity-lib-$(SUPPVERSION).tar.gz + SDISTZIP = tilib$(FNSUPPVERSION).zip + +! CFLAGS+= $(DEBUGFLAGS) -DDEFAULT_PATH=\"$(TIMID_DIR)\" \ + -DTIMID_VERSION=\"$(VERSION)\" $(SYSTEM) $(EXTRAINCS) + + ########### All relevant files.. Anybody know autoconf? +*************** +*** 228,237 **** + wav2pat: wav2pat.c + $(CC) $(CFLAGS) -o wav2pat wav2pat.c + +! depends depend dep: +! $(CC) $(CFLAGS) -MM $(CSRCS) $(OPTSRCS) $(TOOLSRCS) > depends +! +! include depends + + ########### Installation targets + +--- 228,237 ---- + wav2pat: wav2pat.c + $(CC) $(CFLAGS) -o wav2pat wav2pat.c + +! #depends depend dep: +! # $(CC) $(CFLAGS) -MM $(CSRCS) $(OPTSRCS) $(TOOLSRCS) > depends +! # +! #include depends + + ########### Installation targets + +*************** +*** 262,270 **** + mkdir -p $(TIMID_DIR) + $(INSTALL) -m 644 $(CONFIGF) $(TIMID_DIR) + +! install.patch: $(PATCHF) + mkdir -p $(TIMID_DIR)/patch +! $(INSTALL) -m 644 $(PATCHF) $(TIMID_DIR)/patch + + install.tk: $(ALLTCLF) + $(INSTALL) -m 644 $(ALLTCLF) $(TCL_DIR) +--- 262,270 ---- + mkdir -p $(TIMID_DIR) + $(INSTALL) -m 644 $(CONFIGF) $(TIMID_DIR) + +! install.patch: #$(PATCHF) + mkdir -p $(TIMID_DIR)/patch +! # $(INSTALL) -m 644 $(PATCHF) $(TIMID_DIR)/patch + + install.tk: $(ALLTCLF) + $(INSTALL) -m 644 $(ALLTCLF) $(TCL_DIR) diff --git a/audio/xmcd/timidity/patches/patch-ac b/audio/xmcd/timidity/patches/patch-ac new file mode 100644 index 00000000000..ad4e745c08e --- /dev/null +++ b/audio/xmcd/timidity/patches/patch-ac @@ -0,0 +1,40 @@ +*** timidity.cfg.bak Mon May 22 02:40:27 1995 +--- timidity.cfg Sun Nov 17 10:50:44 1996 +*************** +*** 34,42 **** + # This sets up the default patches in the TiMidity support package + # "timidity-lib-0.1.tar.gz": + +! bank 0 +! 0 patch/acpiano.pat +! 24 patch/nylongt2.pat + + ############################################################################## + # If you have Dustin McCartney's "wowpats" patches, you can source the +--- 34,42 ---- + # This sets up the default patches in the TiMidity support package + # "timidity-lib-0.1.tar.gz": + +! #bank 0 +! # 0 patch/acpiano.pat +! # 24 patch/nylongt2.pat + + ############################################################################## + # If you have Dustin McCartney's "wowpats" patches, you can source the +*************** +*** 67,73 **** + # Note that midia.cfg sources gravis.cfg in turn, since the filenames are + # almost identical. + # +! #source midia.cfg + # + + +--- 67,73 ---- + # Note that midia.cfg sources gravis.cfg in turn, since the filenames are + # almost identical. + # +! source midia.cfg + # + + diff --git a/audio/xmcd/timidity/patches/patch-ad b/audio/xmcd/timidity/patches/patch-ad new file mode 100644 index 00000000000..6cb4b1fbb2c --- /dev/null +++ b/audio/xmcd/timidity/patches/patch-ad @@ -0,0 +1,13 @@ +*** gravis.cfg.bak Mon May 20 20:10:15 1996 +--- gravis.cfg Sun Nov 17 12:43:31 1996 +*************** +*** 3,8 **** +--- 3,10 ---- + # programs. + # + ++ dir %PREFIX%/lib/timidity/patch ++ + bank 0 + + 0 acpiano diff --git a/audio/xmcd/timidity/pkg/COMMENT b/audio/xmcd/timidity/pkg/COMMENT new file mode 100644 index 00000000000..46e4a463861 --- /dev/null +++ b/audio/xmcd/timidity/pkg/COMMENT @@ -0,0 +1 @@ +MIDI to WAV renderer and player diff --git a/audio/xmcd/timidity/pkg/DESCR b/audio/xmcd/timidity/pkg/DESCR new file mode 100644 index 00000000000..0a7ddfe0523 --- /dev/null +++ b/audio/xmcd/timidity/pkg/DESCR @@ -0,0 +1,5 @@ +TiMidity is a MIDI to WAVE converter using Gravis Ultra- +sound-compatible patch files to generate digital audio +data from General MIDI files. The data can be stored in a +file for processing, or played in real time through an +audio device. diff --git a/audio/xmcd/timidity/pkg/PLIST b/audio/xmcd/timidity/pkg/PLIST new file mode 100644 index 00000000000..48e11d087d3 --- /dev/null +++ b/audio/xmcd/timidity/pkg/PLIST @@ -0,0 +1,205 @@ +bin/timidity +bin/bag +bin/wav2pat +man/man1/timidity.1.gz +lib/timidity/timidity.cfg +lib/timidity/gsdrum.cfg +lib/timidity/gravis.cfg +lib/timidity/midia.cfg +lib/timidity/wowpats.cfg +lib/timidity/mt32.cfg +lib/timidity/patch/acbass.pat +lib/timidity/patch/accordn.pat +lib/timidity/patch/acguitar.pat +lib/timidity/patch/acpiano.pat +lib/timidity/patch/agogo.pat +lib/timidity/patch/agogohi.pat +lib/timidity/patch/agogolo.pat +lib/timidity/patch/altosax.pat +lib/timidity/patch/applause.pat +lib/timidity/patch/atmosphr.pat +lib/timidity/patch/aurora.pat +lib/timidity/patch/bagpipes.pat +lib/timidity/patch/banjo.pat +lib/timidity/patch/barisax.pat +lib/timidity/patch/basslead.pat +lib/timidity/patch/bassoon.pat +lib/timidity/patch/belltree.pat +lib/timidity/patch/blank.pat +lib/timidity/patch/bongohi.pat +lib/timidity/patch/bongolo.pat +lib/timidity/patch/bottle.pat +lib/timidity/patch/bowglass.pat +lib/timidity/patch/britepno.pat +lib/timidity/patch/c550kc_1.pat +lib/timidity/patch/c550sn10.pat +lib/timidity/patch/c550sn_6.pat +lib/timidity/patch/c550vibs.pat +lib/timidity/patch/cabasa.pat +lib/timidity/patch/calliope.pat +lib/timidity/patch/carillon.pat +lib/timidity/patch/castinet.pat +lib/timidity/patch/celeste.pat +lib/timidity/patch/cello.pat +lib/timidity/patch/charang.pat +lib/timidity/patch/chiflead.pat +lib/timidity/patch/choir.pat +lib/timidity/patch/church.pat +lib/timidity/patch/claps.pat +lib/timidity/patch/clarinet.pat +lib/timidity/patch/clave.pat +lib/timidity/patch/clavinet.pat +lib/timidity/patch/cleangtr.pat +lib/timidity/patch/concrtna.pat +lib/timidity/patch/congahi1.pat +lib/timidity/patch/congahi2.pat +lib/timidity/patch/congalo.pat +lib/timidity/patch/contraba.pat +lib/timidity/patch/cowbell.pat +lib/timidity/patch/crystal.pat +lib/timidity/patch/cuica1.pat +lib/timidity/patch/cuica2.pat +lib/timidity/patch/cymbell.pat +lib/timidity/patch/cymchina.pat +lib/timidity/patch/cymcrsh1.pat +lib/timidity/patch/cymcrsh2.pat +lib/timidity/patch/cymride1.pat +lib/timidity/patch/cymride2.pat +lib/timidity/patch/cymsplsh.pat +lib/timidity/patch/distgtr.pat +lib/timidity/patch/doo.pat +lib/timidity/patch/echovox.pat +lib/timidity/patch/englhorn.pat +lib/timidity/patch/epiano1.pat +lib/timidity/patch/epiano2.pat +lib/timidity/patch/fantasia.pat +lib/timidity/patch/fiddle.pat +lib/timidity/patch/flute.pat +lib/timidity/patch/fngrbass.pat +lib/timidity/patch/frenchrn.pat +lib/timidity/patch/freshair.pat +lib/timidity/patch/fretless.pat +lib/timidity/patch/fx-blow.pat +lib/timidity/patch/fx-fret.pat +lib/timidity/patch/ghostie.pat +lib/timidity/patch/glocken.pat +lib/timidity/patch/gtrharm.pat +lib/timidity/patch/guiro1.pat +lib/timidity/patch/guiro2.pat +lib/timidity/patch/halopad.pat +lib/timidity/patch/harmonca.pat +lib/timidity/patch/harp.pat +lib/timidity/patch/helicptr.pat +lib/timidity/patch/highq.pat +lib/timidity/patch/hihatcl.pat +lib/timidity/patch/hihatop.pat +lib/timidity/patch/hihatpd.pat +lib/timidity/patch/hitbrass.pat +lib/timidity/patch/homeorg.pat +lib/timidity/patch/honky.pat +lib/timidity/patch/hrpschrd.pat +lib/timidity/patch/jazzgtr.pat +lib/timidity/patch/jingles.pat +lib/timidity/patch/jungle.pat +lib/timidity/patch/kalimba.pat +lib/timidity/patch/kick1.pat +lib/timidity/patch/kick2.pat +lib/timidity/patch/koto.pat +lib/timidity/patch/lead5th.pat +lib/timidity/patch/maracas.pat +lib/timidity/patch/marcato.pat +lib/timidity/patch/marimba.pat +lib/timidity/patch/metalpad.pat +lib/timidity/patch/metbell.pat +lib/timidity/patch/metclick.pat +lib/timidity/patch/musicbox.pat +lib/timidity/patch/mutegtr.pat +lib/timidity/patch/mutetrum.pat +lib/timidity/patch/nyguitar.pat +lib/timidity/patch/oboe.pat +lib/timidity/patch/ocarina.pat +lib/timidity/patch/odguitar.pat +lib/timidity/patch/orchhit.pat +lib/timidity/patch/percorg.pat +lib/timidity/patch/piccolo.pat +lib/timidity/patch/pickbass.pat +lib/timidity/patch/pistol.pat +lib/timidity/patch/pizzcato.pat +lib/timidity/patch/polysyn.pat +lib/timidity/patch/recorder.pat +lib/timidity/patch/reedorg.pat +lib/timidity/patch/revcym.pat +lib/timidity/patch/ringwhsl.pat +lib/timidity/patch/rockorg.pat +lib/timidity/patch/santur.pat +lib/timidity/patch/sawwave.pat +lib/timidity/patch/scratch1.pat +lib/timidity/patch/scratch2.pat +lib/timidity/patch/seashore.pat +lib/timidity/patch/shakazul.pat +lib/timidity/patch/shaker.pat +lib/timidity/patch/shamisen.pat +lib/timidity/patch/shannai.pat +lib/timidity/patch/sitar.pat +lib/timidity/patch/slap.pat +lib/timidity/patch/slapbas1.pat +lib/timidity/patch/slapbas2.pat +lib/timidity/patch/slowstr.pat +lib/timidity/patch/snare1.pat +lib/timidity/patch/snare2.pat +lib/timidity/patch/soundtrk.pat +lib/timidity/patch/sprnosax.pat +lib/timidity/patch/sqrclick.pat +lib/timidity/patch/sqrwave.pat +lib/timidity/patch/startrak.pat +lib/timidity/patch/steeldrm.pat +lib/timidity/patch/stickrim.pat +lib/timidity/patch/sticks.pat +lib/timidity/patch/surdo1.pat +lib/timidity/patch/surdo2.pat +lib/timidity/patch/sweeper.pat +lib/timidity/patch/synbass1.pat +lib/timidity/patch/synbass2.pat +lib/timidity/patch/synbras1.pat +lib/timidity/patch/synbras2.pat +lib/timidity/patch/synpiano.pat +lib/timidity/patch/synstr1.pat +lib/timidity/patch/synstr2.pat +lib/timidity/patch/syntom.pat +lib/timidity/patch/taiko.pat +lib/timidity/patch/tamborin.pat +lib/timidity/patch/telephon.pat +lib/timidity/patch/tenorsax.pat +lib/timidity/patch/timbaleh.pat +lib/timidity/patch/timbalel.pat +lib/timidity/patch/timpani.pat +lib/timidity/patch/tomhi1.pat +lib/timidity/patch/tomhi2.pat +lib/timidity/patch/tomlo1.pat +lib/timidity/patch/tomlo2.pat +lib/timidity/patch/tommid1.pat +lib/timidity/patch/tommid2.pat +lib/timidity/patch/toms.pat +lib/timidity/patch/tremstr.pat +lib/timidity/patch/triangl1.pat +lib/timidity/patch/triangl2.pat +lib/timidity/patch/trombone.pat +lib/timidity/patch/trumpet.pat +lib/timidity/patch/tuba.pat +lib/timidity/patch/tubebell.pat +lib/timidity/patch/unicorn.pat +lib/timidity/patch/vibes.pat +lib/timidity/patch/vibslap.pat +lib/timidity/patch/viola.pat +lib/timidity/patch/violin.pat +lib/timidity/patch/voices.pat +lib/timidity/patch/voxlead.pat +lib/timidity/patch/warmpad.pat +lib/timidity/patch/whistle.pat +lib/timidity/patch/whistle1.pat +lib/timidity/patch/whistle2.pat +lib/timidity/patch/woodblk.pat +lib/timidity/patch/woodblk1.pat +lib/timidity/patch/woodblk2.pat +lib/timidity/patch/woodflut.pat +lib/timidity/patch/xylophon.pat diff --git a/audio/xmcd/tracker/Makefile b/audio/xmcd/tracker/Makefile new file mode 100644 index 00000000000..66f5f04331e --- /dev/null +++ b/audio/xmcd/tracker/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: tracker +# Version required: 5.3 +# Date created: 2 Oct 1994 +# Whom: swallace +# +# $Id: Makefile,v 1.1.1.1 1998/05/21 01:38:03 angelos Exp $ +# + +DISTNAME= tracker-5.3 +CATEGORIES= audio +MASTER_SITES= ftp://ftp.ens.fr/pub/dmi/users/espie/beta/ +EXTRACT_SUFX= .tgz + +MAINTAINER= ache@FreeBSD.ORG + +RESTRICTED= "Non-redistributable beta" + +WRKSRC= ${WRKDIR}/tracker +USE_GMAKE= yes +MAKE_FLAGS= MACHINE=freebsd CC=$(CC) INSTALL="$(INSTALL)" \ + INST_BIN_OPT="-c -s -m $(BINMODE) -o $(BINOWN) -g $(BINGRP)" \ + INST_MAN_OPT="-c -m 644 -o $(BINOWN) -g $(BINGRP)" \ + COMPRESSION_FILE=$(PREFIX)/etc/compression_methods \ + -f + +post-install: + cd ${WRKSRC}/Docs && \ + makeinfo --no-split tracker.texinfo -o tracker.info && \ + gzip -f tracker.info && \ + $(INSTALL_MAN) tracker.info.gz ${PREFIX}/info && \ + rm -f tracker.info.gz *.orig + -${MKDIR} ${PREFIX}/share/doc/tracker + cp -R ${WRKSRC}/Docs/* ${PREFIX}/share/doc/tracker + +.include diff --git a/audio/xmcd/tracker/files/md5 b/audio/xmcd/tracker/files/md5 new file mode 100644 index 00000000000..1d55a893893 --- /dev/null +++ b/audio/xmcd/tracker/files/md5 @@ -0,0 +1 @@ +MD5 (tracker-5.3.tgz) = b1fc0f2cbdd0ff0dd79889f45d58f411 diff --git a/audio/xmcd/tracker/patches/patch-aa b/audio/xmcd/tracker/patches/patch-aa new file mode 100644 index 00000000000..470698aacd7 --- /dev/null +++ b/audio/xmcd/tracker/patches/patch-aa @@ -0,0 +1,73 @@ +*** Makefile.orig Tue May 7 19:20:50 1996 +--- Makefile Tue Nov 12 06:56:18 1996 +*************** +*** 20,26 **** + + OPTS=-c + +! PREFIX=/users/algo/espie/pub + # Destination directory for tracker binaries and manpage. + # + # If you don't wish to use the 'make install' and 'make install.man' +--- 20,26 ---- + + OPTS=-c + +! PREFIX?=/users/algo/espie/pub + # Destination directory for tracker binaries and manpage. + # + # If you don't wish to use the 'make install' and 'make install.man' +*************** +*** 166,172 **** + UI_linux = Unix/ + SHELL_linux = /bin/sh + +! CFLAGS_freebsd = -O2 -funroll-loops -finline-functions -fno-strength-reduce + LIBS_freebsd = -lm + AUDIODIR_freebsd=PCux/ + CONFIG_freebsd = PCux/freebsd_ +--- 166,172 ---- + UI_linux = Unix/ + SHELL_linux = /bin/sh + +! CFLAGS_freebsd = -O2 -funroll-loops -finline-functions + LIBS_freebsd = -lm + AUDIODIR_freebsd=PCux/ + CONFIG_freebsd = PCux/freebsd_ +*************** +*** 250,256 **** + display$O prefs$O autoinit$O $(UI)ui$O empty$O color$O version$O \ + st_virt$O automaton$O + +! all: tracker${EXE} randomize${EXE} splitmod${EXE} Docs/tracker.text + + config.h: $(CONFIG)config.h + rm -f config.h +--- 250,256 ---- + display$O prefs$O autoinit$O $(UI)ui$O empty$O color$O version$O \ + st_virt$O automaton$O + +! all: tracker${EXE} randomize${EXE} + + config.h: $(CONFIG)config.h + rm -f config.h +*************** +*** 272,280 **** + install: + $(INSTALL) $(INST_BIN_OPT) tracker $(BIN_DIR) + $(INSTALL) $(INST_BIN_OPT) randomize $(BIN_DIR) +- $(INSTALL) $(INST_BIN_OPT) splitmod $(BIN_DIR) + [ -f ${COMPRESSION_FILE} ] || \ +! $(INSTALL) $(INST_MAN_OPT) compression_methods ${COMPRESSION_FILE} + + # no manpage available, use the texinfo manual. + install.man: +--- 272,279 ---- + install: + $(INSTALL) $(INST_BIN_OPT) tracker $(BIN_DIR) + $(INSTALL) $(INST_BIN_OPT) randomize $(BIN_DIR) + [ -f ${COMPRESSION_FILE} ] || \ +! $(INSTALL) $(INST_MAN_OPT) Lib/compression_methods ${COMPRESSION_FILE} + + # no manpage available, use the texinfo manual. + install.man: diff --git a/audio/xmcd/tracker/patches/patch-ab b/audio/xmcd/tracker/patches/patch-ab new file mode 100644 index 00000000000..6d56391fa6b --- /dev/null +++ b/audio/xmcd/tracker/patches/patch-ab @@ -0,0 +1,33 @@ +*** Docs/tracker.texinfo.orig Thu Apr 11 21:21:05 1996 +--- Docs/tracker.texinfo Tue Nov 12 07:08:17 1996 +*************** +*** 979,992 **** + * Other Architectures: Porting tracker. + @end menu + +! @node Aix, Amiga, Architecture dependent problems, Architecture Dependent problems + @subsection Aix + + The Aix port is slightly outdated and won't run with most recent versions of + Aix. There is nothing I can do about it until somebody sends me an up-to-date + version as I don't have access to Aix machines. + +! @node Amiga, DECstation, Architecture dependent problems, Architecture dependent problems + @subsection Amiga + + There is currently one Amiga version running under AmigaDos. +--- 979,992 ---- + * Other Architectures: Porting tracker. + @end menu + +! @node Aix, Amiga, Architecture dependent problems, Architecture dependent problems + @subsection Aix + + The Aix port is slightly outdated and won't run with most recent versions of + Aix. There is nothing I can do about it until somebody sends me an up-to-date + version as I don't have access to Aix machines. + +! @node Amiga, DECstation, Aix, Architecture dependent problems + @subsection Amiga + + There is currently one Amiga version running under AmigaDos. diff --git a/audio/xmcd/tracker/patches/patch-ac b/audio/xmcd/tracker/patches/patch-ac new file mode 100644 index 00000000000..5bee61206a4 --- /dev/null +++ b/audio/xmcd/tracker/patches/patch-ac @@ -0,0 +1,24 @@ +*** Arch/PCux/audio.c.bak Fri Apr 12 20:30:37 1996 +--- Arch/PCux/audio.c Tue Nov 12 08:40:29 1996 +*************** +*** 9,14 **** +--- 9,17 ---- + #include + #include + #include "extern.h" ++ #include "prefs.h" ++ #include "autoinit.h" ++ #include "watched_var.h" + + struct options_set *port_options=0; + +*************** +*** 116,121 **** +--- 119,125 ---- + } + samples_max = buf_max / dsize; + current_freq = f; ++ set_watched_scalar(FREQUENCY, f); + total = 0; + return f; + } diff --git a/audio/xmcd/tracker/pkg/COMMENT b/audio/xmcd/tracker/pkg/COMMENT new file mode 100644 index 00000000000..3391e61af2b --- /dev/null +++ b/audio/xmcd/tracker/pkg/COMMENT @@ -0,0 +1 @@ +MOD player. diff --git a/audio/xmcd/tracker/pkg/DESCR b/audio/xmcd/tracker/pkg/DESCR new file mode 100644 index 00000000000..2246f24fd3e --- /dev/null +++ b/audio/xmcd/tracker/pkg/DESCR @@ -0,0 +1,6 @@ +Tracker plays soundtracker music modules on a Unix machine. +Soundtracker modules originated on the amiga, where several composing +playing programs are available, that give results mostly compatible +with each other. tracker just plays the specified files in sequence +according with the current options. + diff --git a/audio/xmcd/tracker/pkg/PLIST b/audio/xmcd/tracker/pkg/PLIST new file mode 100644 index 00000000000..a69959ebfb2 --- /dev/null +++ b/audio/xmcd/tracker/pkg/PLIST @@ -0,0 +1,88 @@ +bin/tracker +bin/randomize +etc/compression_methods +info/tracker.info.gz +share/doc/tracker/Html/Aix.html +share/doc/tracker/Html/Introduction.html +share/doc/tracker/Html/Availability.html +share/doc/tracker/Html/Registration.html +share/doc/tracker/Html/Reporting_bugs.html +share/doc/tracker/Html/History.html +share/doc/tracker/Html/Installation.html +share/doc/tracker/Html/Configure_tracker.html +share/doc/tracker/Html/Generic_problems.html +share/doc/tracker/Html/Architecture_dependent_problems.html +share/doc/tracker/Html/Performance_issues.html +share/doc/tracker/Html/Amiga.html +share/doc/tracker/Html/DECstation.html +share/doc/tracker/Html/HP$2fUX.html +share/doc/tracker/Html/Linux$2fFreeBSD.html +share/doc/tracker/Html/MM1$2fOS9.html +share/doc/tracker/Html/NeXtStep.html +share/doc/tracker/Html/OS$2f2.html +share/doc/tracker/Html/Silicon_Graphics.html +share/doc/tracker/Html/Sparc.html +share/doc/tracker/Html/Usage.html +share/doc/tracker/Html/Technical_Information.html +share/doc/tracker/Html/Tracker_memory_consumption.html +share/doc/tracker/Html/The_Protracker_format.html +share/doc/tracker/Html/The_Protracker_file_format.html +share/doc/tracker/Html/Decoding_pattern_information.html +share/doc/tracker/Html/Soundtracker_and_Protracker_tempo.html +share/doc/tracker/Html/Protracker_finetunes.html +share/doc/tracker/Html/Sample_numbers_and_note_periods.html +share/doc/tracker/Html/Base_effects.html +share/doc/tracker/Html/Arpeggio.html +share/doc/tracker/Html/Portamento_up.html +share/doc/tracker/Html/Portamento_down.html +share/doc/tracker/Html/Tone_portamento.html +share/doc/tracker/Html/Vibrato.html +share/doc/tracker/Html/Tone_portamento_$2b_Volume_slide.html +share/doc/tracker/Html/Vibrato_$2b_Volume_slide.html +share/doc/tracker/Html/Tremolo.html +share/doc/tracker/Html/Set_sample_offset.html +share/doc/tracker/Html/Slide_volume.html +share/doc/tracker/Html/Far_jump.html +share/doc/tracker/Html/Set_volume.html +share/doc/tracker/Html/Pattern_break.html +share/doc/tracker/Html/Set_tempo.html +share/doc/tracker/Html/Protracker_extended_effects.html +share/doc/tracker/Html/Set_filter.html +share/doc/tracker/Html/Fine_portamento_up.html +share/doc/tracker/Html/Fine_portamento_down.html +share/doc/tracker/Html/Glissando_control.html +share/doc/tracker/Html/Set_vibrato_waveform.html +share/doc/tracker/Html/Set_finetune.html +share/doc/tracker/Html/Loop_pattern.html +share/doc/tracker/Html/Set_tremolo_waveform.html +share/doc/tracker/Html/Retrig_note.html +share/doc/tracker/Html/Fine_volume_slide_up.html +share/doc/tracker/Html/Fine_volume_slide_down.html +share/doc/tracker/Html/Cut_note.html +share/doc/tracker/Html/Delay_note.html +share/doc/tracker/Html/Delay_pattern.html +share/doc/tracker/Html/Invert_loop.html +share/doc/tracker/Html/Amiga_audio_hardware.html +share/doc/tracker/Html/Resampling_details.html +share/doc/tracker/Html/Amiga_implementation.html +share/doc/tracker/Html/aminet.html +share/doc/tracker/Html/Credits.html +share/doc/tracker/Html/Finding_a_specific_file.html +share/doc/tracker/Html/Mirror_sites_of_Aminet.html +share/doc/tracker/Html/Accessing_Aminet_on_the_Internet.html +share/doc/tracker/Html/Accessing_Aminet_without_Internet.html +share/doc/tracker/Html/Copyright_status_and_disclaimer.html +share/doc/tracker/Html/Background_information.html +share/doc/tracker/Html/Concept_Index.html +share/doc/tracker/Html/NAS.html +share/doc/tracker/Html/Porting_tracker.html +share/doc/tracker/Html/NextStep.html +share/doc/tracker/Html/Top.html +share/doc/tracker/tracker.texinfo +share/doc/tracker/tracker.readme +share/doc/tracker/tracker.guide +share/doc/tracker/tracker.doc +share/doc/tracker/splitmod.readme +share/doc/tracker/readme +share/doc/tracker/protracker.fmt +share/doc/tracker/FAQ diff --git a/audio/xmcd/workman/Makefile b/audio/xmcd/workman/Makefile new file mode 100644 index 00000000000..75240615069 --- /dev/null +++ b/audio/xmcd/workman/Makefile @@ -0,0 +1,22 @@ +# OpenBSD makefile for: workman +# Version required: 1.3 +# Date created: 29 April 1998 +# Whom: Angelos D. Keromytis +# +# $OpenBSD: Makefile,v 1.1.1.1 1998/05/21 01:38:04 angelos Exp $ +# + +DISTNAME= WorkMan-1.3 +PKGNAME= workman-1.3 +CATEGORIES= audio +MASTER_SITES= ${MASTER_SITE_XCONTRIB} +MASTER_SITE_SUBDIR= applications/WorkMan + +MAINTAINER= angelos@openbsd.org + +LIB_DEPENDS= xview\\.3\\.:${PORTSDIR}/x11/xview-lib + +WRKSRC= ${WRKDIR}/workman +USE_IMAKE= yes + +.include diff --git a/audio/xmcd/workman/files/md5 b/audio/xmcd/workman/files/md5 new file mode 100644 index 00000000000..bab3836fc62 --- /dev/null +++ b/audio/xmcd/workman/files/md5 @@ -0,0 +1 @@ +MD5 (WorkMan-1.3.tar.gz) = f8ffeeb68410a14fc8386a0e7f4351e6 diff --git a/audio/xmcd/workman/patches/patch-aa b/audio/xmcd/workman/patches/patch-aa new file mode 100644 index 00000000000..3f423feb060 --- /dev/null +++ b/audio/xmcd/workman/patches/patch-aa @@ -0,0 +1,288 @@ +diff -c --recursive ./Makefile ../workman.new/./Makefile +*** ./Makefile Tue Jun 13 22:37:18 1995 +--- ../workman.new/./Makefile Sun Nov 26 03:26:56 1995 +*************** +*** 18,26 **** + # SOL2 line. + # + +! SOL2 = -DSYSV -DCODEC +! LIBLOC = -R$(LIBDIR) +! EXTRA_LIBS = -lsocket + + # + # Uncomment the following if you want fast database lookups using the +--- 20,28 ---- + # SOL2 line. + # + +! #SOL2 = -DSYSV -DCODEC +! #LIBLOC = -R$(LIBDIR) +! #EXTRA_LIBS = -lsocket + + # + # Uncomment the following if you want fast database lookups using the +*************** +*** 29,58 **** + # to match your system type as listed in libdb's PORT directory. + # + +! DBCFLAGS = -DLIBDB -Idb.1.85/PORT/include -Idb.1.85/PORT/sunos.5.2 +! DBLIB = db.1.85/PORT/sunos.5.2/libdb.a + + # + # Set these to the locations of your XView include files and libraries. + # + +! INCDIR = $(OPENWINHOME)/include +! LIBDIR = $(OPENWINHOME)/lib + + # + # Set these to the directory names in which to install the software and + # help files. + # + +! BINDIR = $(OPENWINHOME)/bin +! HLPDIR = $(OPENWINHOME)/lib/help + + # + # Set this to the directory containing manual pages. Manual pages will only + # be installed if you "make install.man". + # + +! MANDIR = $(OPENWINHOME)/man + + # + # Set these to the manual sections (e.g. 1, 4, 5, l) for the program and +--- 31,60 ---- + # to match your system type as listed in libdb's PORT directory. + # + +! #DBCFLAGS = -DLIBDB -Idb.1.85/PORT/include -Idb.1.85/PORT/sunos.5.2 +! #DBLIB = db.1.85/PORT/sunos.5.2/libdb.a + + # + # Set these to the locations of your XView include files and libraries. + # + +! INCDIR = /usr/include +! LIBDIR = /usr/X11R6/lib + + # + # Set these to the directory names in which to install the software and + # help files. + # + +! BINDIR = ${PREFIX}/bin +! HLPDIR = ${PREFIX}/lib/help + + # + # Set this to the directory containing manual pages. Manual pages will only + # be installed if you "make install.man". + # + +! MANDIR = ${PREFIX}/man + + # + # Set these to the manual sections (e.g. 1, 4, 5, l) for the program and +*************** +*** 83,89 **** + CFLAGS = -g + CPPFLAGS = -I$(INCDIR) $(SOL2) + LDFLAGS = -L$(LIBDIR) $(LIBLOC) +! LDLIBS = -lxview -lolgx -lX11 $(EXTRA_LIBS) $(DBLIB) -ldl + + # Standard targets. + +--- 85,91 ---- + CFLAGS = -g + CPPFLAGS = -I$(INCDIR) $(SOL2) + LDFLAGS = -L$(LIBDIR) $(LIBLOC) +! LDLIBS = -lxview -lolgx -lX11 $(EXTRA_LIBS) $(DBLIB) #-ldl + + # Standard targets. + +*************** +*** 96,110 **** + $(CC) $(LDFLAGS) $(DBCFLAGS) buildindex.c $(DBLIB) -o $@ + + clean: +! $(RM) $(OBJECTS) *.BAK *.delta core + +! install: $(PROGRAM) + cp $(PROGRAM) $(BINDIR) + chmod 755 $(BINDIR)/$(PROGRAM) + cp $(PROGRAM).info $(HLPDIR) + chmod 644 $(HLPDIR)/$(PROGRAM).info +- +- install.man: workman.man workmandb.man $(MANDIR)/man$(PEXT) $(MANDIR)/man$(DEXT) + cp workman.man $(MANDIR)/man$(PEXT)/workman.$(PEXT) + chmod 644 $(MANDIR)/man$(PEXT)/workman.$(PEXT) + cp workmandb.man $(MANDIR)/man$(DEXT)/workmandb.$(DEXT) +--- 98,111 ---- + $(CC) $(LDFLAGS) $(DBCFLAGS) buildindex.c $(DBLIB) -o $@ + + clean: +! $(RM) $(OBJECTS) *.BAK *.delta *.core workman + +! install: $(PROGRAM) workman.man workmandb.man \ +! $(MANDIR)/man$(PEXT) $(MANDIR)/man$(DEXT) + cp $(PROGRAM) $(BINDIR) + chmod 755 $(BINDIR)/$(PROGRAM) + cp $(PROGRAM).info $(HLPDIR) + chmod 644 $(HLPDIR)/$(PROGRAM).info + cp workman.man $(MANDIR)/man$(PEXT)/workman.$(PEXT) + chmod 644 $(MANDIR)/man$(PEXT)/workman.$(PEXT) + cp workmandb.man $(MANDIR)/man$(DEXT)/workmandb.$(DEXT) +diff -c --recursive ./plat_freebsd.c ../workman.new/./plat_freebsd.c +*** ./plat_freebsd.c Mon Feb 20 09:29:55 1995 +--- ../workman.new/./plat_freebsd.c Sun Nov 26 03:29:22 1995 +*************** +*** 5,10 **** +--- 5,13 ---- + * + * Todd Pfaff, 3/20/94 + * ++ * 11/26/95: Modified to work under FreeBSD 2.x ++ * by Donald Burr ++ * + */ + static char *ident = "@(#)plat_freebsd.c 1.2 2/20/95"; + +*************** +*** 30,42 **** + #include "/sys/scsi/scsi_all.h" + #include "/sys/scsi/scsi_cd.h" + #else + #include + #include + #endif + + #include "struct.h" + +! #define DEFAULT_CD_DEVICE "/dev/rcd0d" + + void *malloc(); + +--- 33,49 ---- + #include "/sys/scsi/scsi_all.h" + #include "/sys/scsi/scsi_cd.h" + #else ++ /* + #include + #include ++ */ ++ #include ++ #include + #endif + + #include "struct.h" + +! #define DEFAULT_CD_DEVICE "/dev/rcd0c" + + void *malloc(); + +*************** +*** 163,169 **** + } + + if (ioctl(d->fd, CDIOCREADSUBCHANNEL, &sc)) { +! #ifdef __NetBSD__ + /* we need to release the device so the kernel will notice + reloaded media */ + (void) close(d->fd); +--- 170,176 ---- + } + + if (ioctl(d->fd, CDIOCREADSUBCHANNEL, &sc)) { +! #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) + /* we need to release the device so the kernel will notice + reloaded media */ + (void) close(d->fd); +*************** +*** 261,266 **** +--- 268,276 ---- + + bzero((char *)&vol, sizeof(vol)); + ++ #define LEFT_PORT 0 ++ #define RIGHT_PORT 1 ++ + vol.vol[LEFT_PORT] = left; + vol.vol[RIGHT_PORT] = right; + +*************** +*** 345,356 **** + if (fstatfs(stbuf.st_rdev, &buf) == 0) + return (-3); + +! #ifdef __NetBSD__ + rval = ioctl(d->fd, CDIOCALLOW); + if (rval == 0) + #endif + rval = ioctl(d->fd, CDIOCEJECT); +! #ifdef __NetBSD__ + if (rval == 0) + rval = ioctl(d->fd, CDIOCPREVENT); + #endif +--- 355,366 ---- + if (fstatfs(stbuf.st_rdev, &buf) == 0) + return (-3); + +! #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) + rval = ioctl(d->fd, CDIOCALLOW); + if (rval == 0) + #endif + rval = ioctl(d->fd, CDIOCEJECT); +! #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) + if (rval == 0) + rval = ioctl(d->fd, CDIOCPREVENT); + #endif +diff -c --recursive ./workman.man ../workman.new/./workman.man +*** ./workman.man Thu Jun 15 23:52:13 1995 +--- ../workman.new/./workman.man Sun Nov 26 03:28:54 1995 +*************** +*** 151,157 **** + .TP + .I \-p file + Write the program's process ID to a different \fIfile\fP. By default, the +! PID is written to "/tmp/.wm_pid" to allow signals to be sent more easily + (see the SIGNALS section below.) + .TP + .I \-n +--- 151,157 ---- + .TP + .I \-p file + Write the program's process ID to a different \fIfile\fP. By default, the +! PID is written to "/var/run/workman.pid" to allow signals to be sent more easily + (see the SIGNALS section below.) + .TP + .I \-n +*************** +*** 510,515 **** +--- 510,516 ---- + SVR4 port by Baruch Cochavy . + .LP + FreeBSD port by Todd Pfaff . ++ Modified to work under FreeBSD 2.x by Donald Burr . + .LP + OSF/1 port by R.J. Edwards . + .LP +diff -c --recursive ./workman_stubs.c ../workman.new/./workman_stubs.c +*** ./workman_stubs.c Fri Jun 16 10:44:40 1995 +--- ../workman.new/./workman_stubs.c Sun Nov 26 03:26:57 1995 +*************** +*** 56,62 **** +--- 56,67 ---- + Panel_item quitbutton; + char *getenv(), *WMstrdup(); + ++ #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) ++ /* FreeBSD has a special directory for pidfiles, I guess. */ ++ char *pidfile = "/var/run/workman.pid"; ++ #else + char *pidfile = "/tmp/.wm_pid"; ++ #endif + char * empty = ""; + extern char *cd_device; + diff --git a/audio/xmcd/workman/pkg/COMMENT b/audio/xmcd/workman/pkg/COMMENT new file mode 100644 index 00000000000..d47ceef85a6 --- /dev/null +++ b/audio/xmcd/workman/pkg/COMMENT @@ -0,0 +1 @@ +Open Look-based CD player tool diff --git a/audio/xmcd/workman/pkg/DESCR b/audio/xmcd/workman/pkg/DESCR new file mode 100644 index 00000000000..dcd74c5cbf1 --- /dev/null +++ b/audio/xmcd/workman/pkg/DESCR @@ -0,0 +1,13 @@ +[ From the WorkMan README ] + +WorkMan is a graphical tool for playing audio compact discs on a CD-ROM +drive. It has most of the features available on standalone CD players, +such as a shuffle mode, programmable playlists, and elapsed/remaining +timers. But it also has extra features, foremost of which is the ability +to store information about CDs in a database, then automatically extract +that information when the CD is inserted later. WorkMan stores the +artist's name, the disc title, the names of individual tracks, and even +remembers which tracks you don't want to hear! All in an easy-to-use, +attractive OPEN LOOK graphical interface. + +[ This port is maintained by: Donald Burr ] diff --git a/audio/xmcd/workman/pkg/PLIST b/audio/xmcd/workman/pkg/PLIST new file mode 100644 index 00000000000..448ecebe41b --- /dev/null +++ b/audio/xmcd/workman/pkg/PLIST @@ -0,0 +1,3 @@ +bin/workman +lib/help/workman.info +man/man1/workman.1 diff --git a/audio/xmcd/xcdplayer/Makefile b/audio/xmcd/xcdplayer/Makefile new file mode 100644 index 00000000000..0f99e526be3 --- /dev/null +++ b/audio/xmcd/xcdplayer/Makefile @@ -0,0 +1,19 @@ +# New ports collection makefile for: xcdplayer +# Version required: 2.2 +# Date created: 30 Sep 1994 +# Whom: swallace +# +# $Id: Makefile,v 1.1.1.1 1998/05/21 01:38:04 angelos Exp $ +# + +DISTNAME= xcdplayer-2.2 +CATEGORIES= audio +MASTER_SITES= ftp://ftp.x.org/R5contrib/ \ + ftp://ftp.cdrom.com/pub/X11/R5contrib/ +EXTRACT_SUFX= .tar.Z + +MAINTAINER= swallace@FreeBSD.org + +USE_IMAKE= yes + +.include diff --git a/audio/xmcd/xcdplayer/files/cdrom_freebsd.c b/audio/xmcd/xcdplayer/files/cdrom_freebsd.c new file mode 100644 index 00000000000..6d164612a4d --- /dev/null +++ b/audio/xmcd/xcdplayer/files/cdrom_freebsd.c @@ -0,0 +1,601 @@ +/* + * Copyright (C) 1990 Regents of the University of California. + * + * Permission to use, copy, modify, distribute, and sell this software and + * its documentation for any purpose is hereby granted without fee, + * provided that the above copyright notice appear in all copies and that + * both that copyright notice and this permission notice appear in + * supporting documentation, and that the name of the University of + * California not be used in advertising or publicity pertaining to + * distribution of the software without specific, written prior + * permission. the University of California makes no representations + * about the suitability of this software for any purpose. It is provided + * "as is" without express or implied warranty. + */ + +static int c; + +# include +# include +# include +# include +# include +# include +# include +# include + +#include +#include +#include + +# include "debug.h" +# include "cdrom_freebsd.h" + +extern char *device; +static char cdrom[] = "/dev/rcd0c"; +static char cdrom1[] = "/dev/rmcd0c"; + +cdrom_info cdi; +char info_filename[256]; +FILE *disc_info = NULL; + +static int cdrom_fd = -1; + +get_stored_info() +{ + int i,n; + char line[100]; + char *title; + + if(disc_info) { + fclose(disc_info); + disc_info = NULL; + } + + if ( cdi.maxtrack == 0) { + return(0); + } + for (i = 0, n = 0; i < cdi.maxtrack; i++) + n = n + ((i+1) * cdi.times[i]); + n = n / cdi.maxtrack; + + disc_title = NULL; + if (cdInfoDir != NULL) + sprintf(info_filename, "%s/cd.%d", cdInfoDir, n); + else + sprintf(info_filename, "cd.%d", n); + + if ((disc_info = fopen(info_filename, "r")) != NULL) + { + fgets(line, 100, disc_info); + title = strchr(line, ':'); + if (title != NULL) + { + *(strchr(title, '\n')) = '\0'; + disc_title = strdup(title + 1); + } + fgets(line, 100, disc_info); + sscanf(line, "Program: %s", program_str); + } + else { + disc_title = strdup(NOTITLESTR); + program_str[0] = 0; + } + if (disc_title == NULL) { + disc_title = strdup(NOTITLESTR); + } +} + +int +cdrom_open() { + int n; + extern void update_title(); + + if (cdrom_fd != -1) + return(cdi.curtrack); + + if (device != NULL) { + if ((cdrom_fd = open(device, O_RDONLY)) == -1) { + perror(device); + return(-1); + } + } else { + if ( (cdrom_fd = open(cdrom, O_RDONLY)) == -1 + && (cdrom_fd = open(cdrom1, O_RDONLY)) == -1 + ) { + perror("open: "); + return(-1); + } + } + + if (cdrom_get_times() == -1) { + cdrom_close(); + return(-1); + } + + if ((n = cdrom_get_curtrack()) == -1) + return(-1); + + get_stored_info(); + + update_title(); + + if (cdi.state & CDROM_STATE_PLAY) + cdi.curtrack = n; + + if (cdi.state & CDROM_STATE_SHUFFLE) + shuffle_setup(); + + return(cdi.curtrack); +} + +void +cdrom_close() { + if (cdrom_fd == -1) + return; + + if (cdi.times != NULL) { + free((char *) cdi.times); + free((char *) cdi.addrs); + cdi.times = NULL; + cdi.addrs = NULL; + } + + (void) close(cdrom_fd); + cdrom_fd = -1; +} + + +int +cdrom_start() { + if (cdrom_fd == -1) + return(-1); + + if (ioctl(cdrom_fd, CDIOCSTART) == -1) { + perror("ioctl(cdromstart)"); + return(-1); + } + + return(0); +} + +int +cdrom_stop() { + if (cdrom_fd == -1) + return(-1); + + if (ioctl(cdrom_fd, CDIOCSTOP) == -1) { + perror("ioctl(cdromstop)"); + return(-1); + } + + return(0); +} + +int +cdrom_eject() { + if (cdrom_fd == -1) + return(-1); + + if (ioctl(cdrom_fd, CDIOCALLOW) == -1) { + perror("ioctl(cdromallow)"); + return(-1); + } + + if (ioctl(cdrom_fd, CDIOCEJECT) == -1) { + perror("ioctl(cdromeject)"); + return(-1); + } + + return(0); +} + +int +cdrom_pause() { + if (cdrom_fd == -1) + return(-1); + + if (ioctl(cdrom_fd, CDIOCPAUSE) == -1) { + perror("ioctl(cdrompause)"); + return(-1); + } + + return(0); +} + +int +cdrom_resume() { + if (cdrom_fd == -1) + return(-1); + + if (ioctl(cdrom_fd, CDIOCRESUME) == -1) { + perror("ioctl(cdromresume)"); + return(-1); + } + + return(0); +} + +int +cdrom_volume(left_vol, right_vol) + int left_vol; + int right_vol; +{ + struct ioc_vol vol; + + if (cdrom_fd == -1) + return(-1); + + vol.vol[0] = left_vol; + vol.vol[1] = right_vol; + vol.vol[2] = 0; + vol.vol[3] = 0; + + if (ioctl(cdrom_fd, CDIOCSETVOL, &vol) == -1) { + perror("ioctl(cdromvolctrl)"); + return(-1); + } + + return(0); +} + +int +cdrom_get_times() { + struct ioc_toc_header tochdr; + extern unsigned short *ushort_malloc(); + extern struct msf *msf_malloc(); + unsigned long trk, trk_total, otime; + struct msf msf; + + if (cdrom_read_tochdr(&tochdr) == -1) + return(-1); + + cdi.mintrack = tochdr.starting_track; + cdi.maxtrack = tochdr.ending_track; + + if (cdi.times != NULL) + { + free((char *) cdi.times); + free((char *) cdi.addrs); + cdi.times = NULL; + cdi.addrs = NULL; + } + + cdi.times = ushort_malloc(cdi.maxtrack - cdi.mintrack + 1); + cdi.addrs = msf_malloc(cdi.maxtrack - cdi.mintrack + 2); + + otime = 0; + + for (trk = cdi.mintrack; trk <= cdi.maxtrack; trk++) { + if (cdrom_get_msf(trk, &msf, &trk_total) == -1) + return(-1); + + /* record start address for each track (track 1 starts at 0)*/ + cdi.addrs[trk - cdi.mintrack] = msf; + + trk_total -= otime; + + /* use start time of next track as length of previous */ + if (otime != 0) + { + cdi.times[trk - cdi.mintrack - 1] = trk_total; + } + + otime += trk_total; + + } + + /* find start of leadout to get length of last track */ + if (cdrom_get_msf(CDROM_LEADOUT, &msf, &trk_total) == -1) + return(-1); + + /* recode leadout start address */ + cdi.addrs[trk - cdi.mintrack] = msf; + trk_total -= otime; + otime += trk_total; + + cdi.times[trk - cdi.mintrack - 1] = trk_total; + return(0); +} + +int +cdrom_get_curtrack() { + struct cd_sub_channel_info data; + + if (cdrom_read_subchannel(&data) == -1) + return(-1); + + switch (data.header.audio_status) { + case CD_AS_AUDIO_INVALID: + return(-1); + + /* playing track subchnl.cdsc_trk */ + case CD_AS_PLAY_IN_PROGRESS: + return((int) data.what.position.track_number); + + /* paused on track subchnl.cdsc_trk */ + case CD_AS_PLAY_PAUSED: + return((int) data.what.position.track_number); + + /* punt */ + case CD_AS_PLAY_COMPLETED: + return(0); + + case CD_AS_PLAY_ERROR: + return(-1); + + /* punt */ + case CD_AS_NO_STATUS: + debug_printf(1, "cdrom_get_curtrack: no status\n"); + return(0); + } + + /* bad value in cdsc_audiostatus */ + return(-1); +} + +int +cdrom_get_msf(track, msf, length) + unsigned long track; + struct msf *msf; + unsigned long *length; +{ + struct cd_toc_entry data; + + if (cdrom_read_tocentry(track, &data, sizeof(data)) == -1) + return(-1); + + msf->minute = data.addr.msf.minute; + msf->second = data.addr.msf.second; + msf->frame = data.addr.msf.frame; + *length = (((unsigned int) msf->minute) * 60) + (unsigned int) msf->second; + return(0); +} + +int +cdrom_get_curmsf(msf) + struct msf *msf; +{ + struct cd_sub_channel_info data; + + if (cdrom_read_subchannel(&data) == -1) + return(-1); + + msf->minute = data.what.position.absaddr.msf.minute; + msf->second = data.what.position.absaddr.msf.second; + msf->frame = data.what.position.absaddr.msf.frame; + return (0); +} + +int +cdrom_play_track(start_track, end_track) + unsigned char start_track; + unsigned char end_track; +{ + struct ioc_play_track ti; + struct ioc_play_msf play_addr; + char *addr; + + if (cdrom_fd == -1) + return(-1); + + play_addr.start_m = cdi.addrs[start_track - cdi.mintrack].minute; + play_addr.start_s = cdi.addrs[start_track - cdi.mintrack].second; + play_addr.start_f = cdi.addrs[start_track - cdi.mintrack].frame; + play_addr.end_m = cdi.addrs[end_track - cdi.mintrack + 1].minute; + play_addr.end_s = cdi.addrs[end_track - cdi.mintrack + 1].second; + play_addr.end_f = cdi.addrs[end_track - cdi.mintrack + 1].frame - 1; + + if(play_addr.end_f >= 75) { + play_addr.end_f = 74; + play_addr.end_s--; + } + if(play_addr.end_s >= 60) { + play_addr.end_s = 59; + play_addr.end_m--; + } + addr = (char *)&play_addr; + if (ioctl(cdrom_fd, CDIOCPLAYMSF, &play_addr) == -1) { + perror("ioctl(cdromplaymsftrk)"); + return(-1); + } + + return(0); +} + +int +cdrom_play_msf(start_msf, end_msf) + struct msf *start_msf; + struct msf *end_msf; +{ + struct ioc_play_msf play_addr; + + if (cdrom_fd == -1) + return(-1); + + play_addr.start_m = start_msf->minute; + play_addr.start_s = start_msf->second; + play_addr.start_f = start_msf->frame; + play_addr.end_m = end_msf->minute; + play_addr.end_s = end_msf->second; + play_addr.end_f = end_msf->frame; + + if (ioctl(cdrom_fd, CDIOCPLAYMSF, &play_addr) == -1) { + perror("ioctl(cdromplaymsf)"); + return(-1); + } + + return(0); +} + + +int +cdrom_read_subchannel(data) + struct cd_sub_channel_info *data; +{ + struct ioc_read_subchannel subchnl; + + if (cdrom_fd == -1) + return(-1); + + subchnl.address_format = CD_MSF_FORMAT; + subchnl.data_format = CD_CURRENT_POSITION; + subchnl.data_len = /* sizeof(struct cd_sub_channel_info)*/ 16; + subchnl.track = 0; + subchnl.data = data; + + if (ioctl(cdrom_fd, CDIOCREADSUBCHANNEL, (char *) &subchnl) == -1) { + fprintf(stderr, "ioctl(cdromsubchnl): "); + perror(cdrom); + return(-1); + } + + return(0); +} + +int +cdrom_read_track(track, data) + unsigned int track; + struct cd_sub_channel_info *data; +{ + struct ioc_read_subchannel subchnl; + + if (cdrom_fd == -1) + return(-1); + + subchnl.address_format = CD_MSF_FORMAT; + subchnl.data_format = CD_TRACK_INFO; + subchnl.data_len = /* sizeof(struct cd_sub_channel_info)*/ 24; + subchnl.track = track; + subchnl.data = data; + + if (ioctl(cdrom_fd, CDIOCREADSUBCHANNEL, (char *) &subchnl) == -1) { + fprintf(stderr, "ioctl(cdromsubchnltrk): "); + perror(cdrom); + return(-1); + } + + return(0); +} + +int +cdrom_read_tocentry(track, data, size) + unsigned int track; + struct cd_toc_entry *data; + int size; +{ + struct ioc_read_toc_entry tocentry; + + if (cdrom_fd == -1) + return(-1); + + tocentry.starting_track = (unsigned char)track; + tocentry.address_format = CD_MSF_FORMAT; + tocentry.data_len = /* sizeof(struct cd_toc_entry)*/ size; + tocentry.data = data; + + if (ioctl(cdrom_fd, CDIOREADTOCENTRYS, (char *) &tocentry) == -1) { + perror("ioctl(cdromreadtocentry)"); + return(-1); + } + + return(0); +} + +int +cdrom_read_tochdr(tochdr) + struct ioc_toc_header *tochdr; +{ + if (cdrom_fd == -1) + return(-1); + + if (ioctl(cdrom_fd, CDIOREADTOCHEADER, (char *) tochdr) == -1) { + perror("ioctl(cdromreadtochdr): "); + return(-1); + } + + return(0); +} + +int +cdrom_status() { + struct cd_sub_channel_info data; + + if (cdrom_read_subchannel(&data) == -1) + return(-1); + + switch (data.header.audio_status) { + case CD_AS_AUDIO_INVALID: + return(CDROM_INVALID); + + case CD_AS_PLAY_IN_PROGRESS: + return(CDROM_PLAYING); + + case CD_AS_PLAY_PAUSED: + return(CDROM_PAUSED); + + case CD_AS_PLAY_COMPLETED: + return(CDROM_COMPLETED); + + case CD_AS_PLAY_ERROR: + return(CDROM_ERROR); + + case CD_AS_NO_STATUS: + return(CDROM_NO_STATUS); + } + + return(-1); +} + +unsigned short * +ushort_malloc(n) + int n; +{ + extern char *calloc(); + unsigned short *ptr; + + ptr = (unsigned short *) calloc(n, sizeof(unsigned short)); + if (ptr == NULL) { + perror("calloc"); + exit(1); + } + + return(ptr); +} + +struct msf * +msf_malloc(n) + int n; +{ + extern char *calloc(); + struct msf *ptr; + + ptr = (struct msf *) calloc(n, sizeof(struct msf)); + if (ptr == NULL) { + perror("calloc"); + exit(1); + } + + return(ptr); +} + +int +cdrom_disp_cdi() { + int trk; + + fprintf(stderr,"CDI structure:\n"); + fprintf(stderr,"\tcurtrack: %d\n",cdi.curtrack); + fprintf(stderr,"\tmin: %d max: %d total: %d\n", + cdi.mintrack, cdi.maxtrack, cdi.ntracks); + fprintf(stderr,"\tdur: %d state: %2x\n",cdi.duration, cdi.state); + fprintf(stderr,"\tcurrand: %d lastprog: %d\n", + cdi.currand, cdi.lastprog); + fprintf(stderr,"\n\tTracklist:\n"); + if (cdi.maxtrack != cdi.mintrack) { + for (trk=0; trk<=cdi.maxtrack-cdi.mintrack+1; trk++) { + fprintf(stderr,"\t%3d: %d %02d:%02d %d\n",trk,cdi.times[trk], + cdi.addrs[trk].minute,cdi.addrs[trk].second, + cdi.addrs[trk].frame); + } + } +} diff --git a/audio/xmcd/xcdplayer/files/cdrom_freebsd.h b/audio/xmcd/xcdplayer/files/cdrom_freebsd.h new file mode 100644 index 00000000000..f65872bcf53 --- /dev/null +++ b/audio/xmcd/xcdplayer/files/cdrom_freebsd.h @@ -0,0 +1,95 @@ +/* + * Copyright (C) 1990 Regents of the University of California. + * + * Permission to use, copy, modify, distribute, and sell this software and + * its documentation for any purpose is hereby granted without fee, + * provided that the above copyright notice appear in all copies and that + * both that copyright notice and this permission notice appear in + * supporting documentation, and that the name of the University of + * California not be used in advertising or publicity pertaining to + * distribution of the software without specific, written prior + * permission. the University of California makes no representations + * about the suitability of this software for any purpose. It is provided + * "as is" without express or implied warranty. + */ + +# include + +# define NOTITLESTR "No Title" +# define NODISCSTR "No Disc" + +# define bit(n) (1 << (n)) + +/* bits for cdrom_state */ +# define CDROM_STATE_PLAY bit(0) +# define CDROM_STATE_PAUSE bit(1) +# define CDROM_STATE_STOP bit(2) +# define CDROM_STATE_EJECTED bit(3) +# define CDROM_STATE_CYCLE bit(4) +# define CDROM_STATE_SHUFFLE bit(5) +# define CDROM_STATE_PROGRAM bit(6) + +/* return codes from cdrom_status() */ +# define CDROM_INVALID 1 +# define CDROM_PLAYING 2 +# define CDROM_PAUSED 3 +# define CDROM_COMPLETED 4 +# define CDROM_ERROR 5 +# define CDROM_NO_STATUS 6 + +#define STILL_MOUNTED 1 +#define UNMOUNTED 0 +#define CDROM_LEADOUT 0xAA +#define CDROM_MSF 0x02 + +struct msf { + unsigned char minute; + unsigned char second; + unsigned char frame; +}; + +struct prognode { + unsigned char track; + Widget button; + struct prognode *next; + struct prognode *prev; +}; + +typedef struct _cdrom_info { + unsigned char curtrack; /* current track playing */ + unsigned char mintrack; /* first audio track */ + unsigned char maxtrack; /* last audio track */ + unsigned char ntracks; /* size of random track list */ + int duration; /* seconds played so far */ + int state; /* state of cd-rom drive */ + short currand; /* index into random track list */ + short lastprog; /* number of selections in prog.*/ + unsigned short *times; /* duration of each track */ + struct msf *addrs; /* starting minute/second/frames*/ + struct prognode *selection; /* currently selected prog. trk */ + struct prognode *program; /* list of programmed tracks */ +} cdrom_info; + +extern int cdrom_open(); +extern void cdrom_close(); +extern int cdrom_start(); +extern int cdrom_stop(); +extern int cdrom_eject(); +extern int cdrom_pause(); +extern int cdrom_resume(); +extern int cdrom_volume(); +extern int cdrom_get_times(); +extern int cdrom_get_curtrack(); +extern int cdrom_get_msf(); +extern int cdrom_get_curmsf(); +extern int cdrom_play_track(); +extern int cdrom_play_msf(); +extern int cdrom_read_tocentry(); +extern int cdrom_read_tochdr(); +extern int cdrom_status(); + +extern cdrom_info cdi; +extern char *disc_title; +extern char program_str[]; +extern char *cdInfoDir; + diff --git a/audio/xmcd/xcdplayer/files/md5 b/audio/xmcd/xcdplayer/files/md5 new file mode 100644 index 00000000000..10f4d1c6546 --- /dev/null +++ b/audio/xmcd/xcdplayer/files/md5 @@ -0,0 +1 @@ +MD5 (xcdplayer-2.2.tar.Z) = d5d1d86abc4a0f5e2ea99a40ee63f98d diff --git a/audio/xmcd/xcdplayer/patches/patch-aa b/audio/xmcd/xcdplayer/patches/patch-aa new file mode 100644 index 00000000000..dd840196aee --- /dev/null +++ b/audio/xmcd/xcdplayer/patches/patch-aa @@ -0,0 +1,171 @@ +*** XCdplayer.ad Tue Jan 12 10:59:41 1993 +--- /users/swallace/work/xcdplayer/XCdplayer.ad Wed Feb 23 07:36:31 1994 +*************** +*** 19,29 **** + + XCdplayer*logoLabel.foreground: Gold + XCdplayer*logoLabel.background: Black +- XCdplayer*icon*foreground: Gold + + XCdplayer*versionLabel.Font: -misc-fixed-medium-r-normal--8-* + XCdplayer*versionLabel.foreground: Black +! XCdplayer*versionLabel.width: 130 + XCdplayer*versionLabel.fromHoriz: logoLabel + + ! replayThreshold is the number of seconds that must be played before the +--- 19,28 ---- + + XCdplayer*logoLabel.foreground: Gold + XCdplayer*logoLabel.background: Black + + XCdplayer*versionLabel.Font: -misc-fixed-medium-r-normal--8-* + XCdplayer*versionLabel.foreground: Black +! XCdplayer*versionLabel.width: 110 + XCdplayer*versionLabel.fromHoriz: logoLabel + + ! replayThreshold is the number of seconds that must be played before the +*************** +*** 33,48 **** + + ! scanSkipInterval is the number of seconds skipped at each fast-forward or + ! reverse. +! XCdplayer*scanSkipInterval: 3 + ! pauseSkipInterval is the number of seconds skipped at each fast-forward or + ! reverse if the CD is paused. +! XCdplayer*pauseSkipInterval: 15 + + ! scanPauseInterval is the number of seconds between each fast_forward or + ! reverse while holding down the buttons. (Sun CDs have a dreadfully long + ! start-up time for the audio to actually become audible, so "hearing the + ! track" while scanning isn't very feasible.) +! XCdplayer*scanPauseInterval: 0.062 + ! pausePauseInterval does the same thing when the disc is paused. + XCdplayer*pausePauseInterval: 0.5 + +--- 32,47 ---- + + ! scanSkipInterval is the number of seconds skipped at each fast-forward or + ! reverse. +! XCdplayer*scanSkipInterval: 5 + ! pauseSkipInterval is the number of seconds skipped at each fast-forward or + ! reverse if the CD is paused. +! XCdplayer*pauseSkipInterval: 20 + + ! scanPauseInterval is the number of seconds between each fast_forward or + ! reverse while holding down the buttons. (Sun CDs have a dreadfully long + ! start-up time for the audio to actually become audible, so "hearing the + ! track" while scanning isn't very feasible.) +! XCdplayer*scanPauseInterval: 0.25 + ! pausePauseInterval does the same thing when the disc is paused. + XCdplayer*pausePauseInterval: 0.5 + +*************** +*** 56,62 **** + XCdplayer*Viewport.allowHoriz: True + XCdplayer*Viewport.useBottom: True + XCdplayer*Viewport.forceBars: False +! XCdplayer*Viewport.width: 188 + XCdplayer*Viewport.height: 30 + XCdplayer*Viewport*thickness: 8 + XCdplayer*Viewport.resizable: False +--- 55,61 ---- + XCdplayer*Viewport.allowHoriz: True + XCdplayer*Viewport.useBottom: True + XCdplayer*Viewport.forceBars: False +! XCdplayer*Viewport.width: 160 + XCdplayer*Viewport.height: 30 + XCdplayer*Viewport*thickness: 8 + XCdplayer*Viewport.resizable: False +*************** +*** 88,98 **** + XCdplayer*Toggle.right: ChainLeft + XCdplayer*Toggle.background: Ivory + +! XCdplayer*ledsLabel.horizDistance: 20 + XCdplayer*ledsLabel.fromVert: versionLabel + XCdplayer*ledsLabel.fromHoriz: logoLabel + +! XCdplayer*trackButton.horizDistance: 8 + XCdplayer*trackButton.fromVert: versionLabel + XCdplayer*trackButton.fromHoriz: ledsLabel + XCdplayer*trackButton.borderWidth: 2 +--- 87,97 ---- + XCdplayer*Toggle.right: ChainLeft + XCdplayer*Toggle.background: Ivory + +! XCdplayer*ledsLabel.horizDistance: 4 + XCdplayer*ledsLabel.fromVert: versionLabel + XCdplayer*ledsLabel.fromHoriz: logoLabel + +! XCdplayer*trackButton.horizDistance: 4 + XCdplayer*trackButton.fromVert: versionLabel + XCdplayer*trackButton.fromHoriz: ledsLabel + XCdplayer*trackButton.borderWidth: 2 +*************** +*** 108,134 **** + XCdplayer*timerButton.left: ChainRight + XCdplayer*timerButton.right: ChainRight + +! XCdplayer*volumeScrollbar.horizDistance:8 + XCdplayer*volumeScrollbar.fromHoriz: logoLabel + XCdplayer*volumeScrollbar.fromVert: trackButton + XCdplayer*volumeScrollbar.orientation: horizontal +! XCdplayer*volumeScrollbar.length: 120 + XCdplayer*volumeScrollbar.right: ChainRight + XCdplayer*volumeScrollbar.left: ChainRight + XCdplayer*volumeScrollbar.background: green + XCdplayer*volumeScrollbar.foreground: white +! XCdplayer*volumeScrollbar.thumb: black + + XCdplayer*titleBarViewport.fromVert: volumeScrollbar +- XCdplayer*titleBarViewport.forceBars: true + XCdplayer*titleBar.borderwidth: 0 + XCdplayer*titleBar.highlightThickness: 1 + XCdplayer*titleBar.foreground: Red + XCdplayer*titleBar.background: Ivory +- +- XCdplayer*titleDialog.Text.translations:#override\ +- Return: done() +- + XCdplayer*buttonsForm.fromVert: logoForm + XCdplayer*buttonsForm.borderWidth: 1 + +--- 107,128 ---- + XCdplayer*timerButton.left: ChainRight + XCdplayer*timerButton.right: ChainRight + +! XCdplayer*volumeScrollbar.horizDistance:4 + XCdplayer*volumeScrollbar.fromHoriz: logoLabel + XCdplayer*volumeScrollbar.fromVert: trackButton + XCdplayer*volumeScrollbar.orientation: horizontal +! XCdplayer*volumeScrollbar.length: 93 + XCdplayer*volumeScrollbar.right: ChainRight + XCdplayer*volumeScrollbar.left: ChainRight + XCdplayer*volumeScrollbar.background: green + XCdplayer*volumeScrollbar.foreground: white +! XCdplayer*volumeScrollbar.thumb: black + + XCdplayer*titleBarViewport.fromVert: volumeScrollbar + XCdplayer*titleBar.borderwidth: 0 + XCdplayer*titleBar.highlightThickness: 1 + XCdplayer*titleBar.foreground: Red + XCdplayer*titleBar.background: Ivory + XCdplayer*buttonsForm.fromVert: logoForm + XCdplayer*buttonsForm.borderWidth: 1 + +*** Imakefile Tue Jan 12 10:59:29 1993 +--- /users/swallace/work/xcdplayer/Imakefile Fri Sep 30 17:09:19 1994 +*************** +*** 15,20 **** +--- 15,25 ---- + + LOCAL_LIBRARIES = XawClientLibs + LINTLIBS = -lXaw -lXt -lX11 ++ SRCS = main.c top_setup.c logo_setup.c button_setup.c cdrom_callb.c\ ++ cdrom_freebsd.c internals.c shuffle.c program.c leds.c debug.c ++ ++ OBJS = main.o top_setup.o logo_setup.o button_setup.o cdrom_callb.o\ ++ cdrom_freebsd.o internals.o shuffle.o program.o leds.o debug.o + #ifdef SunArchitecture + SRCS = main.c top_setup.c logo_setup.c button_setup.c cdrom_callb.c\ + cdrom_sun.c internals.c shuffle.c program.c leds.c debug.c diff --git a/audio/xmcd/xcdplayer/patches/patch-ab b/audio/xmcd/xcdplayer/patches/patch-ab new file mode 100644 index 00000000000..ed31ad63007 --- /dev/null +++ b/audio/xmcd/xcdplayer/patches/patch-ab @@ -0,0 +1,266 @@ +*** button_setup.c Tue Jan 12 10:59:47 1993 +--- /users/swallace/work/xcdplayer/button_setup.c Wed Feb 23 07:36:36 1994 +*************** +*** 20,25 **** +--- 20,28 ---- + # include + + # include "cdrom_globs.h" ++ #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) ++ # include "cdrom_freebsd.h" ++ #endif + #ifdef sun + # include "cdrom_sun.h" + #endif +*************** +*** 44,49 **** +--- 47,69 ---- + # include "ff.xbm" + # include "pgm.xbm" + ++ void title_dialog_setup(); ++ static void play_button_setup(); ++ static void stop_button_setup(); ++ static void pause_button_setup(); ++ static void prev_button_setup(); ++ static void next_button_setup(); ++ static void eject_button_setup(); ++ #ifdef sgi ++ void audio_button_setup(); ++ #endif ++ static void quit_button_setup(); ++ static void cycle_button_setup(); ++ static void shuffle_button_setup(); ++ static void rew_button_setup(); ++ static void ff_button_setup(); ++ static void pgm_button_setup(); ++ void buttons_reset(); + + static Widget buttons_form_widget; + static Widget play_button_widget; +*************** +*** 71,95 **** + Widget parent_widget; + { + Arg args[1]; +- +- extern void title_dialog_setup(); +- extern void play_button_setup(); +- extern void stop_button_setup(); +- extern void pause_button_setup(); +- extern void prev_button_setup(); +- extern void next_button_setup(); +- extern void eject_button_setup(); +- #ifdef sgi +- extern void audio_button_setup(); +- #endif +- extern void quit_button_setup(); +- extern void cycle_button_setup(); +- extern void shuffle_button_setup(); +- extern void rew_button_setup(); +- extern void ff_button_setup(); +- extern void pgm_button_setup(); +- extern void buttons_reset(); +- + + buttons_form_widget = XtCreateManagedWidget("buttonsForm", + formWidgetClass, +--- 91,96 ---- +*** cdrom_callb.c Tue Jan 12 10:59:48 1993 +--- /users/swallace/work/xcdplayer/cdrom_callb.c Wed Feb 23 07:36:41 1994 +*************** +*** 22,27 **** +--- 22,30 ---- + + # include "debug.h" + # include "cdrom_globs.h" ++ #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) ++ # include "cdrom_freebsd.h" ++ #endif + #ifdef sun + # include "cdrom_sun.h" + #endif +*** internals.c Tue Jan 12 10:59:45 1993 +--- /users/swallace/work/xcdplayer/internals.c Wed Feb 23 07:36:47 1994 +*************** +*** 22,27 **** +--- 22,30 ---- + + # include "debug.h" + # include "cdrom_globs.h" ++ #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) ++ # include "cdrom_freebsd.h" ++ #endif + #ifdef sun + # include "cdrom_sun.h" + #endif +*************** +*** 29,35 **** + # include "cdrom_sgi.h" + #endif + +! + static XtIntervalId ivid = -1; + static XtIntervalId scanivid = -1; + static XtIntervalId stativid = -1; +--- 32,38 ---- + # include "cdrom_sgi.h" + #endif + +! static void scan_update(); + static XtIntervalId ivid = -1; + static XtIntervalId scanivid = -1; + static XtIntervalId stativid = -1; +*************** +*** 170,176 **** + struct msf track_start; + struct msf start_addr, end_addr; + int curtrack; +- extern void scan_update(); + + if (cdrom_get_curmsf(&start_addr) == -1) { + debug_printf(1, "rew: error reading location\n"); +--- 173,178 ---- +*************** +*** 304,310 **** + struct msf start_addr, end_addr, next_start; + char t; + int curtrack; +- extern void scan_update(); + + if (cdrom_get_curmsf(&start_addr) == -1) { + debug_printf(1, "ff: error reading location\n"); +--- 306,311 ---- +*** logo_setup.c Tue Jan 12 10:59:46 1993 +--- /users/swallace/work/xcdplayer/logo_setup.c Wed Feb 23 07:36:52 1994 +*************** +*** 28,33 **** +--- 28,36 ---- + # include + + # include "cdrom_globs.h" ++ #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) ++ # include "cdrom_freebsd.h" ++ #endif + #ifdef sun + # include "cdrom_sun.h" + #endif +*************** +*** 55,73 **** + Widget title_done_widget; + + static int vol; + + void + logo_setup(parent_widget) + Widget parent_widget; + { +- extern void leds_label_setup(); +- extern void cb_track_button(); +- extern void cb_timer_button(); +- extern void volume_jump_proc(); +- extern void volume_scroll_proc(); +- extern void popup_title_dialog(); +- extern void popdown_title_dialog(); +- + Widget version_label_widget; + char version_string[80]; + +--- 58,76 ---- + Widget title_done_widget; + + static int vol; ++ extern void leds_label_setup(); ++ static void cb_track_button(); ++ static void cb_timer_button(); ++ static void volume_jump_proc(); ++ static void volume_scroll_proc(); ++ static void popup_title_dialog(); ++ static void popdown_title_dialog(); ++ + + void + logo_setup(parent_widget) + Widget parent_widget; + { + Widget version_label_widget; + char version_string[80]; + +*** program.c Tue Jan 12 10:59:49 1993 +--- /users/swallace/work/xcdplayer/program.c Wed Feb 23 07:36:55 1994 +*************** +*** 27,36 **** + + # include + # include +! # include + + # include "debug.h" + # include "cdrom_globs.h" + #ifdef sun + # include "cdrom_sun.h" + #endif +--- 27,39 ---- + + # include + # include +! # include + + # include "debug.h" + # include "cdrom_globs.h" ++ #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) ++ # include "cdrom_freebsd.h" ++ #endif + #ifdef sun + # include "cdrom_sun.h" + #endif +*************** +*** 52,57 **** +--- 55,69 ---- + static Boolean adding_to_new_track = False; + static struct prognode *current_node = NULL; + ++ static void cb_move_program_ptr(); ++ static void cb_clear_program(); ++ static void cb_cancel_program(); ++ static void cb_save_program(); ++ static void cb_trackbuttons(); ++ static void cb_add_10(); ++ static void cb_new_track(); ++ static void cb_program_all(); ++ + void + program_form_setup (parent_widget) + Widget parent_widget; +*************** +*** 66,80 **** + Widget cancel_button; + Widget save_button; + Widget all_button; +- +- extern void cb_move_program_ptr(); +- extern void cb_clear_program(); +- extern void cb_cancel_program(); +- extern void cb_save_program(); +- extern void cb_trackbuttons(); +- extern void cb_add_10(); +- extern void cb_new_track(); +- extern void cb_program_all(); + + /* + * create program form as a non-managed widget, because this +--- 78,83 ---- +*** shuffle.c Tue Jan 12 10:59:38 1993 +--- /users/swallace/work/xcdplayer/shuffle.c Wed Feb 23 07:36:59 1994 +*************** +*** 18,23 **** +--- 18,26 ---- + + # include "debug.h" + # include "cdrom_globs.h" ++ #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) ++ # include "cdrom_freebsd.h" ++ #endif + #ifdef sun + # include "cdrom_sun.h" + #endif diff --git a/audio/xmcd/xcdplayer/pkg/COMMENT b/audio/xmcd/xcdplayer/pkg/COMMENT new file mode 100644 index 00000000000..c0923e8065b --- /dev/null +++ b/audio/xmcd/xcdplayer/pkg/COMMENT @@ -0,0 +1 @@ +CD player for X. diff --git a/audio/xmcd/xcdplayer/pkg/DESCR b/audio/xmcd/xcdplayer/pkg/DESCR new file mode 100644 index 00000000000..c2dc089d5cf --- /dev/null +++ b/audio/xmcd/xcdplayer/pkg/DESCR @@ -0,0 +1,8 @@ +XCdplayer 2.2 + +XCdplayer is a graphical user interface for controlling the CD-ROM +drive under the X Window System. It provides visual feedback and +gives the user facilities for mode selection, device control, +scanning, and programming. + +Ported to FreeBSD by Steven Wallace, swallace@ece.uci.edu diff --git a/audio/xmcd/xcdplayer/pkg/PLIST b/audio/xmcd/xcdplayer/pkg/PLIST new file mode 100644 index 00000000000..a277881efec --- /dev/null +++ b/audio/xmcd/xcdplayer/pkg/PLIST @@ -0,0 +1,3 @@ +bin/xcdplayer +lib/X11/app-defaults/XCdplayer +man/man1/xcdplayer.1.gz diff --git a/audio/xmcd/xcdplayer/scripts/pre-configure b/audio/xmcd/xcdplayer/scripts/pre-configure new file mode 100644 index 00000000000..9a237fc0c60 --- /dev/null +++ b/audio/xmcd/xcdplayer/scripts/pre-configure @@ -0,0 +1,8 @@ +#!/bin/sh +# +# $Id: pre-configure,v 1.1.1.1 1998/05/21 01:38:04 angelos Exp $ +# + +cp ${CURDIR}/files/cdrom_freebsd.c ${WRKSRC} +cp ${CURDIR}/files/cdrom_freebsd.h ${WRKSRC} +cp ${WRKSRC}/xcdplayer.1 ${WRKSRC}/xcdplayer.man diff --git a/audio/xmcd/xmcd/Makefile b/audio/xmcd/xmcd/Makefile new file mode 100644 index 00000000000..8176c66f120 --- /dev/null +++ b/audio/xmcd/xmcd/Makefile @@ -0,0 +1,23 @@ +# OpenBSD makefile for: xmcd +# Version required: 2.2 +# Date created: May 20 1998 +# Whom: Angelos D. Keromytis +# +# $OpenBSD: Makefile,v 1.1.1.1 1998/05/21 01:38:04 angelos Exp $ +# + +DISTNAME= xmcd-2.2 +CATEGORIES= audio +MASTER_SITES= ${MASTER_SITE_XCONTRIB} +MASTER_SITE_SUBDIR= applications/xmcd + +MAINTAINER= angelos@openbsd.org + +REQUIRES_MOTIF= yes +USE_IMAKE= yes +IS_INTERACTIVE= yes # asks a lot of questions + +post-install: + ${CP} ${WRKSRC}/README ${PREFIX}/lib/X11/xmcd + +.include diff --git a/audio/xmcd/xmcd/files/md5 b/audio/xmcd/xmcd/files/md5 new file mode 100644 index 00000000000..0bde8c5fb95 --- /dev/null +++ b/audio/xmcd/xmcd/files/md5 @@ -0,0 +1 @@ +MD5 (xmcd-2.2.tar.gz) = a47e379e7b93c597b9bf729d79c13ded diff --git a/audio/xmcd/xmcd/patches/patch-aa b/audio/xmcd/xmcd/patches/patch-aa new file mode 100644 index 00000000000..c274277434e --- /dev/null +++ b/audio/xmcd/xmcd/patches/patch-aa @@ -0,0 +1,59 @@ +*** ./xmcd_d/Imakefile.orig Thu Apr 4 21:42:31 1996 +--- ./xmcd_d/Imakefile Thu Apr 4 23:31:17 1996 +*************** +*** 43,49 **** + * #include "Motif.tmpl" + * #include "Motif.rules" + */ +! LOCAL_LIBRARIES= XmClientLibs + + + /**** Optional defines: Change as you see fit. ***************************** +--- 43,49 ---- + * #include "Motif.tmpl" + * #include "Motif.rules" + */ +! LOCAL_LIBRARIES= ${MOTIFLIB} XawClientLibs + + + /**** Optional defines: Change as you see fit. ***************************** +*************** +*** 67,78 **** + DEFINES= + #endif + + + /* + * Add local include path + */ + INCLUDES=-I.. +- + + /* + * C Source files +--- 67,78 ---- + DEFINES= + #endif + ++ MANSUFFIX = 1 + + /* + * Add local include path + */ + INCLUDES=-I.. + + /* + * C Source files +*** ./dbconv_d/Imakefile.orig Thu Apr 4 23:33:09 1996 +--- ./dbconv_d/Imakefile Thu Apr 4 23:33:53 1996 +*************** +*** 24,29 **** +--- 24,31 ---- + * + */ + ++ MANSUFFIX = 1 ++ + + /* + * Add local include path diff --git a/audio/xmcd/xmcd/patches/patch-ab b/audio/xmcd/xmcd/patches/patch-ab new file mode 100644 index 00000000000..b4646bbae0c --- /dev/null +++ b/audio/xmcd/xmcd/patches/patch-ab @@ -0,0 +1,138 @@ +*** install.sh.orig Tue Aug 12 19:12:27 1997 +--- install.sh Sun Sep 7 16:23:43 1997 +*************** +*** 48,53 **** +--- 48,56 ---- + ERRFILE=/tmp/xmcd.err + TMPFILE=/tmp/xmcdinst.$$ + ++ # Flag for indicating we do not want to prompt the user if possible. ++ NO_PROMPT=1 ++ + # + # Utility functions + # +*************** +*** 586,592 **** + + while : + do +! if getstr "\nEnter X binary directory\n[${BINDIR}]:" + then + if [ -d "$ANS" ] + then +--- 589,599 ---- + + while : + do +! if [ -n "$NO_PROMPT" ] +! then +! $ECHO "X binary directory - using ${BINDIR}" +! break +! elif getstr "\nEnter X binary directory\n[${BINDIR}]:" + then + if [ -d "$ANS" ] + then +*************** +*** 634,640 **** + + while : + do +! if getstr "\nEnter X library directory\n[${LIBDIR}]:" + then + if [ -d "$ANS" ] + then +--- 641,651 ---- + + while : + do +! if [ -n "$NO_PROMPT" ] +! then +! $ECHO "X library directory - using ${LIBDIR}" +! break +! elif getstr "\nEnter X library directory\n[${LIBDIR}]:" + then + if [ -d "$ANS" ] + then +*************** +*** 657,663 **** + APPDEFAULTSDIR=$LIBDIR/app-defaults + while : + do +! if getstr "\nEnter X app-defaults directory\n[${APPDEFAULTSDIR}]:" + then + if [ -d "$ANS" ] + then +--- 668,678 ---- + APPDEFAULTSDIR=$LIBDIR/app-defaults + while : + do +! if [ -n "$NO_PROMPT" ] +! then +! $ECHO "X app-defaults directory - using ${LIBDIR}" +! break +! elif getstr "\nEnter X app-defaults directory\n[${APPDEFAULTSDIR}]:" + then + if [ -d "$ANS" ] + then +*************** +*** 680,686 **** + XMCDLIB=$LIBDIR/xmcd + while : + do +! if getstr "\nEnter xmcd library directory\n[${XMCDLIB}]:" + then + if [ -d "$ANS" ] + then +--- 695,705 ---- + XMCDLIB=$LIBDIR/xmcd + while : + do +! if [ -n "$NO_PROMPT" ] +! then +! $ECHO "xmcd library directory - using ${XMCDLIB}" +! break +! elif getstr "\nEnter xmcd library directory\n[${XMCDLIB}]:" + then + if [ -d "$ANS" ] + then +*************** +*** 733,739 **** + $ECHO "\n\nThe on-line manual directory is where the man pages in" + $ECHO "in the xmcd package will be installed." + +! if getstr "\nEnter on-line manual directory\n[${MANDIR}]:" + then + MANDIR=$ANS + fi +--- 752,761 ---- + $ECHO "\n\nThe on-line manual directory is where the man pages in" + $ECHO "in the xmcd package will be installed." + +! if [ -n "$NO_PROMPT" ] +! then +! $ECHO "xmcd on-line manual directory - using ${MANDIR}" +! elif getstr "\nEnter on-line manual directory\n[${MANDIR}]:" + then + MANDIR=$ANS + fi +*************** +*** 758,764 **** + MANSUFFIX=1 + fi + +! if getstr "\nEnter on-line manual file name suffix\n[${MANSUFFIX}]:" + then + MANSUFFIX=$ANS + fi +--- 780,789 ---- + MANSUFFIX=1 + fi + +! if [ -n "$NO_PROMPT" ] +! then +! $ECHO "xmcd on-line manual file name suffix - using ${MANSUFFIX}" +! elif getstr "\nEnter on-line manual file name suffix\n[${MANSUFFIX}]:" + then + MANSUFFIX=$ANS + fi diff --git a/audio/xmcd/xmcd/patches/patch-ac b/audio/xmcd/xmcd/patches/patch-ac new file mode 100644 index 00000000000..70bdebed4ae --- /dev/null +++ b/audio/xmcd/xmcd/patches/patch-ac @@ -0,0 +1,46 @@ +*** cda_d/Imakefile.orig Sun Nov 30 18:36:25 1997 +--- cda_d/Imakefile Wed May 20 21:28:11 1998 +*************** +*** 86,92 **** + LOCAL_LIBRARIES= + #else + #if defined(OpenBSDArchitecture) +! LOCAL_LIBRARIES=-lncurses -ltermlib + #else + #if defined(UltrixArchitecture) + LOCAL_LIBRARIES=-lcursesX +--- 86,92 ---- + LOCAL_LIBRARIES= + #else + #if defined(OpenBSDArchitecture) +! LOCAL_LIBRARIES=-lcurses -ltermlib + #else + #if defined(UltrixArchitecture) + LOCAL_LIBRARIES=-lcursesX +*************** +*** 97,103 **** + #if defined(__QNX__) + LOCAL_LIBRARIES=-lncurses + #else +! LOCAL_LIBRARIES=-lcurses + #endif /* __QNX__ */ + #endif /* SINIX */ + #endif /* ultrix */ +--- 97,103 ---- + #if defined(__QNX__) + LOCAL_LIBRARIES=-lncurses + #else +! LOCAL_LIBRARIES=-lcurses -ltermlib -lossaudio + #endif /* __QNX__ */ + #endif /* SINIX */ + #endif /* ultrix */ +*************** +*** 107,112 **** +--- 107,113 ---- + #endif /* LinuxArchitecture OpenBSDArchitecture */ + #endif /* SunArchitecture */ + ++ MANSUFFIX = 1 + + /* + * C Source files diff --git a/audio/xmcd/xmcd/pkg/COMMENT b/audio/xmcd/xmcd/pkg/COMMENT new file mode 100644 index 00000000000..76dcbc12d27 --- /dev/null +++ b/audio/xmcd/xmcd/pkg/COMMENT @@ -0,0 +1 @@ +Motif CD player. diff --git a/audio/xmcd/xmcd/pkg/DESCR b/audio/xmcd/xmcd/pkg/DESCR new file mode 100644 index 00000000000..761dcb3fc50 --- /dev/null +++ b/audio/xmcd/xmcd/pkg/DESCR @@ -0,0 +1,14 @@ +Xmcd is a program that allows the use of the CD-ROM drive +as a full-featured stereo compact-disc player for the X +window system. + +Most of the features found on real CD players are +available in xmcd, such as shuffle and repeat, track +programming functions, a numeric keypad and track warp +slider for direct track access. Additional functions +include sample play, A to B segment play, volume control, +balance control, etc. Several automation options are also +available on CD load, eject, play completion and program +exit. A Channel Routing feature allow you to select from +several stereo or mono routing options. The volume +control slider taper characteristics can also be altered. diff --git a/audio/xmcd/xmcd/pkg/PLIST b/audio/xmcd/xmcd/pkg/PLIST new file mode 100644 index 00000000000..b1cf6889881 --- /dev/null +++ b/audio/xmcd/xmcd/pkg/PLIST @@ -0,0 +1,148 @@ +bin/xmcd +bin/cda +bin/wm2xmcd +lib/X11/app-defaults/XMcd +lib/X11/xmcd/help/Ab.btn +lib/X11/xmcd/help/DbProg.btn +lib/X11/xmcd/help/DdCancel.btn +lib/X11/xmcd/help/DdClr.btn +lib/X11/xmcd/help/DdOk.btn +lib/X11/xmcd/help/DpAbout.btn +lib/X11/xmcd/help/DpAddPgm.btn +lib/X11/xmcd/help/DpCancel.btn +lib/X11/xmcd/help/DpClrPgm.btn +lib/X11/xmcd/help/DpDExt.btn +lib/X11/xmcd/help/DpLink.btn +lib/X11/xmcd/help/DpLoad.btn +lib/X11/xmcd/help/DpSave.btn +lib/X11/xmcd/help/DpSend.btn +lib/X11/xmcd/help/DpTExt.btn +lib/X11/xmcd/help/DpTimSel.btn +lib/X11/xmcd/help/DsCancel.btn +lib/X11/xmcd/help/DsOk.btn +lib/X11/xmcd/help/DtCancel.btn +lib/X11/xmcd/help/DtClr.btn +lib/X11/xmcd/help/DtOk.btn +lib/X11/xmcd/help/Eject.btn +lib/X11/xmcd/help/Ff.btn +lib/X11/xmcd/help/Help.btn +lib/X11/xmcd/help/Keypad.btn +lib/X11/xmcd/help/KpCancel.btn +lib/X11/xmcd/help/KpClear.btn +lib/X11/xmcd/help/KpEnter.btn +lib/X11/xmcd/help/KpNum.btn +lib/X11/xmcd/help/KpSel.btn +lib/X11/xmcd/help/LsCancel.btn +lib/X11/xmcd/help/LsOk.btn +lib/X11/xmcd/help/NextDisc.btn +lib/X11/xmcd/help/NextIdx.btn +lib/X11/xmcd/help/NextTrk.btn +lib/X11/xmcd/help/OpBalCtr.btn +lib/X11/xmcd/help/OpOk.btn +lib/X11/xmcd/help/OpReset.btn +lib/X11/xmcd/help/OpSave.btn +lib/X11/xmcd/help/Options.btn +lib/X11/xmcd/help/PlayPaus.btn +lib/X11/xmcd/help/Power.btn +lib/X11/xmcd/help/PrevDisc.btn +lib/X11/xmcd/help/PrevIdx.btn +lib/X11/xmcd/help/PrevTrk.btn +lib/X11/xmcd/help/Rew.btn +lib/X11/xmcd/help/Sample.btn +lib/X11/xmcd/help/Stop.btn +lib/X11/xmcd/help/Time.btn +lib/X11/xmcd/help/DbMode.lbl +lib/X11/xmcd/help/Disc.lbl +lib/X11/xmcd/help/DiscId.lbl +lib/X11/xmcd/help/DiscTitl.lbl +lib/X11/xmcd/help/Index.lbl +lib/X11/xmcd/help/Keypad.lbl +lib/X11/xmcd/help/PlayMode.lbl +lib/X11/xmcd/help/ProgMode.lbl +lib/X11/xmcd/help/RptCnt.lbl +lib/X11/xmcd/help/Time.lbl +lib/X11/xmcd/help/TimeMode.lbl +lib/X11/xmcd/help/Track.lbl +lib/X11/xmcd/help/TrkTitle.lbl +lib/X11/xmcd/help/DdDisc.txw +lib/X11/xmcd/help/DpDTitle.txw +lib/X11/xmcd/help/DpPgmSeq.txw +lib/X11/xmcd/help/DpTTitle.txw +lib/X11/xmcd/help/DtTrack.txw +lib/X11/xmcd/help/KpWarp.scl +lib/X11/xmcd/help/Level.scl +lib/X11/xmcd/help/OpBal.scl +lib/X11/xmcd/help/DpTrk.lsw +lib/X11/xmcd/help/DsDir.lsw +lib/X11/xmcd/help/LsLink.lsw +lib/X11/xmcd/help/OpChRt.rbx +lib/X11/xmcd/help/OpExit.rbx +lib/X11/xmcd/help/OpLoad.rbx +lib/X11/xmcd/help/OpVolTpr.rbx +lib/X11/xmcd/help/Main.cbx +lib/X11/xmcd/help/OpChgr.cbx +lib/X11/xmcd/help/OpDone.cbx +lib/X11/xmcd/help/OpEject.cbx +lib/X11/xmcd/help/OpLoad.cbx +lib/X11/xmcd/cddb/misc/4102560a +lib/X11/xmcd/pixmaps/xmcd.icon +lib/X11/xmcd/pixmaps/xmcd_a.px +lib/X11/xmcd/pixmaps/xmcd_b.px +lib/X11/xmcd/pixmaps/xmcd.xpm +lib/X11/xmcd/config/common.cfg +lib/X11/xmcd/config/device.cfg +lib/X11/xmcd/config/.tbl/Acer +lib/X11/xmcd/config/.tbl/Apple +lib/X11/xmcd/config/.tbl/Aztech +lib/X11/xmcd/config/.tbl/Chinon +lib/X11/xmcd/config/.tbl/Compaq +lib/X11/xmcd/config/.tbl/Compro +lib/X11/xmcd/config/.tbl/Creative +lib/X11/xmcd/config/.tbl/DEC +lib/X11/xmcd/config/.tbl/Goldstar +lib/X11/xmcd/config/.tbl/HP +lib/X11/xmcd/config/.tbl/Hitachi +lib/X11/xmcd/config/.tbl/IBM +lib/X11/xmcd/config/.tbl/Longshin +lib/X11/xmcd/config/.tbl/MDI +lib/X11/xmcd/config/.tbl/MediaVis +lib/X11/xmcd/config/.tbl/Mitsumi +lib/X11/xmcd/config/.tbl/NEC +lib/X11/xmcd/config/.tbl/Nakamich +lib/X11/xmcd/config/.tbl/Okano +lib/X11/xmcd/config/.tbl/Opticsto +lib/X11/xmcd/config/.tbl/Orchid +lib/X11/xmcd/config/.tbl/Panasoni +lib/X11/xmcd/config/.tbl/Philips +lib/X11/xmcd/config/.tbl/Pioneer +lib/X11/xmcd/config/.tbl/Plextor +lib/X11/xmcd/config/.tbl/Procom +lib/X11/xmcd/config/.tbl/SGI +lib/X11/xmcd/config/.tbl/Sanyo +lib/X11/xmcd/config/.tbl/Sony +lib/X11/xmcd/config/.tbl/Stratus +lib/X11/xmcd/config/.tbl/Sun +lib/X11/xmcd/config/.tbl/Teac +lib/X11/xmcd/config/.tbl/Toshiba +lib/X11/xmcd/config/.tbl/Yamaha +lib/X11/xmcd/config/config.sh +man/man1/xmcd.1 +man/man1/cda.1 +man/man1/wm2xmcd.1 +@dirrm lib/X11/xmcd/pixmaps +@dirrm lib/X11/xmcd/help +@dirrm lib/X11/xmcd/config/.tbl +@dirrm lib/X11/xmcd/config +@dirrm lib/X11/xmcd/cddb/soundtrack +@dirrm lib/X11/xmcd/cddb/rock +@dirrm lib/X11/xmcd/cddb/reggae +@dirrm lib/X11/xmcd/cddb/newage +@dirrm lib/X11/xmcd/cddb/misc +@dirrm lib/X11/xmcd/cddb/jazz +@dirrm lib/X11/xmcd/cddb/folk +@dirrm lib/X11/xmcd/cddb/data +@dirrm lib/X11/xmcd/cddb/country +@dirrm lib/X11/xmcd/cddb/classical +@dirrm lib/X11/xmcd/cddb/blues +@dirrm lib/X11/xmcd/cddb +@dirrm lib/X11/xmcd diff --git a/audio/xmcd/xmix/Makefile b/audio/xmcd/xmix/Makefile new file mode 100644 index 00000000000..bb346683475 --- /dev/null +++ b/audio/xmcd/xmix/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: xmix +# Version required: 2.1 +# Date created: 30 June 1995 +# Whom: janek@gaja.ipan.lublin.pl +# +# $Id: Makefile,v 1.1.1.1 1998/05/21 01:38:05 angelos Exp $ +# + +DISTNAME= xmix-2.1 +CATEGORIES= audio +MASTER_SITES= ${MASTER_SITE_SUNSITE} +MASTER_SITE_SUBDIR= apps/sound/mixers + +PATCH_SITES= ${MASTER_SITES} +PATCHFILES= xmix-2.1.mixers.patch + +MAINTAINER= janek@gaja.ipan.lublin.pl + +USE_IMAKE= yes +WRKSRC= $(WRKDIR)/xmix + +pre-install: + ${CP} ${WRKSRC}/xmix.1 ${WRKSRC}/xmix.man + ${INSTALL_DATA} $(WRKSRC)/XMix ${PREFIX}/lib/X11/app-defaults + +.include diff --git a/audio/xmcd/xmix/files/md5 b/audio/xmcd/xmix/files/md5 new file mode 100644 index 00000000000..722803ecfee --- /dev/null +++ b/audio/xmcd/xmix/files/md5 @@ -0,0 +1,2 @@ +MD5 (xmix-2.1.mixers.patch) = 26786ade59dd22f01700be2e8d2239c3 +MD5 (xmix-2.1.tar.gz) = 9216b84746fc66179dcd93696b139d68 diff --git a/audio/xmcd/xmix/patches/patch-aa b/audio/xmcd/xmix/patches/patch-aa new file mode 100644 index 00000000000..97750e6f155 --- /dev/null +++ b/audio/xmcd/xmix/patches/patch-aa @@ -0,0 +1,37 @@ +diff -rc ../../xmix.orig/Imakefile ./Imakefile +*** ../../xmix.orig/Imakefile Fri Jun 30 18:49:35 1995 +--- ./Imakefile Fri Jun 30 20:11:30 1995 +*************** +*** 14,17 **** + + LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) + +! NormalProgramTarget(xmix,$(OBJS1),,$(LOCAL_LIBRARIES),) +--- 14,19 ---- + + LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) + +! PROGRAM = $(PROGRAMS) +! +! ComplexProgramTarget_1($(PROGRAM),$(LOCAL_LIBRARIES),) +Only in ./: Imakefile.orig +diff -rc ../../xmix.orig/xmix.c ./xmix.c +*** ../../xmix.orig/xmix.c Fri Jun 30 20:09:41 1995 +--- ./xmix.c Fri Jun 30 20:11:49 1995 +*************** +*** 77,83 **** + #include "square_empty.bit" + #include "square_with_x.bit" + +! #include + + #define SOUND_FULL_SCALE 100.0 + #define MAX_SOUND_VOL 95 +--- 77,83 ---- + #include "square_empty.bit" + #include "square_with_x.bit" + +! #include + + #define SOUND_FULL_SCALE 100.0 + #define MAX_SOUND_VOL 95 diff --git a/audio/xmcd/xmix/pkg/COMMENT b/audio/xmcd/xmix/pkg/COMMENT new file mode 100644 index 00000000000..5c9366fe6a7 --- /dev/null +++ b/audio/xmcd/xmix/pkg/COMMENT @@ -0,0 +1 @@ +Mixer for X Window System. diff --git a/audio/xmcd/xmix/pkg/DESCR b/audio/xmcd/xmix/pkg/DESCR new file mode 100644 index 00000000000..1a9ea491327 --- /dev/null +++ b/audio/xmcd/xmix/pkg/DESCR @@ -0,0 +1,4 @@ +This is the xmix sound mixer for the sound drivers in the FreeBSD +It was originally written for Linux by Hal Brand (brand@netcom.com). + +This is version 2.1. diff --git a/audio/xmcd/xmix/pkg/PLIST b/audio/xmcd/xmix/pkg/PLIST new file mode 100644 index 00000000000..70c43961941 --- /dev/null +++ b/audio/xmcd/xmix/pkg/PLIST @@ -0,0 +1,3 @@ +bin/xmix +lib/X11/app-defaults/XMix +man/man1/xmix.1.gz diff --git a/audio/xmcd/xmmix/Makefile b/audio/xmcd/xmmix/Makefile new file mode 100644 index 00000000000..0ca9ac32595 --- /dev/null +++ b/audio/xmcd/xmmix/Makefile @@ -0,0 +1,19 @@ +# New ports collection makefile for: xmmix +# Version required: 1.2 +# Date created: Mon Aug 5 10:54:25 CDT 1996 +# Whom: erich@FreeBSD.org +# +# $Id: Makefile,v 1.1.1.1 1998/05/21 01:38:05 angelos Exp $ +# + +DISTNAME= xmmix-1.2 +CATEGORIES= audio +MASTER_SITES= ${MASTER_SITE_XCONTRIB} +MASTER_SITE_SUBDIR= applications/ + +MAINTAINER= erich@FreeBSD.org + +USE_IMAKE= yes +REQUIRES_MOTIF= yes + +.include diff --git a/audio/xmcd/xmmix/files/md5 b/audio/xmcd/xmmix/files/md5 new file mode 100644 index 00000000000..561dd13e4f0 --- /dev/null +++ b/audio/xmcd/xmmix/files/md5 @@ -0,0 +1 @@ +MD5 (xmmix-1.2.tar.gz) = 5a6556ec9a84888d7e77ba59c2128843 diff --git a/audio/xmcd/xmmix/patches/patch-aa b/audio/xmcd/xmmix/patches/patch-aa new file mode 100644 index 00000000000..c3f4a3d6091 --- /dev/null +++ b/audio/xmcd/xmmix/patches/patch-aa @@ -0,0 +1,22 @@ +--- ./appenv.h.org Sun Jul 14 10:48:59 1996 ++++ ./appenv.h Mon Aug 19 04:05:16 1996 +@@ -59,7 +59,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +--- ./Imakefile.org Sun Jul 14 10:48:56 1996 ++++ ./Imakefile Mon Aug 19 04:09:48 1996 +@@ -43,7 +43,7 @@ + * #include "Motif.tmpl" + * #include "Motif.rules" + */ +-LOCAL_LIBRARIES= XmClientLibs ++LOCAL_LIBRARIES= ${MOTIFLIB} ${XTOOLLIB} ${XLIB} + + + /* diff --git a/audio/xmcd/xmmix/pkg/COMMENT b/audio/xmcd/xmmix/pkg/COMMENT new file mode 100644 index 00000000000..8f237039785 --- /dev/null +++ b/audio/xmcd/xmmix/pkg/COMMENT @@ -0,0 +1 @@ +a Motif based audio mixer diff --git a/audio/xmcd/xmmix/pkg/DESCR b/audio/xmcd/xmmix/pkg/DESCR new file mode 100644 index 00000000000..6a1b9c19c9c --- /dev/null +++ b/audio/xmcd/xmmix/pkg/DESCR @@ -0,0 +1,20 @@ +From the README: + + Xmmix is a sound mixer utility for the X Window System using the + OSF/Motif interface. It requires the Unix Sound System (formerly + "VoxWare") sound driver by Hannu Savolainen (hannu@voxware.pp.fi). + + For those of you with access to the WWW (via Netscape, NCSA Mosaic + or other WWW browser), The URL for the xmmix home page is as + follows: + + http://sunsite.unc.edu/~cddb/xmmix/ + + This home page provides up-to-date information about the + current release version, online README file, FTP service to get + the software, an interactive form to send comments and + suggestions, and late breaking announcement, if any. + +I don't have hardware to test all the features, but it looks ok. +eric. +erich@FreeBSD.org diff --git a/audio/xmcd/xmmix/pkg/PLIST b/audio/xmcd/xmmix/pkg/PLIST new file mode 100644 index 00000000000..6f5532e5441 --- /dev/null +++ b/audio/xmcd/xmmix/pkg/PLIST @@ -0,0 +1,4 @@ +bin/xmmix +lib/X11/app-defaults/XMmix +lib/X11/xmmix.hlp +man/man1/xmmix.1.gz