summaryrefslogtreecommitdiff
blob: febfa58d883a18e68e8717cab24f12246f95b20a (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/caps/caps-20040303.ebuild,v 1.1 2004/03/04 20:01:08 dholm Exp $

inherit eutils

S="${WORKDIR}"
DESCRIPTION="Support library that allows third party applications access and use C.A.P.S. images"
HOMEPAGE="http://www.caps-project.org/"
SRC_URI="http://www.caps-project.org/files/ipfdevlib_linux.tgz
	http://www.caps-project.org/files/CAPSLib102a.zip
	http://www.caps-project.org/files/OCS_13_1Mb_800_600.zip"

DEPEND="app-arch/unzip"
LICENSE="CAPS"
SLOT="0"
KEYWORDS="~ppc ~x86 ~amd64"
IUSE=""
RESTRICT="nostrip"

src_install() {
	insinto /usr/include/caps
	doins ipfdevlib_linux/include/caps/capsimage.h

	case ${ARCH} in
		ppc)
			dolib.so ipfdevlib_linux/lib/ppc/libcapsimage.so.1.1
			dobin ipfdevlib_linux/examples/ppc/ipfinfo
			;;
		x86|amd64)
			dolib.so ipfdevlib_linux/lib/i686/libcapsimage.so.1.1
			dobin ipfdevlib_linux/examples/i686/ipfinfo
			;;
		*)
			eerror "Unsupported platform"
			;;
	esac
	dosym /usr/lib/libcapsimage.so.1.1 /usr/lib/libcapsimage.so.1

	insinto /usr/share/${PN}
	doins OCS_13_1Mb_800_600.uae
	doins ipfdevlib_linux/examples/ipfinfo.c

	insinto /usr/share/doc/${P}
	doins CAPSLib102a-40.pdf
	cd ${S}/ipfdevlib_linux
	dodoc readme.txt license.txt history.txt || die "doc installation failed"
}