blob: 9cbbc126e2020c4d72160d2313724128328d4826 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmix/libmix-2.05-r1.ebuild,v 1.1 2009/01/08 19:11:40 jer Exp $
inherit multilib eutils
DESCRIPTION="Programs Crypto/Network/Multipurpose Library"
HOMEPAGE="http://mixter.void.ru/"
SRC_URI="http://mixter.void.ru/${P/.}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
IUSE="no-net2"
DEPEND="!no-net2? ( virtual/libpcap net-libs/libnet )"
S=${WORKDIR}/${PN}-v${PV}
src_unpack() {
unpack ${A}
cd "${S}"
sed -i "s:-O3 -funroll-loops:${CFLAGS} -fPIC:" configure
epatch "${FILESDIR}"/${P}-fix-pattern.patch
}
src_compile() {
econf $(use_with no-net2) || die
emake || die
}
src_install() {
make \
INSTALL_INCLUDES_IN="${D}"/usr/include \
INSTALL_LIBRARY_IN="${D}"/usr/$(get_libdir) \
INSTALL_MANPAGE_IN="${D}"/usr/share/man \
install || die
dodoc CHANGES
}
|