1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/audio/sonic-visualiser/Makefile
Tijl Coosemans 1bf487d3e7 Fix Qt5 symbol version scripts to put the catch-all clause first. When
a symbol matches multiple clauses the last one takes precedence.  If the
catch-all is last it captures everything.  In the case of Qt5 libraries
this caused all symbols to have a Qt_5 label while some should have
Qt_5_PRIVATE_API.  This only affects lld because GNU ld always gives the
catch-all lowest priority.

Older versions of Qt5Webengine exported some memory allocation symbols from
the bundled Chromium.  Version 5.9 stopped exporting these [1] but the
symbols were kept as weak wrappers for the standard allocation functions to
maintain binary compatibility. [2][3]  The problem is that the call to the
standard function in these weak wrappers is only resolved to the standard
function if there's a call to this standard function in other parts of
Qt5Webengine, because only then is there a non-weak symbol that takes
precedence over the weak one.  If there's no such non-weak symbol the call
in the weak wrapper resolves to the weak wrapper itself creating an infinite
call loop that overflows the stack and causes a crash.  Some of the
allocation functions are variants of C++ new and delete and it probably
depends on the compiler whether these variants are used in other parts of
Qt5Webengine.

Remove the weak wrappers (make them Linux specific).  This isn't binary
compatible but we are already breaking that with the changes to the symbol
versions.

[1] 5c2cbfccf9
[2] 2ed5054e3a
[3] 009f5ebb4b

Bump all ports that depend on Qt5.

PR:		234070
Exp-run by:	antoine
Approved by:	kde (adridg)
2019-01-16 11:13:44 +00:00

87 lines
2.6 KiB
Makefile

# $FreeBSD$
PORTNAME= sonic-visualiser
PORTVERSION= 2.5
PORTREVISION= 4
CATEGORIES= audio
MASTER_SITES= https://code.soundsoftware.ac.uk/attachments/download/1675/
MAINTAINER= uddka@student.kit.edu
COMMENT= Program for viewing and analysing the contents of music audio files
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libfftw3.so:math/fftw3 \
libfftw3f.so:math/fftw3-float \
libsamplerate.so:audio/libsamplerate \
libsndfile.so:audio/libsndfile \
librubberband.so:audio/rubberband \
libserd-0.so:devel/serd \
libsord-0.so:devel/sord \
libvamp-hostsdk.so:audio/vamp-plugin-sdk
USES= autoreconf desktop-file-utils gmake pkgconfig qt:5
GNU_CONFIGURE= yes
USE_QT= buildtools_build core gui network qmake_build testlib widgets xml
USE_XORG= x11
USE_GL= gl
OPTIONS_DEFINE= DEBUG FISHSOUND ID3TAG JACK LRDF MAD OGGZ OSC PORTAUDIO PULSEAUDIO
OPTIONS_DEFAULT= FISHSOUND ID3TAG MAD OGGZ PORTAUDIO
OPTIONS_SUB= yes
DEBUG_CONFIGURE_ENABLE= debug
FISHSOUND_CONFIGURE_WITH= fishsound
FISHSOUND_DESC= FLAC, Speex and Vorbis codecs support
FISHSOUND_LIB_DEPENDS= libfishsound.so:audio/libfishsound \
libogg.so:audio/libogg \
libvorbis.so:audio/libvorbis \
libspeex.so:audio/speex \
libFLAC.so:audio/flac
ID3TAG_CONFIGURE_WITH= id3tag
ID3TAG_LIB_DEPENDS= libid3tag.so:audio/libid3tag
JACK_CONFIGURE_WITH= jack
JACK_LIB_DEPENDS= libjack.so:audio/jack
LRDF_CONFIGURE_WITH= lrdf
LRDF_DESC= Resource Description Framework support
LRDF_LIB_DEPENDS= liblrdf.so:textproc/liblrdf
MAD_CONFIGURE_WITH= mad
MAD_LIB_DEPENDS= libmad.so:audio/libmad
OGGZ_CONFIGURE_WITH= oggz
OGGZ_DESC= Ogg container format support
OGGZ_LIB_DEPENDS= liboggz.so:audio/liboggz \
libogg.so:audio/libogg
OSC_CONFIGURE_WITH= lo
OSC_DESC= OpenSound Control support
OSC_LIB_DEPENDS= liblo.so:audio/liblo
PORTAUDIO_CONFIGURE_WITH= portaudio
PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio
PULSEAUDIO_CONFIGURE_WITH= pulse
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sonic-visualiser ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/sonic-visualiser.desktop ${STAGEDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/x-sonicvisualiser.desktop ${STAGEDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/x-sonicvisualiser-layer.desktop ${STAGEDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/icons/sv-icon.svg ${STAGEDIR}${PREFIX}/share/pixmaps
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
do-install-OSC-on:
${INSTALL_DATA} ${WRKSRC}/README.OSC ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>