diff options
author | David Seifert <soap@gentoo.org> | 2020-07-05 22:49:46 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2020-07-05 22:49:46 +0200 |
commit | 762a2940cdf51086e9df06e39c85a40386391121 (patch) | |
tree | fc49192ec31b72dcfac9be9f966d9441331d2ba5 /dev-games/hawknl/hawknl-1.68-r3.ebuild | |
parent | sys-fs/reiser4progs: Removed old (diff) | |
download | gentoo-762a2940cdf51086e9df06e39c85a40386391121.tar.gz gentoo-762a2940cdf51086e9df06e39c85a40386391121.tar.bz2 gentoo-762a2940cdf51086e9df06e39c85a40386391121.zip |
dev-games/hawknl: Fix build system
Closes: https://bugs.gentoo.org/722686
Closes: https://bugs.gentoo.org/726872
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-games/hawknl/hawknl-1.68-r3.ebuild')
-rw-r--r-- | dev-games/hawknl/hawknl-1.68-r3.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-games/hawknl/hawknl-1.68-r3.ebuild b/dev-games/hawknl/hawknl-1.68-r3.ebuild new file mode 100644 index 000000000000..1263783a20ec --- /dev/null +++ b/dev-games/hawknl/hawknl-1.68-r3.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="A cross-platform network library designed for games" +HOMEPAGE="http://www.hawksoft.com/hawknl/" +SRC_URI="http://www.sonic.net/~philf/download/HawkNL${PV/./}src.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 hppa x86" +IUSE="examples" + +S="${WORKDIR}/${PN}${PV}" + +PATCHES=( "${FILESDIR}"/${P}-build.patch ) + +src_configure() { + tc-export CC +} + +src_compile() { + emake -C src -f makefile.linux +} + +src_install() { + emake -j1 -C src -f makefile.linux \ + LIBDIR="${ED}"/usr/$(get_libdir) \ + INCDIR="${ED}"/usr/include install + + dodoc src/{nlchanges.txt,readme.txt} + if use examples; then + docinto examples + dodoc -r samples/. + docompress -x /usr/share/doc/${PF}/examples + fi +} |