diff options
Diffstat (limited to 'dev-games/paklib/paklib-0.3.ebuild')
-rw-r--r-- | dev-games/paklib/paklib-0.3.ebuild | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/dev-games/paklib/paklib-0.3.ebuild b/dev-games/paklib/paklib-0.3.ebuild index b046ce39026f..746547e06b5b 100644 --- a/dev-games/paklib/paklib-0.3.ebuild +++ b/dev-games/paklib/paklib-0.3.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 + inherit toolchain-funcs DESCRIPTION="library for accessing Quake pak files" @@ -11,19 +12,23 @@ SRC_URI="mirror://sourceforge/paklib/pak-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" -IUSE="" -S=${WORKDIR}/pak +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" + "$(tc-getCC)" \ + ${LDFLAGS} \ + ${CFLAGS} \ + ${CPPFLAGS} \ + -Wl,-soname,libpak.so \ + -fPIC \ + -shared \ + pak.c -o libpak.so || die "pak.so failed" } src_install() { dolib.so libpak.so - dolib.a libpak.a - insinto /usr/include - doins pak.h + doheader pak.h + dodoc AUTHORS NEWS README TODO pak.c pak.h } |