ports/103260: [patch] Add audacity-devel port

Jack Low xxjack12xx at gmail.com
Thu Sep 14 12:00:46 UTC 2006


>Number:         103260
>Category:       ports
>Synopsis:       [patch] Add audacity-devel port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 14 12:00:42 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Jack Low
>Release:        FreeBSD 6.1-RELEASE-p6 amd64
>Organization:
None
>Environment:
System: FreeBSD laptop.jack.com 6.1-RELEASE-p6 FreeBSD 6.1-RELEASE-p6 #0: Thu Sep 7 05:48:25 PDT 2006 jack at laptop.jack.com:/usr/obj/usr/src/sys/LAPTOP amd64

>Description:
I would like to add the audacity-devel port into the ports tree and maintain it. I have attached the shar
file.

>How-To-Repeat:
>Fix:

--- audacity-devel.shar begins here ---
# 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:
#
#	audacity-devel
#	audacity-devel/CVS
#	audacity-devel/CVS/Root
#	audacity-devel/CVS/Repository
#	audacity-devel/CVS/Entries
#	audacity-devel/files
#	audacity-devel/files/patch-libresample-Makefile.in
#	audacity-devel/files/CVS
#	audacity-devel/files/CVS/Root
#	audacity-devel/files/CVS/Repository
#	audacity-devel/files/CVS/Entries
#	audacity-devel/files/patch-portmixer-px_unix_oss.c
#	audacity-devel/files/patch-portaudio-pa_unix_oss.c
#	audacity-devel/files/patch-portaudio-pa_unix.h
#	audacity-devel/files/patch-portaudio-pa_unix.c
#	audacity-devel/files/patch-libnyquist-term.c
#	audacity-devel/files/patch-libnyquist-switches.h
#	audacity-devel/files/patch-libnyquist-Makefile.in
#	audacity-devel/files/patch-Makefile.in
#	audacity-devel/pkg-plist
#	audacity-devel/distinfo
#	audacity-devel/Makefile
#	audacity-devel/pkg-descr
#
echo c - audacity-devel
mkdir -p audacity-devel > /dev/null 2>&1
echo c - audacity-devel/CVS
mkdir -p audacity-devel/CVS > /dev/null 2>&1
echo x - audacity-devel/CVS/Root
sed 's/^X//' >audacity-devel/CVS/Root << 'END-of-audacity-devel/CVS/Root'
X:pserver:anoncvs at anoncvs.at.freebsd.org:/home/ncvs
END-of-audacity-devel/CVS/Root
echo x - audacity-devel/CVS/Repository
sed 's/^X//' >audacity-devel/CVS/Repository << 'END-of-audacity-devel/CVS/Repository'
Xports/audio/audacity-devel
END-of-audacity-devel/CVS/Repository
echo x - audacity-devel/CVS/Entries
sed 's/^X//' >audacity-devel/CVS/Entries << 'END-of-audacity-devel/CVS/Entries'
XD
END-of-audacity-devel/CVS/Entries
echo c - audacity-devel/files
mkdir -p audacity-devel/files > /dev/null 2>&1
echo x - audacity-devel/files/patch-libresample-Makefile.in
sed 's/^X//' >audacity-devel/files/patch-libresample-Makefile.in << 'END-of-audacity-devel/files/patch-libresample-Makefile.in'
X--- lib-src/libresample/Makefile.in.orig	Tue Dec  2 19:46:02 2003
X+++ lib-src/libresample/Makefile.in	Tue Dec  2 19:46:25 2003
X@@ -6,7 +6,7 @@
X CC = @CC@
X CFLAGS = @CFLAGS@ -Wall
X 
X-LIBS = @LIBS@ -lm
X+LIBS = @LDFLAGS@ @LIBS@ -lm
X 
X AR = @AR@
X RANLIB = @RANLIB@
END-of-audacity-devel/files/patch-libresample-Makefile.in
echo c - audacity-devel/files/CVS
mkdir -p audacity-devel/files/CVS > /dev/null 2>&1
echo x - audacity-devel/files/CVS/Root
sed 's/^X//' >audacity-devel/files/CVS/Root << 'END-of-audacity-devel/files/CVS/Root'
X:pserver:anoncvs at anoncvs.at.freebsd.org:/home/ncvs
END-of-audacity-devel/files/CVS/Root
echo x - audacity-devel/files/CVS/Repository
sed 's/^X//' >audacity-devel/files/CVS/Repository << 'END-of-audacity-devel/files/CVS/Repository'
Xports/audio/audacity-devel/files
END-of-audacity-devel/files/CVS/Repository
echo x - audacity-devel/files/CVS/Entries
sed 's/^X//' >audacity-devel/files/CVS/Entries << 'END-of-audacity-devel/files/CVS/Entries'
XD
END-of-audacity-devel/files/CVS/Entries
echo x - audacity-devel/files/patch-portmixer-px_unix_oss.c
sed 's/^X//' >audacity-devel/files/patch-portmixer-px_unix_oss.c << 'END-of-audacity-devel/files/patch-portmixer-px_unix_oss.c'
X--- lib-src/portmixer/px_unix_oss/px_unix_oss.c.orig	Tue Dec  2 20:06:55 2003
X+++ lib-src/portmixer/px_unix_oss/px_unix_oss.c	Tue Dec  2 20:07:09 2003
X@@ -37,6 +37,8 @@
X 
X #ifdef __linux__
X #include <linux/soundcard.h>
X+#elif defined(__FreeBSD__)
X+#include <sys/soundcard.h>
X #else
X #include <machine/soundcard.h> /* JH20010905 */
X #endif
END-of-audacity-devel/files/patch-portmixer-px_unix_oss.c
echo x - audacity-devel/files/patch-portaudio-pa_unix_oss.c
sed 's/^X//' >audacity-devel/files/patch-portaudio-pa_unix_oss.c << 'END-of-audacity-devel/files/patch-portaudio-pa_unix_oss.c'
X--- lib-src/portaudio/pa_unix_oss/pa_unix_oss.c.orig	Tue Dec  2 19:57:13 2003
X+++ lib-src/portaudio/pa_unix_oss/pa_unix_oss.c	Tue Dec  2 19:57:47 2003
X@@ -42,6 +42,8 @@
X 
X #ifdef __linux__
X #include <linux/soundcard.h>
X+#elif defined(__FreeBSD__)
X+#include <sys/soundcard.h>
X #else
X #include <machine/soundcard.h> /* JH20010905 */
X #endif
END-of-audacity-devel/files/patch-portaudio-pa_unix_oss.c
echo x - audacity-devel/files/patch-portaudio-pa_unix.h
sed 's/^X//' >audacity-devel/files/patch-portaudio-pa_unix.h << 'END-of-audacity-devel/files/patch-portaudio-pa_unix.h'
X--- lib-src/portaudio/pa_unix_oss/pa_unix.h.orig	Tue Dec  2 19:56:56 2003
X+++ lib-src/portaudio/pa_unix_oss/pa_unix.h	Tue Dec  2 19:58:33 2003
X@@ -82,7 +82,7 @@
X #define MAX_TIMEOUT_MSEC   (1000)
X 
X /************************************************* Definitions ********/
X-#ifdef __linux__
X+#if defined(__linux__) || defined(__FreeBSD__)
X  #define DEVICE_NAME_BASE            "/dev/dsp"
X #else
X  #define DEVICE_NAME_BASE            "/dev/audio"
END-of-audacity-devel/files/patch-portaudio-pa_unix.h
echo x - audacity-devel/files/patch-portaudio-pa_unix.c
sed 's/^X//' >audacity-devel/files/patch-portaudio-pa_unix.c << 'END-of-audacity-devel/files/patch-portaudio-pa_unix.c'
X--- lib-src/portaudio/pa_unix_oss/pa_unix.c.orig	Tue Nov 30 21:18:35 2004
X+++ lib-src/portaudio/pa_unix_oss/pa_unix.c	Tue Nov 30 21:33:58 2004
X@@ -422,7 +422,7 @@
X     maxPri = sched_get_priority_max(SCHEDULER_POLICY);
X     if( schp.sched_priority > maxPri ) schp.sched_priority = maxPri;
X 
X-    if (sched_setscheduler(0, SCHEDULER_POLICY, &schp) != 0)
X+    if (pthread_setschedparam(pahsc->pahsc_WatchDogThread, SCHEDULER_POLICY, &schp) != 0)
X     {
X         ERR_RPT(("PaHost_WatchDogProc: cannot set watch dog priority!\n"));
X         goto killAudio;
X@@ -465,7 +465,7 @@
X lowerAudio:
X     {
X         struct sched_param    schat = { 0 };
X-        if( sched_setscheduler(pahsc->pahsc_AudioThreadPID, SCHED_OTHER, &schat) != 0)
X+        if( pthread_setschedparam(pahsc->pahsc_AudioThread, SCHED_OTHER, &schat) != 0)
X         {
X             ERR_RPT(("PaHost_WatchDogProc: failed to lower audio priority. errno = %d\n", errno ));
X             /* Fall through into killing audio thread. */
X@@ -585,7 +585,7 @@
X                                   sched_get_priority_min(SCHEDULER_POLICY)) / 2;
X     schp.sched_priority = pahsc->pahsc_AudioPriority;
X 
X-    if (sched_setscheduler(0, SCHEDULER_POLICY, &schp) != 0)
X+    if (pthread_setschedparam(pahsc->pahsc_AudioThread, SCHEDULER_POLICY, &schp) != 0)
X     {
X         DBUG(("PortAudio: only superuser can use real-time priority.\n"));
X     }
END-of-audacity-devel/files/patch-portaudio-pa_unix.c
echo x - audacity-devel/files/patch-libnyquist-term.c
sed 's/^X//' >audacity-devel/files/patch-libnyquist-term.c << 'END-of-audacity-devel/files/patch-libnyquist-term.c'
X--- lib-src/libnyquist/sys/term.c.orig	Tue Dec  2 19:17:30 2003
X+++ lib-src/libnyquist/sys/term.c	Tue Dec  2 19:17:51 2003
X@@ -40,7 +40,7 @@
X #else
X 
X #include <termios.h>
X-#ifndef __APPLE__
X+#if !defined(__APPLE__) && !defined(__FreeBSD__)
X #include <asm/ioctls.h>
X #endif
X #include <signal.h>
END-of-audacity-devel/files/patch-libnyquist-term.c
echo x - audacity-devel/files/patch-libnyquist-switches.h
sed 's/^X//' >audacity-devel/files/patch-libnyquist-switches.h << 'END-of-audacity-devel/files/patch-libnyquist-switches.h'
X--- lib-src/libnyquist/sys/switches.h.orig	Tue Dec  2 19:14:40 2003
X+++ lib-src/libnyquist/sys/switches.h	Tue Dec  2 19:16:20 2003
X@@ -39,7 +39,7 @@
X */
X #define nyquist_printf printf
X 
X-#if __APPLE__ && __GNUC__ /* Mac OS X */
X+#if (__FreeBSD__ || __APPLE__) && __GNUC__ /* Mac OS X */
X #define NEED_ULONG 1
X #else
X #include <sys/types.h>
END-of-audacity-devel/files/patch-libnyquist-switches.h
echo x - audacity-devel/files/patch-libnyquist-Makefile.in
sed 's/^X//' >audacity-devel/files/patch-libnyquist-Makefile.in << 'END-of-audacity-devel/files/patch-libnyquist-Makefile.in'
X--- lib-src/libnyquist/Makefile.in.orig	Tue Dec  2 19:32:18 2003
X+++ lib-src/libnyquist/Makefile.in	Tue Dec  2 19:32:42 2003
X@@ -465,13 +465,13 @@
X 	cc -c cmt/userio.c -o cmt/userio.o $(CFLAGS)
X 
X misc/intgen: misc/intgen.c
X-	cd misc; make intgen
X+	cd misc; $(MAKE) intgen
X 
X misc/unpacker: misc/unpacker.c misc/convert.c
X-	cd misc; make unpacker
X+	cd misc; $(MAKE) unpacker
X 
X misc/packer: misc/packer.c misc/convert.c
X-	cd misc; make packer
X+	cd misc; $(MAKE) packer
X 
X nyqsrc/sndfnintptrs.h: $(NYQHDRS) snd/snd.h misc/intgen
X 	$(INTGEN) nyqsrc/sndfnint $(NYQHDRS)
X@@ -481,14 +481,14 @@
X 
X clean:
X 	rm -f libnyquist.a
X-	cd misc; make clean
X+	cd misc; $(MAKE) clean
X 	rm -f $(OBJECTS)
X # Note that these files are machine-generated:
X 	rm -f nyqsrc/sndfnintptrs.h nyqsrc/sndfnint.c nyqsrc/sndfnintdefs.h
X 	rm -f nyqsrc/seqfnintptrs.h nyqsrc/seqfnint.c nyqsrc/seqfnintdefs.h
X 
X cleaner: clean
X-	cd misc; make cleaner
X+	cd misc; $(MAKE) cleaner
X 	rm -f *.backup */*.backup
X 	rm -f *~ */*.*~
X 	rm -f *.save */*.save
END-of-audacity-devel/files/patch-libnyquist-Makefile.in
echo x - audacity-devel/files/patch-Makefile.in
sed 's/^X//' >audacity-devel/files/patch-Makefile.in << 'END-of-audacity-devel/files/patch-Makefile.in'
X--- Makefile.in.orig	Tue Nov 30 21:49:32 2004
X+++ Makefile.in	Tue Nov 30 21:50:05 2004
X@@ -31,9 +31,11 @@
X 	$(INSTALL) -d $(DESTDIR)$(DATADIR)/$(AUDACITY_NAME)
X 	-test -f audacity-1.2-help.htb && $(INSTALL) -m 644 audacity-1.2-help.htb \
X 		$(DESTDIR)$(DATADIR)/$(AUDACITY_NAME)/audacity-1.2-help.htb
X+ifeq ($(DOC),yes)
X 	$(INSTALL) -d $(DESTDIR)$(DATADIR)/doc/$(AUDACITY_NAME)
X 	$(INSTALL) -m 644 README.txt $(DESTDIR)$(DATADIR)/doc/$(AUDACITY_NAME)/README.txt
X 	$(INSTALL) -m 644 LICENSE.txt $(DESTDIR)$(DATADIR)/doc/$(AUDACITY_NAME)/LICENSE.txt
X+endif
X 
X 	# install manpage
X 	$(INSTALL) -d $(DESTDIR)$(MANDIR)/man1
END-of-audacity-devel/files/patch-Makefile.in
echo x - audacity-devel/pkg-plist
sed 's/^X//' >audacity-devel/pkg-plist << 'END-of-audacity-devel/pkg-plist'
Xbin/audacity
X%%DATADIR%%/nyquist/bug.lsp
X%%DATADIR%%/nyquist/dspprims.lsp
X%%DATADIR%%/nyquist/evalenv.lsp
X%%DATADIR%%/nyquist/follow.lsp
X%%DATADIR%%/nyquist/init.lsp
X%%DATADIR%%/nyquist/misc.lsp
X%%DATADIR%%/nyquist/nyinit.lsp
X%%DATADIR%%/nyquist/nyqmisc.lsp
X%%DATADIR%%/nyquist/nyquist.lsp
X%%DATADIR%%/nyquist/printrec.lsp
X%%DATADIR%%/nyquist/profile.lsp
X%%DATADIR%%/nyquist/seq.lsp
X%%DATADIR%%/nyquist/seqfnint.lsp
X%%DATADIR%%/nyquist/seqmidi.lsp
X%%DATADIR%%/nyquist/sndfnint.lsp
X%%DATADIR%%/nyquist/system.lsp
X%%DATADIR%%/nyquist/test.lsp
X%%DATADIR%%/nyquist/xlinit.lsp
X%%DATADIR%%/plug-ins/SilenceMarker.ny
X%%DATADIR%%/plug-ins/clicktrack.ny
X%%DATADIR%%/plug-ins/crossfadein.ny
X%%DATADIR%%/plug-ins/crossfadeout.ny
X%%DATADIR%%/plug-ins/delay.ny
X%%DATADIR%%/plug-ins/highpass.ny
X%%DATADIR%%/plug-ins/lowpass.ny
X%%DATADIR%%/plug-ins/pluck.ny
X%%DATADIR%%/plug-ins/tremolo.ny
X%%DATADIR%%/audacity-1.2-help.htb
Xshare/locale/ar/LC_MESSAGES/audacity.mo
Xshare/locale/bg/LC_MESSAGES/audacity.mo
Xshare/locale/ca/LC_MESSAGES/audacity.mo
Xshare/locale/cs/LC_MESSAGES/audacity.mo
Xshare/locale/da/LC_MESSAGES/audacity.mo
Xshare/locale/de/LC_MESSAGES/audacity.mo
Xshare/locale/el/LC_MESSAGES/audacity.mo
Xshare/locale/es/LC_MESSAGES/audacity.mo
Xshare/locale/eu/LC_MESSAGES/audacity.mo
Xshare/locale/fi/LC_MESSAGES/audacity.mo
Xshare/locale/fr/LC_MESSAGES/audacity.mo
Xshare/locale/ga/LC_MESSAGES/audacity.mo
Xshare/locale/hu/LC_MESSAGES/audacity.mo
Xshare/locale/it/LC_MESSAGES/audacity.mo
Xshare/locale/ja/LC_MESSAGES/audacity.mo
Xshare/locale/lt/LC_MESSAGES/audacity.mo
Xshare/locale/mk/LC_MESSAGES/audacity.mo
Xshare/locale/nb/LC_MESSAGES/audacity.mo
Xshare/locale/nl/LC_MESSAGES/audacity.mo
Xshare/locale/pl/LC_MESSAGES/audacity.mo
Xshare/locale/pt/LC_MESSAGES/audacity.mo
Xshare/locale/ru/LC_MESSAGES/audacity.mo
Xshare/locale/sl/LC_MESSAGES/audacity.mo
Xshare/locale/sv/LC_MESSAGES/audacity.mo
Xshare/locale/uk/LC_MESSAGES/audacity.mo
Xshare/locale/zh/LC_MESSAGES/audacity.mo
Xshare/locale/zh_TW/LC_MESSAGES/audacity.mo
X at dirrm %%DATADIR%%/plug-ins
X at dirrm %%DATADIR%%/nyquist
X at dirrm %%DATADIR%%
X%%PORTDOCS%%%%DOCSDIR%%/README.txt
X%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-audacity-devel/pkg-plist
echo x - audacity-devel/distinfo
sed 's/^X//' >audacity-devel/distinfo << 'END-of-audacity-devel/distinfo'
XMD5 (audacity-src-1.3.0b.tar.gz) = d1c5a3359ad95eab6ca8b375972c1a91
XSHA256 (audacity-src-1.3.0b.tar.gz) = cff02da856622acbca7b6ce9e0c05ad0cabc0c10fc5f79e349d2e586176e49f9
XSIZE (audacity-src-1.3.0b.tar.gz) = 4938302
END-of-audacity-devel/distinfo
echo x - audacity-devel/Makefile
sed 's/^X//' >audacity-devel/Makefile << 'END-of-audacity-devel/Makefile'
X# New ports collection makefile for:	audacity-devel
X# Date created:				14 Sep 2006
X# Whom:					Jackson Low <xxjack12xx at gmail.com>
X#
X# $FreeBSD: ports/audio/audacity/Makefile,v 1.30 2006/04/15 20:10:03 arved Exp $
X
XPORTNAME=	audacity
XPORTVERSION=	1.3.0b
XCATEGORIES=	audio
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
XDISTNAME=	${PORTNAME}-src-${PORTVERSION}
X
XMAINTAINER=	xxjack12xx at gmail.com
XCOMMENT=	Audacity is a GUI editor for digital audio waveforms
X
XBUILD_DEPENDS+=	zip:${PORTSDIR}/archivers/zip
XLIB_DEPENDS=	wx_gtk2_core-2.6.0:${PORTSDIR}/x11-toolkits/wxgtk26
X
XWRKSRC=		${WRKDIR}/${PORTNAME}-src-${PORTVERSION}-beta
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XUSE_X_PREFIX=	yes
XUSE_GETTEXT=	yes
X
XMAN1=		audacity.1
XMANCOMPRESSED=	yes
X
XOPTIONS=	ID3TAG	"ID3 tag support"		off \
X		MAD	"Mad MP3 audio decoder support"	on \
X		VORBIS	"OGG/Vorbis audio support"	on
X
X.include <bsd.port.pre.mk>
X
X.if ${ARCH} == "i386" && ${OSVERSION} >= 501103
XSSE_CFLAGS=	-mno-sse -mno-sse2
X.endif
X
XCONFIGURE_ENV+=	LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
X		CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include ${SSE_CFLAGS} ${PTHREAD_CFLAGS}" \
X		CFLAGS="${CFLAGS} -I${LOCALBASE}/include ${SSE_CFLAGS} ${PTHREAD_CFLAGS}" \
X		WX_CONFIG=${X11BASE}/bin/wxgtk2-2.6-config
X
X.if !defined(NOPORTDOCS)
XMAKE_ENV=	DOC=yes
X.endif
X
X.if !defined(WITHOUT_MAD)
XCONFIGURE_ARGS+=	--with-libmad=system
XLIB_DEPENDS+=		mad.2:${PORTSDIR}/audio/libmad
X.else
XCONFIGURE_ARGS+=	--without-libmad
X.endif
X
X.if !defined(WITHOUT_VORBIS)
XCONFIGURE_ARGS+=	--with-vorbis=system
XLIB_DEPENDS+=		vorbis.3:${PORTSDIR}/audio/libvorbis
X.else
XCONFIGURE_ARGS+=	--without-vorbis
X.endif
X
X.if defined(WITH_ID3TAG)
XCONFIGURE_ARGS+=	--with-id3tag=system
XLIB_DEPENDS+=		id3tag.0:${PORTSDIR}/audio/libid3tag
X.else
XCONFIGURE_ARGS+=	--without-id3tag
X.endif
X
X.include <bsd.port.post.mk>
END-of-audacity-devel/Makefile
echo x - audacity-devel/pkg-descr
sed 's/^X//' >audacity-devel/pkg-descr << 'END-of-audacity-devel/pkg-descr'
XAudacity is a program that lets you manipulate digital audio
Xwaveforms. In addition to letting you record sounds directly from
Xwithin the program, it imports many sound file formats, including
XWAV, AIFF, AU, IRCAM, MP3, and Ogg Vorbis. It supports all
Xcommon editing operations such as Cut, Copy, and Paste, plus it will
Xmix tracks and let you apply plug-in effects to any part of a sound. It
Xalso has a built-in amplitude envelope editor, a customizable
Xspectrogram mode and a frequency analysis window for audio
Xanalysis applications. 
X
XAuthor: Dominic Mazzoni dominic at minorninth.com
XWWW: http://audacity.sourceforge.net
END-of-audacity-devel/pkg-descr
exit
--- audacity-devel.shar ends here ---


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



More information about the freebsd-ports-bugs mailing list