diff options
Diffstat (limited to 'dev-games/paklib/paklib-0.3.ebuild')
-rw-r--r-- | dev-games/paklib/paklib-0.3.ebuild | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-games/paklib/paklib-0.3.ebuild b/dev-games/paklib/paklib-0.3.ebuild new file mode 100644 index 000000000000..46d7f006d7dc --- /dev/null +++ b/dev-games/paklib/paklib-0.3.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +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="" + +S=${WORKDIR}/pak + +src_compile() { + $(tc-getCC) ${LDFLAGS} ${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 + dolib.a libpak.a + insinto /usr/include + doins pak.h + dodoc AUTHORS NEWS README TODO pak.c pak.h +} |