diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-03-12 16:38:44 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-03-12 16:38:44 +0000 |
commit | 3d7b991906510c5d73d981f72702bbc6f0eb7c79 (patch) | |
tree | 66d9ec6285568ad475c9e4ea4737f289785de53a /dev-games/hawknl | |
parent | Mask USE="test" for app-text/asciidoc because media-sound/lilypond is masked ... (diff) | |
download | gentoo-2-3d7b991906510c5d73d981f72702bbc6f0eb7c79.tar.gz gentoo-2-3d7b991906510c5d73d981f72702bbc6f0eb7c79.tar.bz2 gentoo-2-3d7b991906510c5d73d981f72702bbc6f0eb7c79.zip |
Fix libNL SONAME #407785 by Alain B.
(Portage version: 2.2.0_alpha90/cvs/Linux x86_64)
Diffstat (limited to 'dev-games/hawknl')
-rw-r--r-- | dev-games/hawknl/ChangeLog | 10 | ||||
-rw-r--r-- | dev-games/hawknl/files/hawknl-1.68-build.patch | 2 | ||||
-rw-r--r-- | dev-games/hawknl/hawknl-1.68-r2.ebuild | 46 |
3 files changed, 55 insertions, 3 deletions
diff --git a/dev-games/hawknl/ChangeLog b/dev-games/hawknl/ChangeLog index e0a9dce79253..74b26ad92d6d 100644 --- a/dev-games/hawknl/ChangeLog +++ b/dev-games/hawknl/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-games/hawknl -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-games/hawknl/ChangeLog,v 1.11 2010/09/10 10:01:59 tupone Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-games/hawknl/ChangeLog,v 1.12 2012/03/12 16:38:44 vapier Exp $ + +*hawknl-1.68-r2 (12 Mar 2012) + + 12 Mar 2012; Mike Frysinger <vapier@gentoo.org> +hawknl-1.68-r2.ebuild, + files/hawknl-1.68-build.patch: + Fix libNL SONAME #407785 by Alain B. 10 Sep 2010; Tupone Alfredo <tupone@gentoo.org> hawknl-1.68-r1.ebuild, files/hawknl-1.68-build.patch: diff --git a/dev-games/hawknl/files/hawknl-1.68-build.patch b/dev-games/hawknl/files/hawknl-1.68-build.patch index cf9b609f0ee0..d94daaaf6d88 100644 --- a/dev-games/hawknl/files/hawknl-1.68-build.patch +++ b/dev-games/hawknl/files/hawknl-1.68-build.patch @@ -26,7 +26,7 @@ OPTFLAGS = -funroll-all-loops -ffast-math -fomit-frame-pointer -O2 -D_GNU_SOURCE -D_REENTRANT
CFLAGS = -Wall -fPIC $(INCLUDE) $(OPTFLAGS)
-LIBFLAGS = -shared -Wl,-soname,NL.so.$(MAJOR_VERSION).$(MINOR_VERSION) -rdynamic -lpthread
-+LIBFLAGS = ${LDFLAGS} -shared -Wl,-soname,NL.so.$(MAJOR_VERSION).$(MINOR_VERSION) -rdynamic -lpthread
++LIBFLAGS = ${LDFLAGS} -shared -Wl,-soname,libNL.so.$(MAJOR_VERSION).$(MINOR_VERSION) -rdynamic -lpthread
OBJECTS = crc.o errorstr.o nl.o sock.o group.o loopback.o err.o thread.o mutex.o condition.o nltime.o
all: $(OBJECTS)
diff --git a/dev-games/hawknl/hawknl-1.68-r2.ebuild b/dev-games/hawknl/hawknl-1.68-r2.ebuild new file mode 100644 index 000000000000..45c4e59407fa --- /dev/null +++ b/dev-games/hawknl/hawknl-1.68-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2012 Gentoo Foundation, 2004 Richard Garand <richard@garandnet.net> +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-games/hawknl/hawknl-1.68-r2.ebuild,v 1.1 2012/03/12 16:38:44 vapier Exp $ + +EAPI=2 +inherit toolchain-funcs eutils multilib + +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 ~ppc ~x86" +IUSE="doc" + +RDEPEND="" +DEPEND="" + +S=${WORKDIR}/hawknl${PV} + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch + sed -i \ + -e '/echo /d' src/makefile.linux \ + || die "sed src/makefile.linux failed" +} + +src_compile() { + emake -C src -f makefile.linux \ + CC="$(tc-getCC)" \ + OPTFLAGS="${CFLAGS} -D_GNU_SOURCE -D_REENTRANT" \ + || die "emake failed" +} + +src_install() { + make -C src -f makefile.linux \ + LIBDIR="${D}/usr/$(get_libdir)" \ + INCDIR="${D}/usr/include" \ + install \ + || die "make install failed" + if use doc ; then + docinto samples + dodoc samples/* || die "dodoc failed" + fi +} |