summaryrefslogtreecommitdiff
blob: da1390b5f8c93471fb6182e0cd14e1c007c3f068 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmcrypt/libmcrypt-2.5.1-r3.ebuild,v 1.1 2002/06/30 20:30:07 azarah Exp $

inherit libtool

S=${WORKDIR}/${P}
DESCRIPTION="libmcrypt is a library that provides uniform interface to access several encryption algorithms."
SRC_URI="ftp://mcrypt.hellug.gr/pub/mcrypt/libmcrypt/${P}.tar.gz"
HOMEPAGE="http://mcrypt.hellug.gr/"

DEPEND="virtual/glibc
	>=sys-devel/automake-1.6.1"
RDEPEND="virtual/glibc"
SLOT="0"
LICENSE="GPL-2"

src_unpack() {

	unpack ${A}

	elibtoolize

	# Try to fix some wierd build problems.
	for x in $(find ${S} -name configure)
	do
		export WANT_AUTOMAKE_1_6=1
		export WANT_AUTOCONF_2_5=1
		aclocal
		automake --add-missing --include-deps &>${T}/foo
		autoconf &>${T}/foo
	done
}

src_compile() {

	# Do not compile with -mcpu=k6/5 because of a k6/5 varible
	# in modules/algorithms/gosh.c
	CFLAGS="${CFLAGS/mcpu=k/march=k}"

	# Doesn't work with --host bug #3517
	econf --disable-posix-threads || die
		
	# PHP manual states to disable posix threads, no further explanation 
	# given, but i'll stick with it :)
	# (Source: http://www.php.net/manual/en/ref.mcrypt.php)

	emake || die
}

src_install () {
	
	dodir /usr/{bin,include,lib}
	
	einstall || die

	dodoc AUTHORS COPYING INSTALL KNOW-BUGS NEWS README THANKS TODO
	dodoc doc/README.* doc/example.c
}