Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/libtommath/libtommath-0.42.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1933 - (show annotations) (download)
Fri May 6 18:26:21 2011 UTC (13 years, 1 month ago) by niro
File size: 1023 byte(s)
-fixed patch again
1 # $Id$
2
3 PNAME="libtommath"
4 PVER="0.42.0"
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-split
20
21 SRC_URI=(
22 http://www.libtom.org/files/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${PNAME}-${PVER}-build-fixes.patch
25 )
26
27 UP2DATE="updatecmd ${HOMEPAGE} | grep -i ${PNAME}.*\(.*\) | sed 's:.*(\(.*\)).*:\1:;/^$/d'"
28
29 src_prepare()
30 {
31 munpack ${SRCFILE} || die
32 cd ${SRCDIR}
33
34 # apply some build fixes
35 mpatch ${PNAME}-${PVER}-build-fixes.patch || die
36 }
37
38 src_compile()
39 {
40 cd ${SRCDIR}
41 mmake -f makefile.shared IGNORE_SPEED=1 LIBPATH="/usr/$(mlibdir)" || die
42 }
43
44 src_install()
45 {
46 cd ${SRCDIR}
47 mmake -f makefile.shared DESTDIR=${BINDIR} LIBPATH="/usr/$(mlibdir)" install || die
48 minstalldocs LICENSE changes bn.pdf poster.pdf tommath.pdf || die
49 }