summaryrefslogtreecommitdiff
blob: 4613494560c5e290321dd9d44144a3d8c9548b11 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/em84xx-libraries/em84xx-libraries-1.6.95.16.ebuild,v 1.3 2009/11/16 15:14:16 zzam Exp $

inherit eutils

MY_P=Netstream2000-${PV}

DESCRIPTION="libraries for the em84xx chip"
HOMEPAGE="ftp://ftp.sigmadesigns.com/NetStr_2000/"
SRC_URI="ftp://ftp.sigmadesigns.com/NetStr_2000/${MY_P}.tar.gz"

LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND=""
RDEPEND=""

S=${WORKDIR}/${MY_P}RC

# binary files are as they are
em84xx_libs="usr/lib/libosd.so usr/lib/libEM84xx.so"
QA_PRESTRIPPED="${em84xx_libs}"
QA_SONAME="${em84xx_libs}"
QA_TEXTRELS="${em84xx_libs}"

pkg_setup() {
	if built_with_use -a sys-libs/glibc glibc-compat20 -nptlonly; then
		einfo "Use-flags of glibc checked ok."
	else
		eerror "You cannot use ${P} with your glibc use-flags."
		eerror "Please recompile glibc with USE=\"glibc-compat20 -nptlonly\""
	fi
}

src_install() {
	insinto /usr/lib
	doins lib/libEM84xx.so lib/libosd.so

	insinto /usr/include/em84xx/
	doins include/*.h
}