macports: fix the clang stdlib fix

This commit is contained in:
Jean-Francois Dockes
2019-10-09 19:35:42 +02:00
parent 0d3dc0fada
commit 0eb6ca8764
2 changed files with 16 additions and 10 deletions
+7 -4
View File
@@ -21,9 +21,9 @@ long_description Recoll is a desktop search tool based on Xapian
homepage http://www.recoll.org/
master_sites ${homepage}
checksums rmd160 88aebac6074f3e6242770348ac30e405975effa6 \
sha256 500d114952aa03c222847df8ecd0f9c58fc1d03b940df72de81e02e52ca905bc \
size 2849390
checksums rmd160 9ccf53ac498e937d37054727e963f57e341c539c \
sha256 dcf74625a7148f04befd99706da8e7b26dab43a1092883abf5211422a15c5385 \
size 2853970
depends_lib port:xapian-core \
port:aspell \
@@ -42,12 +42,15 @@ patchfiles patch-sampleconf-mimeview.diff \
patch-recoll-pro-stdlib.diff
post-patch {
set clang_stdlib ""
if {[string match *clang* ${configure.compiler}]} {
set clang_stdlib -stdlib=${configure.cxx_stdlib}
reinplace "s|@@STDLIB@@|${clang_stdlib}|g" qtgui/recoll.pro.in
}
reinplace "s|@@STDLIB@@|${clang_stdlib}|g" qtgui/recoll.pro.in
}
# Note: this is probably not the right way to configure QMAKE
configure.args QMAKE=${prefix}/libexec/qt5/bin/qmake \
--without-x \