- Add more configuration options

- Clean up patches

PR:		ports/141170
Submitted by:	Jack Low <xxjack12xx@gmai..com> (maintainer)
This commit is contained in:
Wen Heping 2009-12-17 06:09:04 +00:00
parent 605599d301
commit 71e01ad695
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=246034
3 changed files with 51 additions and 18 deletions

View File

@ -6,6 +6,7 @@
PORTNAME= audacity
PORTVERSION= 1.3.10
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} \
SF/${PORTNAME}/${PORTNAME}-unstable/${PORTVERSION}
@ -29,23 +30,29 @@ USE_GCC= 4.2+
USE_GETTEXT= yes
USE_BZIP2= yes
USE_WX= 2.8
MAKE_JOBS_SAFE= yes
WX_COMPS= wx
MAKE_JOBS_SAFE= yes
PORTDOCS= README.txt LICENSE.txt
MAN1= audacity.1
MANCOMPRESSED= yes
OPTIONS= VORBIS "Use libvorbis for Ogg Vorbis support" on \
MAD "Use libmad for mp2/3 decoding support" on \
OPTIONS= DEBUG "enable debug support" off \
FFMPEG "Use ffmpeg for import and export support" on \
FLAC "Use libFLAC for FLAC support" on \
ID3TAG "Use libid3tag for mp3 id3 tag support" on \
LADSPA "enable LADSPA plug-in support" on \
MAD "Use libmad for mp2/3 decoding support" on \
MIDI "Use portSMF for Midi support" on \
NYQUIST "enable Nyquist plug-in support" on \
PORTMIXER "compile with PortMixer" on \
SAMPLERATE "Use libresample for sample rate conversion" on \
SBSMS "Use libsbsms for pitch and tempo changing" on \
SOUNDTOUCH "Use libSoundTouch for pitch and tempo changing" on\
TAGLIB "use TagLib for metadata support" on \
TWOLAME "Use libtwolame for MP2 export support" on \
FFMPEG "Use ffmpeg for import and export support" on \
MIDI "Use portSMF for Midi support" on
UNICODE "enable unicode support" on \
VORBIS "Use libvorbis for Ogg Vorbis support" on \
VAMP "use libvamp for Vamp plug-in support" on
.include <bsd.port.pre.mk>
@ -63,14 +70,12 @@ CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
MAKE_ENV= DOC=yes
.endif
CONFIGURE_ARGS+= --enable-unicode=no
.if defined(WITH_VORBIS)
CONFIGURE_ARGS+= --with-libvorbis
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --with-debug
.endif
.if defined(WITH_MAD)
CONFIGURE_ARGS+= --with-libmad
.if defined(WITH_FFMPEG)
CONFIGURE_ARGS+= --with-ffmpeg
.endif
.if defined(WITH_FLAC)
@ -81,6 +86,26 @@ CONFIGURE_ARGS+= --with-libflac
CONFIGURE_ARGS+= --with-libid3tag
.endif
.if defined(WITH_LADSPA)
CONFIGURE_ARGS+= --with-ladspa
.endif
.if defined(WITH_MAD)
CONFIGURE_ARGS+= --with-libmad
.endif
.if defined(WITH_MIDI)
CONFIGURE_ARGS+= --with-midi
.endif
.if defined(WITH_NYQUIST)
CONFIGURE_ARGS+= --with-nyquist
.endif
.if defined(WITH_PORTMIXER)
CONFIGURE_ARGS+= --with-portmixer
.endif
.if defined(WITH_SAMPLERATE)
CONFIGURE_ARGS+= --with-libresample
.endif
@ -97,12 +122,21 @@ CONFIGURE_ARGS+= --with-soundtouch
CONFIGURE_ARGS+= --with-libtwolame
.endif
.if defined(WITH_FFMPEG)
CONFIGURE_ARGS+= --with-ffmpeg
.if defined(WITH_TAGLIB)
CONFIGURE_ARGS+= --with-taglib
.endif
.if defined(WITH_MIDI)
CONFIGURE_ARGS+= --with-midi
.if defined(WITH_UNICODE)
WX_UNICODE= yes
CONFIGURE_ARGS+= --enable-unicode
.endif
.if defined(WITH_VAMP)
CONFIGURE_ARGS+= --with-libvamp
.endif
.if defined(WITH_VORBIS)
CONFIGURE_ARGS+= --with-libvorbis
.endif
.include <bsd.port.post.mk>

View File

@ -1,5 +1,5 @@
--- lib-src/libnyquist/nyquist/cmt/cext.h 2009-07-15 20:27:36.000000000 -0700
+++ lib-src/libnyquist/nyquist/cmt/cext.hcext.h 2009-07-19 00:37:45.000000000 -0700
+++ lib-src/libnyquist/nyquist/cmt/cext.h 2009-07-19 00:37:45.000000000 -0700
@@ -58,7 +58,7 @@
#include <malloc.h>

View File

@ -16,4 +16,3 @@
/* Apple CC */
#ifdef __APPLE__
#define NNODES 2000