summaryrefslogtreecommitdiff
blob: 62600e8effa9e25524a1b399433b09bee4c82c25 (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-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/zd1211-firmware/zd1211-firmware-1.4.ebuild,v 1.2 2007/11/03 12:03:19 dsd Exp $

EAPI="3"

inherit eutils

DESCRIPTION="PowerVR SGX540 libraries for OMAP4"

HOMEPAGE=""
SRC_URI="https://launchpad.net/~tiomap-dev/+archive/release/+files/${PN}_1.7.5.0~gitc77b84a.1.orig.tar.gz
https://launchpad.net/~tiomap-dev/+archive/release/+files/${PN}_1.7.5.0~gitc77b84a.1-1.diff.gz"


LICENSE="TI"
SLOT="0"
KEYWORDS="arm"

IUSE=""
DEPEND=">=x11-base/xorg-server-1.10
	x11-libs/libdrm
	=x11-drivers/pvr-omap4-kernel-1.7.5.0"
RDEPEND="${DEPEND}"

#S="${WORKDIR}"
RESTRICT="strip"

src_prepare() {
	cd "${WORKDIR}"
	epatch *.diff

	mv pvr-omap4-1.7.5.0~gitc77b84a.1 ${P}
}

src_install() {
	make DESTDIR="${D}" install

	cd "${D}"
	rm -rf usr/include/EGL \
		usr/include/KHR \
		usr/include/VG \
		usr/lib/libEGL.so \
		usr/lib/libOpenVG.so{,.1} \
		usr/lib/pkgconfig \
#	rm -rf "${D}"/usr/lib/libEGL.so.1 \
#		"${D}"/etc/init "${D}"/usr/lib/libOpenVG.so.1

}