summaryrefslogtreecommitdiff
path: root/audio/ardour
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2019-12-21 23:27:03 +0000
committerjoerg <joerg@pkgsrc.org>2019-12-21 23:27:03 +0000
commit0d944e94980bde30c290e9993350bce2ca75f88a (patch)
tree43fc8e7ab468ccb076ca475d2d2610c25688fcf4 /audio/ardour
parenta83c07a71c7a0d76aef38de8a52beb30e2c9cca1 (diff)
downloadpkgsrc-0d944e94980bde30c290e9993350bce2ca75f88a.tar.gz
Patch local WAF copy to run ${CXX} with -x c++ when detecting it.
Otherwise clang will bail out on - as it is considered a C source and -std=c++11 as injected by the wrappers conflict.
Diffstat (limited to 'audio/ardour')
-rw-r--r--audio/ardour/Makefile6
-rw-r--r--audio/ardour/distinfo3
-rw-r--r--audio/ardour/patches/patch-.waf-1.6.11-06ee4b7efbeab1252ed3b11499834d2a_waflib_Tools_c__config.py16
3 files changed, 23 insertions, 2 deletions
diff --git a/audio/ardour/Makefile b/audio/ardour/Makefile
index b5b19596c4b..a81d4d1809b 100644
--- a/audio/ardour/Makefile
+++ b/audio/ardour/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2019/12/12 16:19:48 nia Exp $
+# $NetBSD: Makefile,v 1.33 2019/12/21 23:27:03 joerg Exp $
DISTNAME= Ardour-5.12.0
PKGNAME= ${DISTNAME:tl}
@@ -73,6 +73,10 @@ PYTHON_FOR_BUILD_ONLY= tool
INSTALLATION_DIRS+= share/appdata
INSTALLATION_DIRS+= share/applications
+pre-patch:
+ cd ${WRKSRC} && ${PYTHONBIN} waf --help > /dev/null
+ rm ${WRKSRC}/.waf-1.6.11-06ee4b7efbeab1252ed3b11499834d2a/waflib/Tools/c_config.pyc
+
post-install:
${INSTALL_DATA} ${WRKSRC}/build/gtk2_ardour/ardour5.appdata.xml \
${DESTDIR}${PREFIX}/share/appdata
diff --git a/audio/ardour/distinfo b/audio/ardour/distinfo
index 67cc2eebbfc..fef54b3dbbf 100644
--- a/audio/ardour/distinfo
+++ b/audio/ardour/distinfo
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.4 2019/12/02 13:34:33 nia Exp $
+$NetBSD: distinfo,v 1.5 2019/12/21 23:27:04 joerg Exp $
SHA1 (Ardour-5.12.0.tar.bz2) = 8bf06a17638e89531cab14af67cfd59d7185518f
RMD160 (Ardour-5.12.0.tar.bz2) = 71c25f13445f4036ff7127d071d8c1e0851d5eb8
SHA512 (Ardour-5.12.0.tar.bz2) = c4b4332bddb2406924119c181622801725f4a7dd7741c1a66ddbc2236542764b786337da2f0a751f3bbe6e0389b5da765eb19b14a6a90c8f8a7fd68231e5067d
Size (Ardour-5.12.0.tar.bz2) = 8852834 bytes
+SHA1 (patch-.waf-1.6.11-06ee4b7efbeab1252ed3b11499834d2a_waflib_Tools_c__config.py) = 6b6c776485def8e57ab1ec7fb4b8207ac6d3094a
SHA1 (patch-gtk2__ardour_ardour__ui.cc) = c8bbd019ecab91081520bdfa999f13f96c9dc39d
SHA1 (patch-gtk2__ardour_wscript) = f78f4028e20d9d917fd1251618136c51ce3fa28a
SHA1 (patch-libs_backends_jack_jack__audiobackend.cc) = 9fc4201948a6e88711d18d9218e1dacc1dd2700b
diff --git a/audio/ardour/patches/patch-.waf-1.6.11-06ee4b7efbeab1252ed3b11499834d2a_waflib_Tools_c__config.py b/audio/ardour/patches/patch-.waf-1.6.11-06ee4b7efbeab1252ed3b11499834d2a_waflib_Tools_c__config.py
new file mode 100644
index 00000000000..8fe940f7f8c
--- /dev/null
+++ b/audio/ardour/patches/patch-.waf-1.6.11-06ee4b7efbeab1252ed3b11499834d2a_waflib_Tools_c__config.py
@@ -0,0 +1,16 @@
+$NetBSD: patch-.waf-1.6.11-06ee4b7efbeab1252ed3b11499834d2a_waflib_Tools_c__config.py,v 1.1 2019/12/21 23:27:04 joerg Exp $
+
+When detecting the C++ compiler, force C++ mode for stdin as the wrappers
+add -std=c++11 and that breaks for C input.
+
+--- .waf-1.6.11-06ee4b7efbeab1252ed3b11499834d2a/waflib/Tools/c_config.py.orig 2019-12-21 19:28:02.658101225 +0000
++++ .waf-1.6.11-06ee4b7efbeab1252ed3b11499834d2a/waflib/Tools/c_config.py
+@@ -553,7 +553,7 @@ def cxx_load_tools(conf):
+ conf.env.DEST_OS=Utils.unversioned_sys_platform()
+ conf.load('cxx')
+ def get_cc_version(conf,cc,gcc=False,icc=False):
+- cmd=cc+['-dM','-E','-']
++ cmd=cc+(['-x','c++']if cc[0].endswith('+')else[])+['-dM','-E','-']
+ env=conf.env.env or None
+ try:
+ p=Utils.subprocess.Popen(cmd,stdin=Utils.subprocess.PIPE,stdout=Utils.subprocess.PIPE,stderr=Utils.subprocess.PIPE,env=env)