Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Sep 1999 20:51:53 +0800 (CST)
From:      Yin-Jieh Chen <yinjieh@Crazyman.Dorm13.NCTU.edu.tw>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/13803: New port: dap
Message-ID:  <199909181251.UAA01014@Crazyman.Dorm13.NCTU.edu.tw>

next in thread | raw e-mail | index | archive | help

>Number:         13803
>Category:       ports
>Synopsis:       New port: dap
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 18 06:00:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Yin-Jieh Chen
>Release:        FreeBSD 3.3-RC i386
>Organization:
NCTU CSIE
>Environment:
FreeBSD Crazyman.Dorm13.NCTU.edu.tw 3.3-RC FreeBSD 3.3-RC #28: Sun Sep 12 16:12:
16 CST 1999     root@Crazyman.Dorm13.NCTU.edu.tw:/home2/src/sys/compile/YINJIEH
 i386
>Description:

	New port: dap
	dap is a digital audio processor for unix.

>How-To-Repeat:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	dap
#	dap/files
#	dap/files/md5
#	dap/patches
#	dap/patches/patch-aa
#	dap/patches/patch-ab
#	dap/patches/patch-ac
#	dap/patches/patch-ad
#	dap/patches/patch-ae
#	dap/patches/patch-af
#	dap/patches/patch-ag
#	dap/patches/patch-ah
#	dap/pkg
#	dap/pkg/COMMENT
#	dap/pkg/DESCR
#	dap/pkg/PLIST
#	dap/Makefile
#
echo c - dap
mkdir -p dap > /dev/null 2>&1
echo c - dap/files
mkdir -p dap/files > /dev/null 2>&1
echo x - dap/files/md5
sed 's/^X//' >dap/files/md5 << 'END-of-dap/files/md5'
XMD5 (DAPSource.tar.gz) = ab189c9c5190b5b18542ac8d3898099c
END-of-dap/files/md5
echo c - dap/patches
mkdir -p dap/patches > /dev/null 2>&1
echo x - dap/patches/patch-aa
sed 's/^X//' >dap/patches/patch-aa << 'END-of-dap/patches/patch-aa'
X--- libaudio/Makefile.linux.orig	Wed Sep 15 17:05:12 1999
X+++ libaudio/Makefile.linux	Wed Sep 15 16:39:25 1999
X@@ -3,18 +3,18 @@
X BACKDIR = ../bak/libaudio
X HOMEDIR = $(HOME)
X INCDIR  = -I.
X-CCFLAGS = $(INCDIR) $(DEBUG) $(OPTIM) -DLINUX -DBIGENDIAN -DUSINGGCC -Wall
X-DEBUG   = -g3
X+CFLAGS += $(INCDIR) $(DEBUG) $(OPTIM) -DLINUX -DBIGENDIAN -DUSINGGCC -Wall
X+#DEBUG   = -g3
X OPTIM   = -O1
X 
X LIBNAME = libaudio.a
X OBJS    = audio.o
X 
X .c.o:
X-	$(CC) $(CCFLAGS) -c $*.c -o $*.o
X+	$(CC) $(CFLAGS) -c $*.c -o $*.o
X 
X .cc.o:
X-	$(CXX) $(CCFLAGS) -c $*.cc -o $*.o
X+	$(CXX) $(CFLAGS) -c $*.cc -o $*.o
X 
X all: $(LIBNAME)
X 
END-of-dap/patches/patch-aa
echo x - dap/patches/patch-ab
sed 's/^X//' >dap/patches/patch-ab << 'END-of-dap/patches/patch-ab'
X--- libaudio/audio.h.orig	Mon Aug 30 21:26:48 1999
X+++ libaudio/audio.h	Tue Sep 14 21:49:50 1999
X@@ -23,7 +23,9 @@
X #define _audio_h
X 
X #include <stdio.h>
X+#ifndef __FreeBSD__
X #include <malloc.h>
X+#endif
X #include <unistd.h>
X #include <fcntl.h>
X #include <limits.h>
X@@ -31,7 +33,11 @@
X #include <sys/types.h>
X #include <sys/stat.h>
X #include <sys/ioctl.h>
X+#ifdef __FreeBSD__
X+#include <machine/soundcard.h>
X+#else
X #include <sys/soundcard.h>
X+#endif
X 
X #ifdef __cplusplus
X extern "C"
END-of-dap/patches/patch-ab
echo x - dap/patches/patch-ac
sed 's/^X//' >dap/patches/patch-ac << 'END-of-dap/patches/patch-ac'
X--- libaudiofile/Makefile.linux.orig	Wed Sep 15 15:43:58 1999
X+++ libaudiofile/Makefile.linux	Wed Sep 15 16:39:44 1999
X@@ -3,7 +3,7 @@
X BACKDIR = ../bak/libaudiofile
X HOMEDIR = $(HOME)
X INCDIR  = -I.
X-CCFLAGS = $(INCDIR) $(DEBUG) $(OPTIM) -DLINUX -DBIGENDIAN -DUSINGGCC -Wall
X+CFLAGS += $(INCDIR) $(DEBUG) $(OPTIM) -DLINUX -DBIGENDIAN -DUSINGGCC -Wall
X DEBUG   = -g3
X OPTIM   = -O1
X 
X@@ -11,10 +11,10 @@
X OBJS    = audiofile.o ieee.o macros.o raw.o wav.o
X 
X .c.o:
X-	$(CC) $(CCFLAGS) -c $*.c -o $*.o
X+	$(CC) $(CFLAGS) -c $*.c -o $*.o
X 
X .cc.o:
X-	$(CXX) $(CCFLAGS) -c $*.cc -o $*.o
X+	$(CXX) $(CFLAGS) -c $*.cc -o $*.o
X 
X all: $(LIBNAME)
X 
END-of-dap/patches/patch-ac
echo x - dap/patches/patch-ad
sed 's/^X//' >dap/patches/patch-ad << 'END-of-dap/patches/patch-ad'
X--- main/Makefile.linux.orig	Wed Sep 15 15:10:58 1999
X+++ main/Makefile.linux	Wed Sep 15 16:40:16 1999
X@@ -11,10 +11,10 @@
X X11DIR  = /usr/X11R6
X INCDIR  = -I. -I.. -I$(SOUND) -I$(SPKIT) -I$(FORMS) -I$(TOOLTIP) -I$(X11DIR)/include
X LIBDIR  = -L$(SPKIT)/spkit -L$(FORMS) -L$(AUDIO) -L$(AUDIOF) -L$(TOOLTIP) -L$(X11DIR)/lib
X-CCFLAGS = $(INCDIR) $(DEBUG) $(OPTIM) -DLINUX -DBIGENDIAN -DUSINGGCC -Wall
X+CFLAGS += $(INCDIR) $(DEBUG) $(OPTIM) -DLINUX -DBIGENDIAN -DUSINGGCC -Wall
X DEBUG   = -g3
X OPTIM   = -O1
X-LDFLAGS = $(LIBDIR) -ldsp -laudio -laudiofile -ltooltips -lforms -lXpm -lX11 -lm
X+LDFLAGS = $(LIBDIR) -ldsp -laudio -laudiofile -ltooltips -lxforms -lXpm -lX11 -lm
X 
X PROGS =	DAP
X OBJS  = DPTich.o DPTich_cb.o DPTich_DSP.o DPTich_edit_cb.o DPTich_macros.o \
X@@ -23,10 +23,10 @@
X         DPCrossButton.o
X 
X .c.o:
X-	$(CC) $(CCFLAGS) -c $*.c -o $*.o
X+	$(CC) $(CFLAGS) -c $*.c -o $*.o
X 
X .cc.o:
X-	$(CXX) $(CCFLAGS) -c $*.cc -o $*.o
X+	$(CXX) $(CFLAGS) -c $*.cc -o $*.o
X 
X all: $(PROGS)
X 
END-of-dap/patches/patch-ad
echo x - dap/patches/patch-ae
sed 's/^X//' >dap/patches/patch-ae << 'END-of-dap/patches/patch-ae'
X--- sound/Makefile.linux.orig	Wed Sep 15 16:09:14 1999
X+++ sound/Makefile.linux	Wed Sep 15 16:40:55 1999
X@@ -9,24 +9,24 @@
X HOMEDIR = $(HOME)
X INCDIR  = -I. -I.. -I$(SPKIT) -I$(MAINDIR)
X LIBDIR  = -L$(SPKIT)/spkit -L$(AUDIO) -L$(AUDIOF)
X-CCFLAGS = -O1 -g3 -DNOFORMS -DLINUX -DBIGENDIAN -DUSINGGCC -Wall
X+CFLAGS += -O1 -g3 -DNOFORMS -DLINUX -DBIGENDIAN -DUSINGGCC -Wall
X LDFLAGS = $(LIBDIR) -ldsp -laudio -laudiofile -lm
X 
X PROGS =	SampleTest
X OBJS  = DPSample.o DPResample.o DPMixPlay.o SampleTest.o
X 
X .c.o:
X-	$(CC) $(CCFLAGS) $(INCDIR) -c $*.c -o $*.o
X+	$(CC) $(CFLAGS) $(INCDIR) -c $*.c -o $*.o
X 
X .cc.o:
X-	$(CXX) $(CCFLAGS) $(INCDIR) -c $*.cc -o $*.o
X+	$(CXX) $(CFLAGS) $(INCDIR) -c $*.cc -o $*.o
X 
X normal: DPSample.o DPResample.o DPMixPlay.o
X 
X all: $(PROGS)
X 
X SampleTest: $(OBJS)
X-	$(CXX) $(CCFLAGS) $(OBJS) -o SampleTest $(LDFLAGS)
X+	$(CXX) $(CFLAGS) $(OBJS) -o SampleTest $(LDFLAGS)
X 
X clean:
X 	-rm -f $(OBJS) core
END-of-dap/patches/patch-ae
echo x - dap/patches/patch-af
sed 's/^X//' >dap/patches/patch-af << 'END-of-dap/patches/patch-af'
X--- spkit/spkit/Makefile.linux.orig	Wed Sep 15 16:23:45 1999
X+++ spkit/spkit/Makefile.linux	Wed Sep 15 16:41:18 1999
X@@ -8,15 +8,15 @@
X HOMEDIR = $(HOME)
X X11DIR  = /usr/X11R6
X INCDIR  = -I. -I.. -I../.. -I$(SOUND) -I$(FORMS) -I$(MAINDIR) -I$(TOOLTIP) -I$(X11DIR)/include
X-CCFLAGS = $(INCDIR) $(DEBUG) $(OPTIM) -DLINUX -DBIGENDIAN -DUSINGGCC -Wall
X+CFLAGS += $(INCDIR) $(DEBUG) $(OPTIM) -DLINUX -DBIGENDIAN -DUSINGGCC -Wall
X DEBUG   = -g3
X OPTIM   = -O2
X 
X .c.o:
X-	$(CC) $(CCFLAGS) -c $*.c -o $*.o
X+	$(CC) $(CFLAGS) -c $*.c -o $*.o
X 
X .cc.o:
X-	$(CXX) $(CCFLAGS) -c $*.cc -o $*.o
X+	$(CXX) $(CFLAGS) -c $*.cc -o $*.o
X 
X LIBNAME = libdsp.a
X 
END-of-dap/patches/patch-af
echo x - dap/patches/patch-ag
sed 's/^X//' >dap/patches/patch-ag << 'END-of-dap/patches/patch-ag'
X--- tooltips/Makefile.orig	Wed Sep 15 16:46:38 1999
X+++ tooltips/Makefile	Wed Sep 15 16:47:19 1999
X@@ -82,11 +82,11 @@
X 
X tooltips.o: tooltips.c tooltips.h tooltips_forms.h
X 	@$(ECHO) $(ECHOOPTS) Compiling tooltips.o from tooltips.c...
X-	@$(CC) $(CCOPTS) -c tooltips.c
X+	@$(CC) $(CFLAGS) $(CCOPTS) -c tooltips.c
X 
X tooltips_forms.o: tooltips_forms.fixed.c tooltips_forms.h
X 	@$(ECHO) $(ECHOOPTS) Compiling tooltips_forms.o from tooltips_forms.fixed.c...
X-	@$(CC) $(CCOPTS) -c tooltips_forms.fixed.c -o tooltips_forms.o
X+	@$(CC) $(CFLAGS) $(CCOPTS) -c tooltips_forms.fixed.c -o tooltips_forms.o
X 
X # The purpose for this fix is to change:
X # FD_ToolTip *fdui = (FD_ToolTip *) fl_calloc(1, sizeof(*fdui));
END-of-dap/patches/patch-ag
echo x - dap/patches/patch-ah
sed 's/^X//' >dap/patches/patch-ah << 'END-of-dap/patches/patch-ah'
X--- tooltips/examples/menu/Makefile.orig	Wed Sep 15 17:10:45 1999
X+++ tooltips/examples/menu/Makefile	Wed Sep 15 16:48:47 1999
X@@ -59,16 +59,16 @@
X 
X menu: menu.o menu_forms.o
X 	@$(ECHO) $(ECHOOPTS) Linking menu from components...
X-	@$(CC) $(CCOPTS) -o menu menu.o menu_forms.o -ltooltips -lforms \
X+	@$(CC) $(CFLAGS) $(CCOPTS) -o menu menu.o menu_forms.o -ltooltips -lxforms \
X 	   -lX11 -lm
X 
X menu.o: menu.c menu_forms.h
X 	@$(ECHO) $(ECHOOPTS) Compiling menu.o from menu.c...
X-	@$(CC) $(CCOPTS) -c menu.c
X+	@$(CC) $(CFLAGS) $(CCOPTS) -c menu.c
X 
X menu_forms.o: menu_forms.c menu_forms.h
X 	@$(ECHO) $(ECHOOPTS) Compiling menu_forms.o from menu_forms.c...
X-	@$(CC) $(CCOPTS) -c menu_forms.c
X+	@$(CC) $(CFLAGS) $(CCOPTS) -c menu_forms.c
X 
X clean:
X 	@$(ECHO) $(ECHOOPTS) Removing all old object files and executable...
END-of-dap/patches/patch-ah
echo c - dap/pkg
mkdir -p dap/pkg > /dev/null 2>&1
echo x - dap/pkg/COMMENT
sed 's/^X//' >dap/pkg/COMMENT << 'END-of-dap/pkg/COMMENT'
XA digital audio processor for unix.
END-of-dap/pkg/COMMENT
echo x - dap/pkg/DESCR
sed 's/^X//' >dap/pkg/DESCR << 'END-of-dap/pkg/DESCR'
XFrom the README file in the source:
XDAP is a comprehensive audio sample editing and processing suite. DAP currently
Xsupports AIFF and AIFF-C audio files, 8 or 16 bit resolution and 1, 2 or 4
Xchannels of audio data. Note however that on Linux and Solaris, compressed
XAIFF-C files are not currently supported, only non-compressed AIFF-C files.
X
XThe package itself offers comprehensive editing, playback and recording
Xfacilities including full time stretch resampling, manual data editing and a
Xreasonably complete DSP processing suite. Note however that time stretching
Xdoes not currently work on Solaris.
X
XWWW: http://www.cee.hw.ac.uk/~richardk/
X
X- Yin-Jieh Chen
Xyinjieh@csie.nctu.edu.tw
END-of-dap/pkg/DESCR
echo x - dap/pkg/PLIST
sed 's/^X//' >dap/pkg/PLIST << 'END-of-dap/pkg/PLIST'
Xbin/dap
Xshare/dap/CHANGES
Xshare/dap/COPYING
Xshare/dap/INSTALL
Xshare/dap/README
Xshare/dap/THANKS
Xshare/dap/TODO
Xshare/dap/effects/testautopan.dsp
Xshare/dap/effects/testflanger.dsp
Xshare/dap/effects/testmodulateddelay.dsp
Xshare/dap/effects/testmultitapdelay.dsp
Xshare/dap/effects/testphaser.dsp
Xshare/dap/effects/testreverb.dsp
Xshare/dap/effects/teststereoecho.dsp
Xshare/dap/effects/weirdflanger.dsp
Xshare/dap/icons/DAP.gif
Xshare/dap/icons/DAP.xpm
Xshare/dap/icons/Keyboard.gif
Xshare/dap/icons/Keyboard.xpm
Xshare/dap/icons/copyIcon.gif
Xshare/dap/icons/copyIcon.xpm
Xshare/dap/icons/cutIcon.gif
Xshare/dap/icons/cutIcon.xpm
Xshare/dap/icons/newIcon.gif
Xshare/dap/icons/newIcon.xpm
Xshare/dap/icons/openIcon.gif
Xshare/dap/icons/openIcon.xpm
Xshare/dap/icons/pasteIcon.gif
Xshare/dap/icons/pasteIcon.xpm
Xshare/dap/icons/saveIcon.gif
Xshare/dap/icons/saveIcon.xpm
Xshare/dap/icons/zoomInIcon.gif
Xshare/dap/icons/zoomInIcon.xpm
Xshare/dap/icons/zoomOutIcon.gif
Xshare/dap/icons/zoomOutIcon.xpm
Xshare/dap/tooltips/CHANGES
Xshare/dap/tooltips/COPYING
Xshare/dap/tooltips/Makefile
Xshare/dap/tooltips/README
Xshare/dap/tooltips/THANKS
Xshare/dap/tooltips/TODO
Xshare/dap/tooltips/tooltips.c
Xshare/dap/tooltips/tooltips.h
Xshare/dap/tooltips/tooltips_forms.c
Xshare/dap/tooltips/tooltips_forms.fd
Xshare/dap/tooltips/tooltips_forms.h
Xshare/dap/tooltips/examples/menu/Makefile
Xshare/dap/tooltips/examples/menu/menu.c
Xshare/dap/tooltips/examples/menu/menu_forms.c
Xshare/dap/tooltips/examples/menu/menu_forms.fd
Xshare/dap/tooltips/examples/menu/menu_forms.h
X@dirrm share/dap/effects
X@dirrm share/dap/icons
X@dirrm share/dap/tooltips/examples/menu
X@dirrm share/dap/tooltips/examples
X@dirrm share/dap/tooltips
X@dirrm share/dap
END-of-dap/pkg/PLIST
echo x - dap/Makefile
sed 's/^X//' >dap/Makefile << 'END-of-dap/Makefile'
X# New ports collection makefile for:	dap
X# Version required:	2.0.2
X# Date created:		3 Sep 1999
X# Whom:			Yin-Jieh Chen <yinjieh@csie.nctu.edu.tw>
X#
X# $Id$
X#
X
XDISTNAME=	DAPSource
XPKGNAME=	dap-2.0.2
XCATEGORIES=	audio
XMASTER_SITES=	http://www.cee.hw.ac.uk/~richardk/
X
XMAINTAINER=	yinjieh@csie.nctu.edu.tw
X
XLIB_DEPENDS=	Xpm.4:${PORTSDIR}/graphics/xpm \
X		xforms.0:${PORTSDIR}/x11-toolkits/xforms
X
XWRKSRC=		${WRKDIR}/dap
X
Xpre-build:
X	@${CP} ${WRKSRC}/Makefile.linux ${WRKSRC}/Makefile
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/main/DAP ${PREFIX}/bin
X	${MV} ${PREFIX}/bin/DAP ${PREFIX}/bin/dap
X
Xpost-install:
X	@${MKDIR} ${PREFIX}/share/dap
X.for i in CHANGES COPYING INSTALL README THANKS TODO
X	@${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/dap
X.endfor
X	@${MKDIR} ${PREFIX}/share/dap/effects
X	@${INSTALL_DATA} ${WRKSRC}/main/effects/* ${PREFIX}/share/dap/effects
X	@${MKDIR} ${PREFIX}/share/dap/icons
X	@${INSTALL_DATA} ${WRKSRC}/main/icons/* ${PREFIX}/share/dap/icons
X	@${MKDIR} ${PREFIX}/share/dap/tooltips
X.for i in CHANGES COPYING Makefile README THANKS TODO tooltips.c tooltips.h tooltips_forms.c tooltips_forms.fd tooltips_forms.h
X	@${INSTALL_DATA} ${WRKSRC}/tooltips/$i ${PREFIX}/share/dap/tooltips
X.endfor
X	@${MKDIR} ${PREFIX}/share/dap/tooltips/examples
X	@${MKDIR} ${PREFIX}/share/dap/tooltips/examples/menu
X.for i in Makefile menu.c menu_forms.c menu_forms.fd menu_forms.h
X	@${INSTALL_DATA} ${WRKSRC}/tooltips/examples/menu/$i ${PREFIX}/share/dap/tooltips/examples/menu
X.endfor
X
X.include <bsd.port.mk>
END-of-dap/Makefile
exit

>Fix:
	
	Please commit this port, thanks.

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909181251.UAA01014>