Ticket #56430: libpcl_1.8.1_update.diff

File libpcl_1.8.1_update.diff, 2.9 KB (added by ctreleaven (Craig Treleaven), 7 years ago)

update to portfile

  • gis/libpcl/Portfile

    diff --git a/gis/libpcl/Portfile b/gis/libpcl/Portfile
    index a485ed3739..9f6ffcab61 100644
    a b  
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    22
    33PortSystem          1.0
    4 PortGroup           cmake 1.0
     4PortGroup           cmake 1.1
    55PortGroup           github 1.0
    66PortGroup           active_variants 1.1
    77
    8 github.setup        PointCloudLibrary pcl 1.7.2 pcl-
    9 revision            2
     8github.setup        PointCloudLibrary pcl 1.8.1 pcl-
     9checksums           rmd160  b19a542a2ec5aa6ac7d7c52dae03878f86f0d04c \
     10                    sha256  c36d922197dcb2b93461fc7f44240aa0b292615411b6857d9860ac3af443cc2c
     11
    1012name                libpcl
    1113categories          gis graphics science
    1214platforms           darwin
    long_description The Point Cloud Library (PCL) is a standalone, large scale, 
    1820
    1921homepage            http://pointclouds.org
    2022
    21 checksums           rmd160  66e3e08beb98664d069dbcee5d22cf7895bbd5e0 \
    22                     sha256  3e764a290f4a7241904a23a81851a018e5b9bb5daaaa0dbd5596e3b43820b2e9
    23 
    2423depends_lib         port:boost \
    2524                    port:eigen3 \
    2625                    port:flann \
    27                     port:vtk5 \
     26                    port:glew \
     27                    port:libpng \
     28                    port:openni \
    2829                    port:qhull \
    29                     port:openni
     30                    port:libusb \
     31                    port:vtk \
     32                    port:zlib
     33
     34depends_test        port:gtest
     35
     36require_active_variants vtk qt5
    3037
    31 require_active_variants vtk5 qt4_mac
     38configure.args-replace -DCMAKE_BUILD_TYPE=MacPorts -DCMAKE_BUILD_TYPE=Release
    3239
    33 configure.args-append   -DOPENNI_INCLUDE_DIR=${prefix}/include/ni
     40configure.args-append -DBUILD_apps=ON \
     41                      -DBUILD_examples=ON \
     42                      -DWITH_DOCS=OFF \
     43                      -DWITH_QT=ON
    3444
    35 variant perf description {Optimize code} {
    36     configure.compiler  macports-clang-3.3
    37     configure.optflags  -O3 -pipe -march=native -mavx
     45variant clang50 description {Build with clang 5.0 to enable OpenMP for speed} {
     46    depends_build-append    port:clang-5.0
     47    depends_lib-append      port:libomp
     48    configure.compiler      macports-clang-5.0
    3849}
    3950
     51variant test description {Configure to run unit tests} {
     52    configure.args-replace -DBUILD_apps=ON -DBUILD_apps=OFF
     53    configure.args-replace -DBUILD_examples=ON -DBUILD_examples=OFF
     54    configure.args-append  -DBUILD_global_tests=ON \
     55                           -DGTEST_SRC_DIR=${prefix}/src/googletest/
     56}
     57
     58default_variants    +clang50
     59
     60# Test phase completes to the test summary (93 of 104 passed) but then aborts with
     61# "Failed to test libpcl: command execution failed"
     62# Needs further work
     63test.run            yes
     64test.target         tests