Contents of /trunk/core/gmp/gmp-4.2.4-r1.smage2
Parent Directory | Revision Log
Revision 51 -
(show annotations)
(download)
Mon Oct 13 08:14:28 2008 UTC (15 years, 7 months ago) by niro
File size: 1549 byte(s)
Mon Oct 13 08:14:28 2008 UTC (15 years, 7 months ago) by niro
File size: 1549 byte(s)
-fixed dependencies and added a note about glibc depends
1 | # $Header: /magellan-cvs/smage/gmp/gmp-4.2.2-r1.smage2,v 1.1 2008/03/15 21:59:38 niro Exp $ |
2 | |
3 | PNAME="gmp" |
4 | PVER="4.2.4" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="dev-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers." |
11 | HOMEPAGE="http://www.swox.com/gmp/" |
12 | |
13 | # do not depend on glibc, as it depends ob libstdc++ and this wants gmp |
14 | # as SRCDEPEND -> this may generate loops |
15 | DEPEND="" |
16 | |
17 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
18 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
19 | |
20 | # not mutilib.sminc compat, don't use it! |
21 | sminclude mbuild |
22 | |
23 | SRC_URI=( |
24 | gnu://${PNAME}/${SRCFILE} |
25 | mirror://${PNAME}/${SRCFILE} |
26 | ) |
27 | |
28 | src_compile() |
29 | { |
30 | install -d ${SRCDIR}/build |
31 | cd ${SRCDIR}/build |
32 | ../configure \ |
33 | --host=${CHOST} \ |
34 | --prefix=/usr \ |
35 | --mandir=/usr/share/man \ |
36 | --infodir=/usr/share/info \ |
37 | --libdir=/usr/$(mlibdir) \ |
38 | || die |
39 | mmake || die |
40 | |
41 | # build 32bit libraries for multilib systems |
42 | if [[ ${ARCH} = x86_64 ]] |
43 | then |
44 | install -d ${SRCDIR}/build-m32 |
45 | cd ${SRCDIR}/build-m32 |
46 | ABI=32 CC="gcc -m32" \ |
47 | ../configure \ |
48 | --host=${CHOST} \ |
49 | --prefix=/usr \ |
50 | --mandir=/usr/share/man \ |
51 | --infodir=/usr/share/info \ |
52 | --libdir=/usr/lib \ |
53 | || die |
54 | mmake || die |
55 | fi |
56 | } |
57 | |
58 | src_install() |
59 | { |
60 | cd ${SRCDIR}/build |
61 | make DESTDIR=${BINDIR} install || die |
62 | |
63 | # build 32bit libraries for multilib systems |
64 | if [[ ${ARCH} = x86_64 ]] |
65 | then |
66 | cd ${SRCDIR}/build-m32 |
67 | make DESTDIR=${BINDIR} install || die |
68 | fi |
69 | |
70 | cd ${SRCDIR} |
71 | minstalldocs AUTHORS COPYING* ChangeLog NEWS README || die |
72 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |