#51486: qhull requires switches to cmake to build on 10.6.8 ----------------------------+--------------------- Reporter: chrisgorman@… | Owner: mmoll@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: qhull | ----------------------------+--------------------- Comment (by chrisgorman@…): Here's an attempt at getting the build to work on snow leopard. {{{ Index: Portfile =================================================================== --- Portfile (revision 149104) +++ Portfile (working copy) @@ -43,6 +43,26 @@ # see https://trac.macports.org/ticket/51486 compiler.blacklist *gcc-4.2 {*gcc-4.[0-6]} +# qhull requires compiler with -Wno-sign-conversion +# 10.6 doesn't have it by default +platform darwin 10 { + variant gcc47 description {build qhull with gcc47} { + depends_build-append port:gcc47 + configure.args-append -DCMAKE_C_COMPILER=${prefix}/bin/gcc-mp-4.7 \ + -DCMAKE_CXX_COMPILER=${prefix}/bin/g++-mp-4.7 + } + variant gcc48 description {build qhull with gcc48} { + depends_build-append port:gcc48 + configure.args-append -DCMAKE_C_COMPILER=${prefix}/bin/gcc-mp-4.8 \ + -DCMAKE_CXX_COMPILER=${prefix}/bin/g++-mp-4.8 + } + variant gcc5 description {build qhull with gcc5} { + depends_build-append port:gcc5 + configure.args-append -DCMAKE_C_COMPILER=${prefix}/bin/gcc-mp-5 \ + -DCMAKE_CXX_COMPILER=${prefix}/bin/g++-mp-5 + } +default_variants +gcc5 +} configure.args-append -DDOC_INSTALL_DIR=share/doc/qhull -DMAN_INSTALL_DIR=share/man/man1 post-destroot { }}} The default variants is selected as I have gcc5 installed in my development tree and didn't want to install a new compiler to get qhull to build. I will try the other variants out and report back if there are any failures. -- Ticket URL: <https://trac.macports.org/ticket/51486#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X