Contents of /smage/trunk/core/libtommath/libtommath-0.42.0-r1.smage2
Parent Directory | Revision Log
Revision 2792 -
(show annotations)
(download)
Mon Aug 29 20:03:18 2011 UTC (12 years, 9 months ago) by niro
File size: 1018 byte(s)
Mon Aug 29 20:03:18 2011 UTC (12 years, 9 months ago) by niro
File size: 1018 byte(s)
-merged branch alx-0_6_0 into trunk
1 | # $Id$ |
2 | |
3 | PNAME="libtommath" |
4 | PVER="0.42.0" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="dev-libs" |
8 | |
9 | DESCRIPTION="Highly optimized and portable routines for integer based number theoretic applications." |
10 | HOMEPAGE="http://www.libtom.org/" |
11 | |
12 | DEPEND="" |
13 | |
14 | SRCFILE="ltm-${PVER}.tar.bz2" |
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
16 | |
17 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
18 | sminclude alx-split |
19 | |
20 | SRC_URI=( |
21 | http://www.libtom.org/files/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${PNAME}-${PVER}-build-fixes.patch |
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 | # apply some build fixes |
34 | mpatch ${PNAME}-${PVER}-build-fixes.patch || 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 | alx_generic_src_install() |
44 | { |
45 | cd ${SRCDIR} |
46 | mmake -f makefile.shared DESTDIR=${BINDIR} LIBPATH="/usr/$(mlibdir)" install || die |
47 | minstalldocs LICENSE changes bn.pdf poster.pdf tommath.pdf || die |
48 | } |