| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/gf2x/gf2x-1.0-r1.ebuild,v 1.5 2012/01/28 14:59:02 phajdan.jr Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit autotools-utils
|
| 8 |
|
| 9 |
PACKAGEID=27999 # hack
|
| 10 |
|
| 11 |
DESCRIPTION="C/C++ routines for fast arithmetic in GF(2)[x]"
|
| 12 |
HOMEPAGE="http://gf2x.gforge.inria.fr/"
|
| 13 |
SRC_URI="http://gforge.inria.fr/frs/download.php/${PACKAGEID}/${P}.tar.gz"
|
| 14 |
|
| 15 |
LICENSE="GPL-2"
|
| 16 |
SLOT="0"
|
| 17 |
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
| 18 |
IUSE="bindist static-libs"
|
| 19 |
|
| 20 |
src_configure() {
|
| 21 |
local myeconfargs=(
|
| 22 |
ABI=default
|
| 23 |
)
|
| 24 |
|
| 25 |
if use bindist ; then
|
| 26 |
if use x86 ; then
|
| 27 |
myeconfargs+=(
|
| 28 |
--disable-sse2
|
| 29 |
)
|
| 30 |
fi
|
| 31 |
if use amd64 ; then
|
| 32 |
myeconfargs+=(
|
| 33 |
--disable-pclmul
|
| 34 |
)
|
| 35 |
fi
|
| 36 |
fi
|
| 37 |
|
| 38 |
autotools-utils_src_configure
|
| 39 |
}
|