1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/audio/ardour5/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

113 lines
4.8 KiB
Makefile

# Created by: Michael Beer <beerml@sigma6audio.de>
# $FreeBSD$
PORTNAME= ardour5
PORTVERSION= 5.12.0
PORTREVISION= 8
CATEGORIES= audio
MASTER_SITES= https://github.com/beerml/ardour_releases/raw/master/
# The original master side points to the latest release only:
# MASTER_SITES= https://community.ardour.org/srctar/
DISTNAME= Ardour-${PORTVERSION}
MAINTAINER= beerml@sigma6audio.de
COMMENT= Multichannel digital audio workstation
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= lv2>=1.14.0:audio/lv2 itstool>2.0.0:textproc/itstool
LIB_DEPENDS= libserd-0.so:devel/serd \
libsord-0.so:devel/sord \
libsratom-0.so:audio/sratom \
liblilv-0.so:audio/lilv \
libsuil-0.so:audio/suil \
libaubio.so:audio/aubio \
librubberband.so:audio/rubberband \
liblo.so:audio/liblo \
liblrdf.so:textproc/liblrdf \
libjack.so:audio/jack \
libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libboost_date_time.so:devel/boost-libs \
libvamp-hostsdk.so:audio/vamp-plugin-sdk \
libsamplerate.so:audio/libsamplerate \
libsndfile.so:audio/libsndfile \
libtag.so:audio/taglib \
libfftw3f.so:math/fftw3-float \
libcurl.so:ftp/curl \
libogg.so:audio/libogg \
libFLAC.so:audio/flac
USES= compiler:c++11-lang desktop-file-utils gettext libarchive \
pkgconfig python:2.7,build readline:port tar:bzip2 waf
USE_CXXSTD= c++11
USE_XORG= x11
USE_GNOME= atk cairo cairomm gdkpixbuf2 glib20 glibmm gtk20 gtkmm24 pango
USE_LDCONFIG= yes
INSTALLS_ICONS= yes
BROKEN_aarch64= fails to configure: Could not find the program gas,as,gcc
BROKEN_powerpc64= fails to compile: configuration_variable.cc: 'strtof' is not a member of 'std'
PLIST_SUB= ARDOURVERSION=${PORTVERSION}
CONFIGURE_ARGS= --optimize --ptformat --freedesktop --no-phone-home \
--with-backends=jack,dummy --internal-shared-libs
post-patch:
@${REINPLACE_CMD} -e 's/obj\.use = '\''libsmf libpbd'\''/obj\.use = '\''libsmf_internal libpbd'\''/g' ${WRKSRC}/libs/evoral/wscript
@${REINPLACE_CMD} -e 's/libsmf\.name = '\''libsmf'\''/libsmf\.name = '\''libsmf_internal'\''/g' ${WRKSRC}/libs/evoral/wscript
@${REINPLACE_CMD} -e 's/libsmf\.target = '\''smf'\''/libsmf\.target = '\''smf_internal'\''/g' ${WRKSRC}/libs/evoral/wscript
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/appdata
@${MKDIR} ${STAGEDIR}${PREFIX}/share/applications
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/22x22/apps
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/512x512/apps
@${CP} ${WRKSRC}/build/gtk2_ardour/ardour5.appdata.xml \
${STAGEDIR}${PREFIX}/share/appdata/ardour5.appdata.xml
@${CP} ${WRKSRC}/build/gtk2_ardour/ardour5.desktop \
${STAGEDIR}${PREFIX}/share/applications/ardour5.desktop
@${CP} ${STAGEDIR}${PREFIX}/share/ardour5/resources/Ardour-icon_16px.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/ardour5.png
@${CP} ${STAGEDIR}${PREFIX}/share/ardour5/resources/Ardour-icon_22px.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/22x22/apps/ardour5.png
@${CP} ${STAGEDIR}${PREFIX}/share/ardour5/resources/Ardour-icon_32px.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/ardour5.png
@${CP} ${STAGEDIR}${PREFIX}/share/ardour5/resources/Ardour-icon_48px.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/ardour5.png
@${CP} ${STAGEDIR}${PREFIX}/share/ardour5/resources/Ardour-icon_256px.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/ardour5.png
@${CP} ${STAGEDIR}${PREFIX}/share/ardour5/resources/Ardour-icon_512px.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/512x512/apps/ardour5.png
@${FIND} ${STAGEDIR}${PREFIX}/lib/${PORTNAME} \
-name '*.so*' -exec ${STRIP_CMD} {} +
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ardour5/sanityCheck
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ardour5/utils/ardour5-copy-mixer
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ardour5/utils/ardour5-export
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ardour5/ardour-exec-wrapper
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ardour5/ardour-vst-scanner
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ardour5/luasession
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ardour5/ardour-${PORTVERSION}
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ardour5/utils/ardour5-fix_bbtppq
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ardour5/hardour-${PORTVERSION}
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
WITH_ARCH_FLAGS= --arch='-msse -mfpmath=sse' --dist-target=i386
.elif ${ARCH} == "amd64"
WITH_ARCH_FLAGS= --arch='-msse -mfpmath=sse' --dist-target=x86_64
.endif
.if defined(WITH_ARCH_FLAGS)
CONFIGURE_ARGS+= ${WITH_ARCH_FLAGS}
.endif
.include <bsd.port.post.mk>