Contents of /smage/branches/alx07x-stable/core/libtommath/libtommath-0.42.0-r7.smage2
Parent Directory | Revision Log
Revision 11325 -
(show annotations)
(download)
Tue Dec 19 12:13:22 2017 UTC (6 years, 9 months ago) by niro
File size: 995 byte(s)
Tue Dec 19 12:13:22 2017 UTC (6 years, 9 months ago) by niro
File size: 995 byte(s)
-release branches/alx07x-stable
1 | # $Id$ |
2 | |
3 | PNAME="libtommath" |
4 | PVER="0.42.0" |
5 | PBUILD="r7" |
6 | |
7 | PCAT="dev-libs" |
8 | |
9 | DESCRIPTION="Highly optimized and portable routines for integer based number theoretic applications." |
10 | HOMEPAGE="http://www.libtom.net/" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | |
14 | SRCFILE="ltm-${PVER}.tar.bz2" |
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
16 | |
17 | sminclude alx-split |
18 | |
19 | SRC_URI=( |
20 | http://www.libtom.net/files/${SRCFILE} |
21 | mirror://${PNAME}/${SRCFILE} |
22 | mirror://${PNAME}/${PNAME}-${PVER}-build-fixes.patch |
23 | ) |
24 | |
25 | UP2DATE="updatecmd ${HOMEPAGE} | grep -i ${PNAME}.*\(.*\) | sed 's:.*(\(.*\)).*:\1:;/^$/d'" |
26 | |
27 | src_prepare() |
28 | { |
29 | munpack ${SRCFILE} || die |
30 | cd ${SRCDIR} |
31 | |
32 | # apply some build fixes |
33 | mpatch ${PNAME}-${PVER}-build-fixes.patch || die |
34 | } |
35 | |
36 | src_compile() |
37 | { |
38 | cd ${SRCDIR} |
39 | mmake -f makefile.shared IGNORE_SPEED=1 LIBPATH="/usr/$(mlibdir)" || die |
40 | } |
41 | |
42 | alx_generic_src_install() |
43 | { |
44 | cd ${SRCDIR} |
45 | mmake -f makefile.shared DESTDIR=${BINDIR} LIBPATH="/usr/$(mlibdir)" install || die |
46 | minstalldocs LICENSE changes bn.pdf poster.pdf tommath.pdf || die |
47 | } |