Magellan Linux

Annotation of /smage/trunk/core/libtommath/libtommath-0.42.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1983 - (hide annotations) (download)
Wed Nov 9 17:10:35 2011 UTC (12 years, 6 months ago) by niro
File size: 990 byte(s)
auto added: ver bump to 0.42.0-r1
1 niro 1983 # $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     sminclude mcore-split
18    
19     SRC_URI=(
20     #http://www.libtom.org/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     mcore_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     }