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
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 20
|
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
|
|
|
|
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS= libFOX-1.4.so:${PORTSDIR}/x11-toolkits/fox14
|
2005-05-16 21:23:46 +02:00
|
|
|
|
2013-03-08 12:32:11 +01:00
|
|
|
USES= bison
|
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
|
2014-07-25 21:44:20 +02:00
|
|
|
LIBS+= -lX11
|
2011-07-09 22:20:51 +02:00
|
|
|
CONFIGURE_ARGS= --disable-alsa
|
2012-07-06 09:31:02 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
Fix compilation problems with Clang (inaccurate usage of type qualifiers,
lack of this->, some missing #include's) that could be patched via simple
sed(1) calls and one trivial patch. Linking still fails, and so does the
build with GCC 4.6+; this would be fixed in a separate commit, along with
other issues with the port (dependency on restricted LAME codec, usage of
somewhat old FOX v1.4).
While here, convert large number of optional LIB_DEPENDS conditionals to
helper knobs, reword LARGEFILE_DESC, do not bogusly augment CONFIGURE_ENV,
and stagify.
For users that have ReZound package installed, this commit does not bring
any visible changes, and should not be merged to any "stable" or quarterly
branches alone.
2013-12-25 12:27:31 +01:00
|
|
|
CONFIGURE_ENV= ac_cv_path_RESWRAP=${LOCALBASE}/bin/fox-1.4/reswrap
|
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
|
|
|
|
|
Fix compilation problems with Clang (inaccurate usage of type qualifiers,
lack of this->, some missing #include's) that could be patched via simple
sed(1) calls and one trivial patch. Linking still fails, and so does the
build with GCC 4.6+; this would be fixed in a separate commit, along with
other issues with the port (dependency on restricted LAME codec, usage of
somewhat old FOX v1.4).
While here, convert large number of optional LIB_DEPENDS conditionals to
helper knobs, reword LARGEFILE_DESC, do not bogusly augment CONFIGURE_ENV,
and stagify.
For users that have ReZound package installed, this commit does not bring
any visible changes, and should not be merged to any "stable" or quarterly
branches alone.
2013-12-25 12:27:31 +01:00
|
|
|
LARGEFILE_DESC= Use 64-bit file I/O
|
2012-12-16 15:25:27 +01:00
|
|
|
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
|
|
|
|
Fix compilation problems with Clang (inaccurate usage of type qualifiers,
lack of this->, some missing #include's) that could be patched via simple
sed(1) calls and one trivial patch. Linking still fails, and so does the
build with GCC 4.6+; this would be fixed in a separate commit, along with
other issues with the port (dependency on restricted LAME codec, usage of
somewhat old FOX v1.4).
While here, convert large number of optional LIB_DEPENDS conditionals to
helper knobs, reword LARGEFILE_DESC, do not bogusly augment CONFIGURE_ENV,
and stagify.
For users that have ReZound package installed, this commit does not bring
any visible changes, and should not be merged to any "stable" or quarterly
branches alone.
2013-12-25 12:27:31 +01:00
|
|
|
LARGEFILE_CONFIGURE_ON= --enable-largefile
|
|
|
|
JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack
|
|
|
|
AUDIOFILE_LIB_DEPENDS= libaudiofile.so:${PORTSDIR}/audio/libaudiofile
|
|
|
|
PORTAUDIO_LIB_DEPENDS= libportaudio.so:${PORTSDIR}/audio/portaudio
|
|
|
|
OGG_LIB_DEPENDS= libogg.so:${PORTSDIR}/audio/libogg
|
|
|
|
VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
|
|
|
|
FLAC_LIB_DEPENDS= libFLAC.so:${PORTSDIR}/audio/flac
|
|
|
|
FFTW_LIB_DEPENDS= libfftw.so:${PORTSDIR}/math/fftw
|
|
|
|
SOUNDTOUCH_LIB_DEPENDS= libSoundTouch.so:${PORTSDIR}/audio/soundtouch
|
|
|
|
LADSPA_RUN_DEPENDS= ${LOCALBASE}/lib/ladspa/amp.so:${PORTSDIR}/audio/ladspa
|
|
|
|
LADSPA_CONFIGURE_OFF= --disable-ladspa
|
|
|
|
LAME_RUN_DEPENDS= lame:${PORTSDIR}/audio/lame
|
|
|
|
CDRDAO_RUN_DEPENDS= cdrdao:${PORTSDIR}/sysutils/cdrdao
|
2005-05-16 21:23:46 +02:00
|
|
|
|
Fix compilation problems with Clang (inaccurate usage of type qualifiers,
lack of this->, some missing #include's) that could be patched via simple
sed(1) calls and one trivial patch. Linking still fails, and so does the
build with GCC 4.6+; this would be fixed in a separate commit, along with
other issues with the port (dependency on restricted LAME codec, usage of
somewhat old FOX v1.4).
While here, convert large number of optional LIB_DEPENDS conditionals to
helper knobs, reword LARGEFILE_DESC, do not bogusly augment CONFIGURE_ENV,
and stagify.
For users that have ReZound package installed, this commit does not bring
any visible changes, and should not be merged to any "stable" or quarterly
branches alone.
2013-12-25 12:27:31 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2005-05-16 21:23:46 +02:00
|
|
|
|
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
|
2013-04-26 12:44:28 +02:00
|
|
|
USES+= gettext
|
2005-05-16 21:23:46 +02:00
|
|
|
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
|
Fix compilation problems with Clang (inaccurate usage of type qualifiers,
lack of this->, some missing #include's) that could be patched via simple
sed(1) calls and one trivial patch. Linking still fails, and so does the
build with GCC 4.6+; this would be fixed in a separate commit, along with
other issues with the port (dependency on restricted LAME codec, usage of
somewhat old FOX v1.4).
While here, convert large number of optional LIB_DEPENDS conditionals to
helper knobs, reword LARGEFILE_DESC, do not bogusly augment CONFIGURE_ENV,
and stagify.
For users that have ReZound package installed, this commit does not bring
any visible changes, and should not be merged to any "stable" or quarterly
branches alone.
2013-12-25 12:27:31 +01:00
|
|
|
# Fix some sloppy C++ coding which upsets Clang
|
|
|
|
${REINPLACE_CMD} -e '/&string_to_anytype/s,static ,,' \
|
|
|
|
${WRKSRC}/src/misc/CNestedDataFile/anytype.h
|
|
|
|
${REINPLACE_CMD} -e 's,push_back((,this->&,' \
|
|
|
|
${WRKSRC}/src/misc/auto_array.h
|
|
|
|
${REINPLACE_CMD} -e 's,overflowWrite(,this->&,' \
|
|
|
|
${WRKSRC}/src/PoolFile/TPoolAccesser.cpp
|
|
|
|
${REINPLACE_CMD} -e 's,map<string,map<const string,' \
|
|
|
|
${WRKSRC}/src/PoolFile/TPoolFile.cpp
|
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>
|