media-libs/colmap - 3.11.1 (lastrodamo)

Search

Package Information

Description:
A general-purpose Structure-from-Motion and Multi-View Stereo pipeline.
Homepage:
https://colmap.github.io/
License:
BSD

Ebuild Details

Version EAPI Keywords Slot
3.11.1 8 ~amd64 ~x86 3.11
View Raw Ebuild
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake xdg-utils

DESCRIPTION="A general-purpose Structure-from-Motion and Multi-View Stereo pipeline."
HOMEPAGE="https://colmap.github.io/"
SRC_URI="https://github.com/colmap/colmap/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/PoseLib/PoseLib/archive/refs/tags/v2.0.4.tar.gz -> PoseLib-2.0.4.tar.gz"

LICENSE="BSD"
SLOT="3.11"
KEYWORDS="~amd64 ~x86"

RDEPEND="
	dev-libs/boost
	dev-cpp/eigen
	sci-libs/flann
	media-libs/freeimage
	sci-libs/metis
	dev-db/sqlite
	media-libs/glew
	dev-qt/qtbase
	dev-qt/qtopengl
	sci-mathematics/cgal
	sci-libs/ceres-solver
"

DEPEND="${RDEPEND}"

BDEPEND="
	dev-build/cmake
	sys-devel/gcc:13
"

S="${WORKDIR}/colmap-${PV}"

src_prepare() {
	default
	cmake_src_prepare
	# Apply any necessary patches here


}

src_configure() {
	local mycmakeargs=(
		-DPoseLib_DIR="${WORKDIR}/PoseLib-2.0.4"
		-DCMAKE_CUDA_ARCHITECTURES=75
	)

	cmake_src_configure
}

src_install() {
	cmake_src_install
}

pkg_postinst() {
	xdg_desktop_database_update
	elog "Colmap has been installed."
	elog "You can start using it by running the colmap command."
}

Dependencies

DEPEND

	dev-libs/boost
	dev-cpp/eigen
	sci-libs/flann
	media-libs/freeimage
	sci-libs/metis
	dev-db/sqlite
	media-libs/glew
	dev-qt/qtbase
	dev-qt/qtopengl
	sci-mathematics/cgal
	sci-libs/ceres-solver

RDEPEND

	dev-libs/boost
	dev-cpp/eigen
	sci-libs/flann
	media-libs/freeimage
	sci-libs/metis
	dev-db/sqlite
	media-libs/glew
	dev-qt/qtbase
	dev-qt/qtopengl
	sci-mathematics/cgal
	sci-libs/ceres-solver

BDEPEND

	dev-build/cmake
	sys-devel/gcc:13

Manifest for 3.11.1

Type File Size Source URLs
DIST PoseLib-2.0.4.tar.gz 198206 bytes https://github.com/PoseLib/PoseLib/archive/refs/tags/v2.0.4.tar.gz
DIST colmap-3.11.1.tar.gz 3513052 bytes https://github.com/colmap/colmap/archive/refs/tags/3.11.1.tar.gz