Contents of /smage/branches/alx-0_6_0/core/libtommath/libtommath-0.42.0-r1.smage2
Parent Directory | Revision Log
Revision 1928 -
(show annotations)
(download)
Fri May 6 17:59:44 2011 UTC (13 years, 1 month ago) by niro
File size: 1002 byte(s)
Fri May 6 17:59:44 2011 UTC (13 years, 1 month ago) by niro
File size: 1002 byte(s)
auto added: ver bump to 0.42.0-r1
1 | # $Id$ |
2 | |
3 | PNAME="libtommath" |
4 | PVER="0.42" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="dev-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Highly optimized and portable routines for integer based number theoretic applications." |
11 | HOMEPAGE="http://www.libtom.org/" |
12 | |
13 | DEPEND="" |
14 | |
15 | SRCFILE="ltm-${PVER}.tar.bz2" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
19 | sminclude alx |
20 | |
21 | SRC_URI=( |
22 | http://www.libtom.org/files/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | ) |
25 | |
26 | UP2DATE="updatecmd ${HOMEPAGE} | grep -i ${PNAME}.*\(.*\) | sed 's:.*(\(.*\)).*:\1:;/^$/d'" |
27 | |
28 | src_prepare() |
29 | { |
30 | munpack ${SRCFILE} || die |
31 | cd ${SRCDIR} |
32 | |
33 | # do not use any broken groups |
34 | sed -i 's: -g $(GROUP) -o $(USER)::g' makefile.shared || die |
35 | } |
36 | |
37 | src_compile() |
38 | { |
39 | cd ${SRCDIR} |
40 | mmake -f makefile.shared IGNORE_SPEED=1 LIBPATH="/usr/$(mlibdir)" || die |
41 | } |
42 | |
43 | src_install() |
44 | { |
45 | cd ${SRCDIR} |
46 | mmake -f makefile.shared DESTDIR=${BINDIR} LIBPATH="/usr/$(mlibdir)" INCPATH="/usr/include" install || die |
47 | minstalldocs LICENSE changes bn.pdf poster.pdf tommath.pdf || die |
48 | } |