1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="C/C++ library for manipulating the LAS LiDAR format common in GIS"
10 HOMEPAGE="http://www.liblas.org"
11 SRC_URI="http://download.osgeo.org/${PN}/libLAS-${PV}.tar.bz2"
13 # tests known to fail due to LD_LIBRARY_PATH issue
18 KEYWORDS="~amd64 ~ppc64 ~x86"
23 sci-geosciences/laszip
25 gdal? ( sci-libs/gdal )
29 S="${WORKDIR}/libLAS-${PV}"
32 "${FILESDIR}"/${PN}-1.8.0_remove-std-c++98.patch
39 sed -e 's:${LAS2COL} ${LIBLAS_C_LIB_NAME}:& ${CMAKE_THREAD_LIBS_INIT}:' \
40 -i "${S}/apps/CMakeLists.txt" || die
45 "-DWITH_GDAL=$(usex gdal)"
46 -DLIBLAS_LIB_SUBDIR=$(get_libdir)
48 cmake-utils_src_configure