aboutsummaryrefslogtreecommitdiffstats
path: root/audio/audacity
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2013-10-17 22:30:19 +0800
committerdanilo <danilo@FreeBSD.org>2013-10-17 22:30:19 +0800
commitf07ecaed4942908b23bc815910c6950fa0751241 (patch)
treef02c1ab5e4fd09a35e401659ee225567fdbd7627 /audio/audacity
parent8da68f0a5b7cefd04be9155d5060a0596a8a951c (diff)
downloadfreebsd-ports-gnome-f07ecaed4942908b23bc815910c6950fa0751241.tar.gz
freebsd-ports-gnome-f07ecaed4942908b23bc815910c6950fa0751241.tar.zst
freebsd-ports-gnome-f07ecaed4942908b23bc815910c6950fa0751241.zip
- Disable SSE if the arch is powerpc [1]
- Add stage support - Use options helpers PR: ports/182986 Submitted by: Jack <xxjack12xx@gmail.com> (maintainer) [1]
Diffstat (limited to 'audio/audacity')
-rw-r--r--audio/audacity/Makefile142
-rw-r--r--audio/audacity/pkg-plist1
2 files changed, 39 insertions, 104 deletions
diff --git a/audio/audacity/Makefile b/audio/audacity/Makefile
index 66b6b7909d3e..232f24fb93ca 100644
--- a/audio/audacity/Makefile
+++ b/audio/audacity/Makefile
@@ -19,15 +19,12 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-src-${PORTVERSION}
USE_AUTOTOOLS= aclocal autoconf
GNU_CONFIGURE= yes
-NO_STAGE= yes
USES= gmake gettext pkgconfig
USE_XZ= yes
USE_WX= 2.8
WX_UNICODE= yes
WX_COMPS= wx
INSTALLS_ICONS= yes
-MAN1= audacity.1
-MANCOMPRESSED= yes
PORTDOCS= README.txt
OPTIONS_DEFINE= DOCS FFMPEG FLAC ID3TAG JACK LADSPA MAD NYQUIST PORTMIXER \
@@ -45,16 +42,10 @@ TAGLIB_DESC= Use TagLib for metadata support
TWOLAME_DESC= Use libtwolame for MP2 export support
VAMP_DESC= Vamp plug-in support
-.include <bsd.port.options.mk>
-
-.if ${ARCH} == "i386"
-SSE_CFLAGS= -mno-sse -mno-sse2
-.endif
-
ACLOCAL_ARGS+= -I ${WRKSRC}/m4
AUTOCONF_ARGS+= -I ${WRKSRC}/m4
-CONFIGURE_ARG+ =--destdir=/
+CONFIGURE_ARG+= --destdir=/
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CPPFLAGS+= -I${WRKSRC}/lib-src/portsmf -I${WRKSRC}/lib-src/portaudio-v19/include -I${LOCALBASE}/include ${SSE_CFLAGS} ${PTHREAD_CFLAGS}
CXXFLAGS+= -I${WRKSRC}/lib-src/portsmf -I${WRKSRC}/lib-src/portaudio-v19/include -I${LOCALBASE}/include ${SSE_CFLAGS} ${PTHREAD_CFLAGS}
@@ -62,111 +53,56 @@ CFLAGS+= -I${WRKSRC}/lib-src/portsmf -I${WRKSRC}/lib-src/portaudio-v19/include -
CONFIGURE_ENV+= WX_CONFIG="${WX_CONFIG}"
-CONFIGURE_ARGS+= --with-lib-preference="local system"
-CONFIGURE_ARGS+= --with-portaudio
-CONFIGURE_ARGS+= --enable-unicode
+CONFIGURE_ARGS+= --with-lib-preference="local system" \
+ --with-portaudio --enable-unicode
-.if ${PORT_OPTIONS:MFFMPEG}
-RUN_DEPENDS+= ffmpeg:${PORTSDIR}/multimedia/ffmpeg
-CONFIGURE_ARGS+= --with-ffmpeg
-.else
-CONFIGURE_ARGS+= --without-ffmpeg
-.endif
+FFMPEG_CONFIGURE_WITH= ffmpeg
+FFMPEG_RUN_DEPENDS= ffmpeg:${PORTSDIR}/multimedia/ffmpeg
-.if ${PORT_OPTIONS:MFLAC}
-LIB_DEPENDS+= libFLAC.so:${PORTSDIR}/audio/flac
-CONFIGURE_ARGS+= --with-libflac
-.else
-CONFIGURE_ARGS+= --without-libflac
-.endif
+FLAC_CONFIGURE_WITH= libflac
+FLAC_LIB_DEPENDS= libFLAC.so:${PORTSDIR}/audio/flac
-.if ${PORT_OPTIONS:MID3TAG}
-LIB_DEPENDS+= libid3tag.so:${PORTSDIR}/audio/libid3tag
-CONFIGURE_ARGS+= --with-libid3tag
-.else
-CONFIGURE_ARGS+= --without-libid3tag
-.endif
+ID3TAG_CONFIGURE_WITH= libid3tag
+ID3TAG_LIB_DEPENDS= libid3tag.so:${PORTSDIR}/audio/libid3tag
-.if ${PORT_OPTIONS:MJACK}
-LIB_DEPENDS+= libjack.so:${PORTSDIR}/audio/jack
-CONFIGURE_ARGS+= --with-jack
-.else
-CONFIGURE_ARGS+= --without-jack
-.endif
+JACK_CONFIGURE_WITH= jack
+JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack
-.if ${PORT_OPTIONS:MLADSPA}
-RUN_DEPENDS+= listplugins:${PORTSDIR}/audio/ladspa
-CONFIGURE_ARGS+= --enable-ladspa
-.else
-CONFIGURE_ARGS+= --disable-ladspa
-.endif
+LADSPA_CONFIGURE_ENABLE= ladspa
+LADSPA_RUN_DEPENDS= listplugins:${PORTSDIR}/audio/ladspa
-.if ${PORT_OPTIONS:MMAD}
-LIB_DEPENDS+= libmad.so:${PORTSDIR}/audio/libmad
-CONFIGURE_ARGS+= --with-libmad
-.else
-CONFIGURE_ARGS+= --without-libmad
-.endif
+MAD_CONFIGURE_WITH= libmad
+MAD_LIB_DEPENDS= libmad.so:${PORTSDIR}/audio/libmad
-.if ${PORT_OPTIONS:MNYQUIST}
-CONFIGURE_ARGS+= --enable-nyquist
-.else
-CONFIGURE_ARGS+= --disable-nyquist
-.endif
+NYQUIST_CONFIGURE_ENABLE= nyquist
-.if ${PORT_OPTIONS:MPORTMIXER}
-CONFIGURE_ARGS+= --with-portmixer
-.else
-CONFIGURE_ARGS+= --without-portmixer
-.endif
+PORTMIXER_CONFIGURE_WITH= portmixer
-.if ${PORT_OPTIONS:MSAMPLERATE}
-LIB_DEPENDS+= libsamplerate.so:${PORTSDIR}/audio/libsamplerate
-CONFIGURE_ARGS+= --with-libsamplerate
-.else
-USES+= cmake
-CONFIGURE_ARGS+= --without-libsamplerate
-.endif
+SAMPLERATE_CONFIGURE_WITH= libsamplerate
+SAMPLERATE_LIB_DEPENDS= libsamplerate.so:${PORTSDIR}/audio/libsamplerate
-.if ${PORT_OPTIONS:MSBSMS}
-CONFIGURE_ARGS+= --with-sbsms
-.else
-CONFIGURE_ARGS+= --without-sbsms
-.endif
+SBSMS_CONFIGURE_WITH= sbsms
-.if ${PORT_OPTIONS:MSSE}
-CONFIGURE_ARGS+= --with-sse
-.endif
+SSE_CONFIGURE_WITH= sse
-.if ${PORT_OPTIONS:MSOXR}
-CONFIGURE_ARGS+= --with-libsoxr
-.endif
+SOXR_CONFIGURE_WITH= libsoxr
+SOXR_BUILD_DEPENDS= cmake:${PORTSDIR}/devel/cmake
-.if ${PORT_OPTIONS:MTWOLAME}
-LIB_DEPENDS+= libtwolame.so:${PORTSDIR}/audio/twolame
-CONFIGURE_ARGS+= --with-libtwolame
-.else
-CONFIGURE_ARGS+= --without-libtwolame
-.endif
+TWOLAME_CONFIGURE_WITH= libtwolame
+TWOLAME_LIB_DEPENDS= libtwolame.so:${PORTSDIR}/audio/twolame
-.if ${PORT_OPTIONS:MTAGLIB}
-LIB_DEPENDS+= libtag.so:${PORTSDIR}/audio/taglib
-CONFIGURE_ARGS+= --with-taglib
-.else
-CONFIGURE_ARGS+= --without-taglib
-.endif
+TAGLIB_CONFIGURE_WITH= taglib
+TAGLIB_LIB_DEPENDS= libtag.so:${PORTSDIR}/audio/taglib
-.if ${PORT_OPTIONS:MVAMP}
-CONFIGURE_ARGS+= --with-libvamp
-.else
-CONFIGURE_ARGS+= --without-libvamp
-.endif
+VAMP_CONFIGURE_WITH= libvamp
+
+VORBIS_CONFIGURE_WITH= libvorbis
+VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
+
+.include <bsd.port.pre.mk>
-.if ${PORT_OPTIONS:MVORBIS}
-LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis
-CONFIGURE_ARGS+= --with-libvorbis
-.else
-CONFIGURE_ARGS+= --without-libvorbis
+.if ${ARCH} == "i386" || ${ARCH} == "powerpc"
+SSE_CFLAGS= -mno-sse -mno-sse2
.endif
post-patch:
@@ -185,9 +121,7 @@ post-patch:
@${REINPLACE_CMD} -e 's|inline void|static inline void|' ${WRKSRC}/lib-src/libnyquist/nyquist/ffts/src/fftlib.c
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/audio/audacity/pkg-plist b/audio/audacity/pkg-plist
index f94495a57e92..b090fdf76a12 100644
--- a/audio/audacity/pkg-plist
+++ b/audio/audacity/pkg-plist
@@ -1,4 +1,5 @@
bin/audacity
+man/man1/audacity.1.gz
share/applications/audacity.desktop
%%DATADIR%%/EQDefaultCurves.xml
%%DATADIR%%/nyquist/bug.lsp