Contents of /trunk/core/gmp/gmp-4.2.4-r1.smage2
Parent Directory | Revision Log
Revision 39 -
(show annotations)
(download)
Sat Oct 11 00:58:52 2008 UTC (15 years, 7 months ago) by niro
File size: 1451 byte(s)
Sat Oct 11 00:58:52 2008 UTC (15 years, 7 months ago) by niro
File size: 1451 byte(s)
-cross-compile support
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 | DEPEND=">= virtual/glibc" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | # not mutilib.sminc compat, don't use it! |
19 | sminclude mbuild |
20 | |
21 | SRC_URI=( |
22 | gnu://${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | ) |
25 | |
26 | src_compile() |
27 | { |
28 | install -d ${SRCDIR}/build |
29 | cd ${SRCDIR}/build |
30 | ../configure \ |
31 | --host=${CHOST} \ |
32 | --prefix=/usr \ |
33 | --mandir=/usr/share/man \ |
34 | --infodir=/usr/share/info \ |
35 | --libdir=/usr/$(mlibdir) \ |
36 | || die |
37 | mmake || die |
38 | |
39 | # build 32bit libraries for multilib systems |
40 | if [[ ${ARCH} = x86_64 ]] |
41 | then |
42 | install -d ${SRCDIR}/build-m32 |
43 | cd ${SRCDIR}/build-m32 |
44 | ABI=32 CC="gcc -m32" \ |
45 | ../configure \ |
46 | --host=${CHOST} \ |
47 | --prefix=/usr \ |
48 | --mandir=/usr/share/man \ |
49 | --infodir=/usr/share/info \ |
50 | --libdir=/usr/lib \ |
51 | || die |
52 | mmake || die |
53 | fi |
54 | } |
55 | |
56 | src_install() |
57 | { |
58 | cd ${SRCDIR}/build |
59 | make DESTDIR=${BINDIR} install || die |
60 | |
61 | # build 32bit libraries for multilib systems |
62 | if [[ ${ARCH} = x86_64 ]] |
63 | then |
64 | cd ${SRCDIR}/build-m32 |
65 | make DESTDIR=${BINDIR} install || die |
66 | fi |
67 | |
68 | cd ${SRCDIR} |
69 | minstalldocs AUTHORS COPYING* ChangeLog NEWS README || die |
70 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |