Lines 2-8
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/libnet/libnet-1.0.2a-r3.ebuild,v 1.18 2009/05/25 23:41:56 jer Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/libnet/libnet-1.0.2a-r3.ebuild,v 1.18 2009/05/25 23:41:56 jer Exp $ |
4 |
|
4 |
|
5 |
inherit eutils autotools |
5 |
inherit eutils autotools toolchain-funcs flag-o-matic |
6 |
|
6 |
|
7 |
DESCRIPTION="library to provide an API for commonly used low-level network functions (mainly packet injection)" |
7 |
DESCRIPTION="library to provide an API for commonly used low-level network functions (mainly packet injection)" |
8 |
HOMEPAGE="http://www.packetfactory.net/libnet/" |
8 |
HOMEPAGE="http://www.packetfactory.net/libnet/" |
Lines 35-40
Link Here
|
35 |
|
35 |
|
36 |
src_compile() { |
36 |
src_compile() { |
37 |
econf || die |
37 |
econf || die |
|
|
38 |
|
39 |
local endianness="$(tc-endian)" |
40 |
case "${endianness}" in |
41 |
"little") |
42 |
append-flags "-DLIBNET_LIL_ENDIAN" |
43 |
;; |
44 |
"big") |
45 |
append-flags "-DLIBNET_BIG_ENDIAN" |
46 |
;; |
47 |
*) |
48 |
# best effort |
49 |
;; |
50 |
esac |
38 |
emake CFLAGS="${CFLAGS}" || die "Failed to compile" |
51 |
emake CFLAGS="${CFLAGS}" || die "Failed to compile" |
39 |
} |
52 |
} |
40 |
|
53 |
|