2013-09-20 16:36:35 +02:00
|
|
|
# Created by: Marc van Woerkom <3d@FreeBSD.org>
|
2002-05-29 20:30:14 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= audacity
|
2015-11-22 21:11:52 +01:00
|
|
|
PORTVERSION= 2.1.1
|
2002-05-29 20:30:14 +02:00
|
|
|
CATEGORIES= audio
|
2015-11-22 21:11:52 +01:00
|
|
|
MASTER_SITES= https://github.com/audacity/audacity/archive/
|
|
|
|
DISTNAME= Audacity-${PORTVERSION}
|
2002-05-29 20:30:14 +02:00
|
|
|
|
2012-05-30 22:43:12 +02:00
|
|
|
MAINTAINER= xxjack12xx@gmail.com
|
2013-01-27 20:10:34 +01:00
|
|
|
COMMENT= GUI editor for digital audio waveforms
|
2002-05-29 20:30:14 +02:00
|
|
|
|
2012-05-30 22:43:12 +02:00
|
|
|
LICENSE= GPLv2
|
2015-05-17 13:57:28 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
2003-12-16 00:31:07 +01:00
|
|
|
|
2013-12-12 20:30:43 +01:00
|
|
|
LIB_DEPENDS= libsndfile.so:${PORTSDIR}/audio/libsndfile
|
|
|
|
|
2015-11-22 21:11:52 +01:00
|
|
|
BUILD_DEPENDS+= autogen:${PORTSDIR}/devel/autogen \
|
|
|
|
bash:${PORTSDIR}/shells/bash \
|
|
|
|
cmake:${PORTSDIR}/devel/cmake
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-Audacity-${PORTVERSION}
|
2012-05-30 22:43:12 +02:00
|
|
|
|
2002-05-29 20:30:14 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2015-11-22 21:11:52 +01:00
|
|
|
USES= compiler:c11 cpe desktop-file-utils gmake pkgconfig shared-mime-info shebangfix dos2unix
|
|
|
|
NLS_USES= gettext
|
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
|
|
OPTIONS_SUB= yes
|
2015-09-14 23:04:11 +02:00
|
|
|
USE_WX= 2.8+
|
2012-05-30 22:43:12 +02:00
|
|
|
WX_COMPS= wx
|
|
|
|
INSTALLS_ICONS= yes
|
2013-01-27 20:10:34 +01:00
|
|
|
PORTDOCS= README.txt
|
2015-11-22 21:11:52 +01:00
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= NLS DEBUG DOCS FLAC ID3TAG LADSPA LAME MAD MIDI \
|
|
|
|
SBSMS SOUNDTOUCH TWOLAME VAMP VORBIS VST
|
|
|
|
OPTIONS_DEFAULT= FLAC ID3TAG LADSPA MAD MIDI \
|
|
|
|
SBSMS SOUNDTOUCH TWOLAME VAMP VORBIS VST
|
2005-12-12 21:02:40 +01:00
|
|
|
|
2015-08-24 10:30:17 +02:00
|
|
|
OPTIONS_DEFINE_amd64= SSE
|
|
|
|
OPTIONS_DEFINE_i386= SSE
|
|
|
|
OPTIONS_DEFAULT_amd64= SSE
|
|
|
|
OPTIONS_DEFAULT_i386= ${MACHINE_CPU:tu:MSSE}
|
2013-10-25 18:42:26 +02:00
|
|
|
|
|
|
|
DEBUG_DESC= Enable debug support
|
|
|
|
LAME_DESC= Use lame for import and export support
|
|
|
|
MAD_DESC= Use libmad for mp2/3 decoding support
|
|
|
|
MIDI_DESC= Use portSMF for Midi support
|
2013-01-27 20:10:34 +01:00
|
|
|
SBSMS_DESC= Use libsbsms for pitch and tempo changing
|
2013-10-25 18:42:26 +02:00
|
|
|
SOUNDTOUCH_DESC= Use libSoundTouch for pitch and tempo changing
|
2012-07-04 14:23:04 +02:00
|
|
|
TAGLIB_DESC= Use TagLib for metadata support
|
|
|
|
TWOLAME_DESC= Use libtwolame for MP2 export support
|
|
|
|
VAMP_DESC= Vamp plug-in support
|
2015-04-05 08:58:00 +02:00
|
|
|
VST_DESC= VST plug-in support
|
2012-05-30 22:43:12 +02:00
|
|
|
|
|
|
|
CONFIGURE_ENV+= WX_CONFIG="${WX_CONFIG}"
|
2002-05-29 20:30:14 +02:00
|
|
|
|
2015-11-22 21:11:52 +01:00
|
|
|
CONFIGURE_ARGS+= --with-lib-preference="local system" --without-lv2 --without-ffmpeg \
|
|
|
|
--enable-portaudio --enable-unicode --with-libsoxr
|
2013-10-25 18:42:26 +02:00
|
|
|
|
2015-11-22 21:11:52 +01:00
|
|
|
CONFIGURE_SHELL?=${LOCALBASE}/bin/bash
|
2013-10-25 18:42:26 +02:00
|
|
|
|
2015-11-22 21:11:52 +01:00
|
|
|
DEBUG_CONFIGURE_WITH= debug
|
2002-05-29 20:30:14 +02:00
|
|
|
|
2013-10-17 16:30:19 +02:00
|
|
|
FLAC_CONFIGURE_WITH= libflac
|
|
|
|
FLAC_LIB_DEPENDS= libFLAC.so:${PORTSDIR}/audio/flac
|
2002-05-29 20:30:14 +02:00
|
|
|
|
2013-10-17 16:30:19 +02:00
|
|
|
ID3TAG_CONFIGURE_WITH= libid3tag
|
|
|
|
ID3TAG_LIB_DEPENDS= libid3tag.so:${PORTSDIR}/audio/libid3tag
|
2012-05-30 22:43:12 +02:00
|
|
|
|
2013-10-17 16:30:19 +02:00
|
|
|
JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack
|
2012-05-30 22:43:12 +02:00
|
|
|
|
2013-10-17 16:30:19 +02:00
|
|
|
LADSPA_CONFIGURE_ENABLE= ladspa
|
|
|
|
LADSPA_RUN_DEPENDS= listplugins:${PORTSDIR}/audio/ladspa
|
2012-05-30 22:43:12 +02:00
|
|
|
|
2013-10-17 16:30:19 +02:00
|
|
|
MAD_CONFIGURE_WITH= libmad
|
|
|
|
MAD_LIB_DEPENDS= libmad.so:${PORTSDIR}/audio/libmad
|
2012-05-30 22:43:12 +02:00
|
|
|
|
2013-10-25 18:42:26 +02:00
|
|
|
MIDI_CONFIGURE_WITH= midi
|
|
|
|
|
|
|
|
LAME_CONFIGURE_WITH= lame
|
|
|
|
LAME_LIB_DEPENDS= libmp3lame.so:${PORTSDIR}/audio/lame
|
|
|
|
|
2013-10-17 16:30:19 +02:00
|
|
|
SBSMS_CONFIGURE_WITH= sbsms
|
2012-05-30 22:43:12 +02:00
|
|
|
|
2013-10-25 18:42:26 +02:00
|
|
|
SOUNDTOUCH_CONFIGURE_WITH= soundtouch
|
|
|
|
SOUNDTOUCH_LIB_DEPENDS= libSoundTouch.so:${PORTSDIR}/audio/soundtouch
|
2012-05-30 22:43:12 +02:00
|
|
|
|
2015-08-24 10:30:17 +02:00
|
|
|
SSE_CONFIGURE_ENABLE= sse
|
|
|
|
|
2013-10-17 16:30:19 +02:00
|
|
|
TWOLAME_CONFIGURE_WITH= libtwolame
|
|
|
|
TWOLAME_LIB_DEPENDS= libtwolame.so:${PORTSDIR}/audio/twolame
|
2012-05-30 22:43:12 +02:00
|
|
|
|
2013-10-17 16:30:19 +02:00
|
|
|
VAMP_CONFIGURE_WITH= libvamp
|
|
|
|
|
|
|
|
VORBIS_CONFIGURE_WITH= libvorbis
|
|
|
|
VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
|
|
|
|
|
2015-04-05 08:58:00 +02:00
|
|
|
VST_CONFIGURE_ENABLE= vst
|
|
|
|
|
2015-03-25 22:37:39 +01:00
|
|
|
LDFLAGS+= -lpthread -L${LOCALBASE}/lib
|
|
|
|
CPPFLAGS+= -I${WRKSRC}/lib-src/portsmf
|
|
|
|
CXXFLAGS+= -I${WRKSRC}/lib-src/portsmf
|
|
|
|
CFLAGS+= -I${WRKSRC}/lib-src/portsmf \
|
|
|
|
-I${WRKSRC}/lib-src/portaudio-v19/include \
|
|
|
|
-I${WRKSRC}/lib-src/lame -I${LOCALBASE}/include
|
2012-05-30 22:43:12 +02:00
|
|
|
|
2013-01-27 20:10:34 +01:00
|
|
|
post-install:
|
2013-10-17 16:30:19 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2013-01-27 20:10:34 +01:00
|
|
|
|
2015-08-24 10:30:17 +02:00
|
|
|
.include <bsd.port.mk>
|