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

inherit versionator toolchain-funcs multilib

RESTRICT="multilib-pkg-force"

DESCRIPTION="OpenGL video capturing framework"
HOMEPAGE="http://neopsis.com/projects/yukon"

MY_PV="$(replace_version_separator 2 '-')"
SRC_URI="http://dbservice.com/ftpdir/tom/yukon/trunk/yukon-${MY_PV}.tar.bz2"

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

DEPEND="x11-libs/seom"
RDEPEND="${DEPEND}"

src_unpack() {
	for ABI in $(get_install_abis); do
		unpack ${A}
		mv "${PN}-${MY_PV}" "${ABI}"
	done
}

src_compile() {
	for ABI in $(get_install_abis); do
		cd "${WORKDIR}/${ABI}"

		econf --libdir="$(get_abi_LIBDIR ${ABI})" || die "econf failed"
		emake CC="$(tc-getCC) $(get_abi_CFLAGS ${ABI})" || die "emake failed"
	done
}

src_install() {
	dodir /etc/yukon/system

	for ABI in $(get_install_abis); do
		cd "${WORKDIR}/${ABI}"
		emake DESTDIR="${D}" install || die "emake install failed"
		cp sysconf "${D}/etc/yukon/system/${ABI}"
	done
}