blob: a49fcf354e6f7d4eeb09599a09511bed37bd068a (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-games/paklib/paklib-0.3.ebuild,v 1.2 2005/05/04 00:43:03 vapier Exp $
inherit toolchain-funcs
DESCRIPTION="library for accessing Quake pak files"
HOMEPAGE="http://sourceforge.net/projects/paklib/"
SRC_URI="mirror://sourceforge/paklib/pak-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=""
S=${WORKDIR}/pak
src_compile() {
$(tc-getCC) ${CFLAGS} -fPIC -shared pak.c -o libpak.so || die "pak.so failed"
$(tc-getCC) ${CFLAGS} -c pak.c -o libpak.a || die "pak.a failed"
}
src_install() {
dolib.so libpak.so || die "pak.so failed"
dolib.a libpak.a || die "pak.a failed"
insinto /usr/include
doins pak.h || die "pak.h failed"
dodoc AUTHORS NEWS README TODO pak.c pak.h
}
|