summaryrefslogtreecommitdiff
blob: 2c5a61b7a3b939d99906a019502cd546dbdb5be6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit cmake flag-o-matic xdg

DESCRIPTION="Panorama viewer (Quicktime, PangeaVR, GLPanoView formats)"
HOMEPAGE="https://freepv.sourceforge.net/"
SRC_URI="https://downloads.sourceforge.net/freepv/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

DEPEND="dev-libs/libxml2
	media-libs/libpng:0=
	media-libs/freeglut
	sys-libs/zlib
	virtual/jpeg:0
	x11-libs/libXmu
	x11-libs/libXt
	x11-libs/libXxf86vm"
RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}"/${P}-gcc44.patch
	"${FILESDIR}"/${P}-gcc46.patch
	"${FILESDIR}"/${P}-noplugin.patch
	"${FILESDIR}"/${P}-libpng14.patch
	"${FILESDIR}"/${P}-stringh.patch
	"${FILESDIR}"/${P}-unsigned_short.patch
)

src_prepare() {
	cmake_src_prepare

	sed -e 's:jpeg_mem_src:freepv_jpeg_mem_src:g' \
		-i src/libfreepv/JpegReader.cpp || die

	sed -e 's:^INSTALL(.*)::' \
		-i src/libfreepv/CMakeLists.txt || die
}

src_configure() {
	# bug 618856
	append-cxxflags -std=c++14

	cmake_src_configure
}