summaryrefslogtreecommitdiff
blob: 6c90bc44ec431b5cf8c8288d510e07f982c286b5 (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
51
52
53
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils qt3

MY_PN=${PN/-client/}
MY_P=${MY_PN}-${PV}

DESCRIPTION="streaming system designed to transmit live video, audio and data
over a TCP/IP network, as well as to control remote devices."
HOMEPAGE="http://www.fastpath.it/products/palantir/index.php"
SRC_URI="http://www.fastpath.it/products/${MY_PN}/pub/${MY_P}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="$(qt_min_version 3.3)"
RDEPEND="${DEPEND}"

S=${WORKDIR}/${MY_P}/clients/qt

src_unpack() {
	unpack ${A}
	cd "${S}"

	# patching in subdir because there are ebuilds for parts of this package
	epatch "${FILESDIR}/${PV}-senselessConfigFileHandling.patch"

	sed -i  \
		-e 's/-ggdb//' \
		-e 's/CPPFLAGS/CPPFLAGS+/' \
		-e 's/g++/$(CXX)/g' \
		Makefile || die "sed failed"

	# Fix the relative path
	for file in $(ls *.cpp *.h); do
		sed -i \
			-e 's#./icons#/usr/share/palantir-client/icons#g' \
			-e 's#./pclient.ini#/usr/share/palantir-client/pclient.ini#g' \
			${file} || die "sed failed"
	done
}

src_install() {
	dobin pclient
	dodoc README
	insinto /usr/share/${PN}
	doins -r icons/
	doins pclient.ini
}