2013-01-23 22:42:58 +04:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=5
|
|
|
|
|
2016-12-19 08:53:15 +03:00
|
|
|
inherit eutils multilib flag-o-matic autotools autotools-utils linux-info
|
2013-01-23 22:42:58 +04:00
|
|
|
|
|
|
|
DESCRIPTION="Tools for Linux Kernel Stream Control Transmission Protocol implementation"
|
|
|
|
HOMEPAGE="http://lksctp.sourceforge.net/"
|
|
|
|
SRC_URI="mirror://sourceforge/lksctp/${P}.tar.gz"
|
|
|
|
|
2013-02-25 01:47:24 +04:00
|
|
|
LICENSE="|| ( GPL-2+ LGPL-2.1 )"
|
2013-01-23 22:42:58 +04:00
|
|
|
SLOT="0"
|
2013-05-25 20:23:10 +04:00
|
|
|
KEYWORDS="alpha amd64 ppc ppc64 sparc x86"
|
2013-01-23 22:42:58 +04:00
|
|
|
IUSE="kernel_linux static-libs"
|
|
|
|
|
|
|
|
# This is only supposed to work with Linux to begin with.
|
|
|
|
DEPEND=">=sys-kernel/linux-headers-2.6"
|
|
|
|
RDEPEND=""
|
|
|
|
|
|
|
|
REQUIRED_USE="kernel_linux"
|
|
|
|
|
2016-12-19 08:53:15 +03:00
|
|
|
CONFIG_CHECK="~IP_SCTP"
|
|
|
|
WARNING_IP_SCTP="CONFIG_IP_SCTP:\tis not set when it should be."
|
|
|
|
|
2013-01-23 22:42:58 +04:00
|
|
|
src_prepare() {
|
|
|
|
epatch "${FILESDIR}"/${PN}-1.0.8-prefix.patch #181602
|
2013-02-25 01:47:24 +04:00
|
|
|
epatch "${FILESDIR}"/${P}-build.patch
|
2013-05-04 22:49:13 +04:00
|
|
|
sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in || die
|
2013-01-23 22:42:58 +04:00
|
|
|
eautoreconf
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
append-flags -fno-strict-aliasing
|
|
|
|
|
2013-02-25 01:47:24 +04:00
|
|
|
autotools-utils_src_configure
|
2013-01-23 22:42:58 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
DOCS=( AUTHORS ChangeLog INSTALL NEWS README ROADMAP )
|
|
|
|
|
|
|
|
src_install() {
|
2013-02-25 01:47:24 +04:00
|
|
|
autotools-utils_src_install
|
2013-01-23 22:42:58 +04:00
|
|
|
|
|
|
|
dodoc doc/*txt
|
|
|
|
newdoc src/withsctp/README README.withsctp
|
|
|
|
|
|
|
|
# Don't install static library or libtool file, since this is used
|
|
|
|
# only as preloadable library.
|
|
|
|
use static-libs && rm "${D}"/usr/$(get_libdir)/${PN}/*.a
|
|
|
|
}
|