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 1932 - (show annotations) (download)
Fri May 6 18:21:48 2011 UTC (13 years, 1 month ago) by niro
File size: 1141 byte(s)
-alxify
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 # do not use any broken groups
38 sed -i 's: -g $(GROUP) -o $(USER)::g' makefile.shared || die
39 }
40
41 src_compile()
42 {
43 cd ${SRCDIR}
44 mmake -f makefile.shared IGNORE_SPEED=1 LIBPATH="/usr/$(mlibdir)" || die
45 }
46
47 src_install()
48 {
49 cd ${SRCDIR}
50 mmake -f makefile.shared DESTDIR=${BINDIR} LIBPATH="/usr/$(mlibdir)" INCPATH="/usr/include" install || die
51 minstalldocs LICENSE changes bn.pdf poster.pdf tommath.pdf || die
52 }