2012-12-16 15:25:27 +01:00
|
|
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
2005-05-16 21:23:46 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= rezound
|
2007-06-13 13:25:59 +02:00
|
|
|
DISTVERSION= 0.12.3beta
|
2012-07-19 22:15:37 +02:00
|
|
|
PORTREVISION= 16
|
2005-05-16 21:23:46 +02:00
|
|
|
CATEGORIES= audio
|
2009-08-26 10:38:41 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/ReZound/${DISTVERSION}
|
2005-05-16 21:23:46 +02:00
|
|
|
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
|
|
COMMENT= Graphical audio file editor
|
|
|
|
|
2011-07-09 22:20:51 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2006-06-20 23:02:18 +02:00
|
|
|
LIB_DEPENDS= FOX-1.4:${PORTSDIR}/x11-toolkits/fox14
|
2005-05-16 21:23:46 +02:00
|
|
|
|
2007-10-17 12:13:01 +02:00
|
|
|
USE_BISON= build
|
2005-05-16 21:23:46 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2011-07-09 22:20:51 +02:00
|
|
|
CONFIGURE_ARGS= --disable-alsa
|
2012-07-06 09:31:02 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2005-05-16 21:23:46 +02:00
|
|
|
|
2012-12-16 15:25:27 +01:00
|
|
|
OPTIONS_DEFINE= LARGEFILE JACK AUDIOFILE PORTAUDIO OGG VORBIS FLAC FFTW \
|
|
|
|
SOUNDTOUCH LADSPA LAME CDRDAO DOCS BROKEN_NLS
|
|
|
|
OPTIONS_DEFAULT= AUDIOFILE PORTAUDIO OGG VORBIS FLAC SOUNDTOUCH \
|
|
|
|
LADSPA LAME
|
|
|
|
|
|
|
|
LARGEFILE_DESC= 64-bit file I/O support
|
|
|
|
FFTW_DESC= Use fast Fourier transform routines
|
|
|
|
CDRDAO_DESC= Burning audio files to CD support
|
|
|
|
BROKEN_NLS_DESC= ${NLS_DESC} (broken!)
|
2005-05-16 21:23:46 +02:00
|
|
|
|
2012-12-16 15:25:27 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2005-05-16 21:23:46 +02:00
|
|
|
|
2012-12-16 15:25:27 +01:00
|
|
|
.if ${PORT_OPTIONS:MLARGEFILE}
|
2005-05-16 21:23:46 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-largefile
|
|
|
|
.endif
|
|
|
|
|
2012-12-16 15:25:27 +01:00
|
|
|
.if ${PORT_OPTIONS:MJACK}
|
2012-07-06 09:31:02 +02:00
|
|
|
LIB_DEPENDS+= jack:${PORTSDIR}/audio/jack
|
2005-05-16 21:23:46 +02:00
|
|
|
.endif
|
|
|
|
|
2012-12-16 15:25:27 +01:00
|
|
|
.if ${PORT_OPTIONS:MAUDIOFILE}
|
2012-07-06 09:31:02 +02:00
|
|
|
LIB_DEPENDS+= audiofile:${PORTSDIR}/audio/libaudiofile
|
2005-05-16 21:23:46 +02:00
|
|
|
.endif
|
|
|
|
|
2012-12-16 15:25:27 +01:00
|
|
|
.if ${PORT_OPTIONS:MPORTAUDIO}
|
2012-07-06 09:31:02 +02:00
|
|
|
LIB_DEPENDS+= portaudio:${PORTSDIR}/audio/portaudio
|
2005-05-16 21:23:46 +02:00
|
|
|
.endif
|
|
|
|
|
2012-12-16 15:25:27 +01:00
|
|
|
.if ${PORT_OPTIONS:MOGG}
|
2012-07-06 09:31:02 +02:00
|
|
|
LIB_DEPENDS+= ogg:${PORTSDIR}/audio/libogg
|
2005-05-16 21:23:46 +02:00
|
|
|
.endif
|
|
|
|
|
2012-12-16 15:25:27 +01:00
|
|
|
.if ${PORT_OPTIONS:MVORBIS}
|
2012-07-06 09:31:02 +02:00
|
|
|
LIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis
|
2005-05-16 21:23:46 +02:00
|
|
|
.endif
|
|
|
|
|
2012-12-16 15:25:27 +01:00
|
|
|
.if ${PORT_OPTIONS:MFLAC}
|
2012-07-06 09:31:02 +02:00
|
|
|
LIB_DEPENDS+= FLAC:${PORTSDIR}/audio/flac
|
2005-05-16 21:23:46 +02:00
|
|
|
.endif
|
|
|
|
|
2012-12-16 15:25:27 +01:00
|
|
|
.if ${PORT_OPTIONS:MFFTW}
|
2012-07-06 09:31:02 +02:00
|
|
|
LIB_DEPENDS+= fftw:${PORTSDIR}/math/fftw
|
2005-05-16 21:23:46 +02:00
|
|
|
.endif
|
|
|
|
|
2012-12-16 15:25:27 +01:00
|
|
|
.if ${PORT_OPTIONS:MSOUNDTOUCH}
|
2012-07-06 09:31:02 +02:00
|
|
|
LIB_DEPENDS+= SoundTouch:${PORTSDIR}/audio/soundtouch
|
2005-05-16 21:23:46 +02:00
|
|
|
.endif
|
|
|
|
|
2012-12-16 15:25:27 +01:00
|
|
|
.if ${PORT_OPTIONS:MLADSPA}
|
2005-05-16 21:23:46 +02:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/ladspa/amp.so:${PORTSDIR}/audio/ladspa
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ladspa
|
|
|
|
.endif
|
|
|
|
|
2012-12-16 15:25:27 +01:00
|
|
|
.if ${PORT_OPTIONS:MLAME}
|
2005-05-16 21:23:46 +02:00
|
|
|
RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame
|
|
|
|
.endif
|
|
|
|
|
2012-12-16 15:25:27 +01:00
|
|
|
.if ${PORT_OPTIONS:MCDRDAO}
|
2005-05-16 21:23:46 +02:00
|
|
|
RUN_DEPENDS+= cdrdao:${PORTSDIR}/sysutils/cdrdao
|
|
|
|
.endif
|
|
|
|
|
2012-12-16 15:25:27 +01:00
|
|
|
# NLS support is broken as of recent versions of libstdc++; rezound dies at
|
|
|
|
# startup with "locale::facet::_S_create_c_locale name not valid" exception
|
|
|
|
.if ${PORT_OPTIONS:MBROKEN_NLS} # Enable only if you know what you're doing
|
2005-05-16 21:23:46 +02:00
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch: .SILENT
|
2011-07-09 22:20:51 +02:00
|
|
|
${REINPLACE_CMD} -E '/atoll|round|nearbyint/d' \
|
|
|
|
${WRKSRC}/config/platform/bsd.h
|
2009-08-26 10:38:41 +02:00
|
|
|
${REINPLACE_CMD} -E 's,(_nl_expand_alias \()\),\1...), ; \
|
2011-07-24 14:32:09 +02:00
|
|
|
/^C(XX)?FLAGS=/d ; /CXXFLAGS="\$$CXXFLAGS -[gW]/d ; \
|
|
|
|
/^return /s,\(int\)( n?gettext),(long)\1,' \
|
2009-08-26 10:38:41 +02:00
|
|
|
${WRKSRC}/configure
|
2011-07-24 14:32:09 +02:00
|
|
|
${REINPLACE_CMD} -e 's,WORDS_BIGENDIN,WORDS_BIGENDIAN,' \
|
|
|
|
${WRKSRC}/src/backend/COSSSoundPlayer.cpp
|
2005-05-16 21:23:46 +02:00
|
|
|
${REINPLACE_CMD} -e 's,$$(prefix)/doc,$$(datadir)/doc,' \
|
|
|
|
${WRKSRC}/config/am_include.mk ${WRKSRC}/Makefile.in \
|
|
|
|
${WRKSRC}/src/Makefile.in ${WRKSRC}/src/misc/Makefile.in \
|
|
|
|
${WRKSRC}/src/misc/CNestedDataFile/Makefile.in \
|
|
|
|
${WRKSRC}/src/PoolFile/Makefile.in \
|
|
|
|
${WRKSRC}/src/backend/DSP/Makefile.in \
|
|
|
|
${WRKSRC}/src/backend/Makefile.in \
|
|
|
|
${WRKSRC}/src/backend/File/Makefile.in \
|
|
|
|
${WRKSRC}/src/backend/Edits/Makefile.in \
|
|
|
|
${WRKSRC}/src/backend/Effects/Makefile.in \
|
|
|
|
${WRKSRC}/src/backend/Filters/Makefile.in \
|
|
|
|
${WRKSRC}/src/backend/Looping/Makefile.in \
|
|
|
|
${WRKSRC}/src/backend/Generate/Makefile.in \
|
|
|
|
${WRKSRC}/src/backend/Remaster/Makefile.in \
|
|
|
|
${WRKSRC}/src/backend/LADSPA/Makefile.in \
|
|
|
|
${WRKSRC}/src/frontend_fox/Makefile.in
|
2012-12-16 15:25:27 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2005-05-16 21:23:46 +02:00
|
|
|
${REINPLACE_CMD} -e '/AUTHORS/d; /COPYING/d' ${WRKSRC}/Makefile.in
|
2012-12-16 15:25:27 +01:00
|
|
|
.else
|
|
|
|
${REINPLACE_CMD} -e 's/ install-pkgdocDATA$$//' ${WRKSRC}/Makefile.in
|
2005-05-16 21:23:46 +02:00
|
|
|
.endif
|
|
|
|
|
2012-12-16 15:25:27 +01:00
|
|
|
.include <bsd.port.mk>
|