Contents of /smage/trunk/core/mpfr/mpfr-4.2.1-r1.smage2
Parent Directory | Revision Log
Revision 16967 -
(show annotations)
(download)
Thu Oct 12 14:36:48 2023 UTC (7 months, 3 weeks ago) by niro
File size: 1094 byte(s)
Thu Oct 12 14:36:48 2023 UTC (7 months, 3 weeks ago) by niro
File size: 1094 byte(s)
-ver bump to 4.2.1-r1
1 | # $Id$ |
2 | |
3 | PNAME="mpfr" |
4 | PVER="4.2.1" |
5 | PBUILD="r1" |
6 | |
7 | PATCHLEVEL="" |
8 | |
9 | PCAT="dev-libs" |
10 | |
11 | DESCRIPTION="The MPFR library is a C library for multiple-precision floating-point computations with correct rounding." |
12 | HOMEPAGE="http://www.mpfr.org/" |
13 | |
14 | DEPEND=">= dev-libs/gmp-6.3" |
15 | SDEPEND=">= dev-libs/gmp-dev-6.3" |
16 | |
17 | SRCFILE="${PNAME}-${PVER}.tar.xz" |
18 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
19 | |
20 | ALX_PKG_KEEP="usr/$(mlibdir)/*.so.*" |
21 | sminclude mbuild alx-split |
22 | |
23 | SRC_URI=( |
24 | #http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE} |
25 | http://www.mpfr.org/${PNAME}-current/${SRCFILE} |
26 | http://www.mpfr.org/${PNAME}-${PVER}/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | ) |
29 | |
30 | if [[ -n ${PATCHLEVEL} ]] |
31 | then |
32 | SRC_URI+=( mirror://${PNAME}/${PNAME}-${PVER}-p${PATCHLEVEL}.patch ) |
33 | fi |
34 | |
35 | UP2DATE="updatecmd ${HOMEPAGE}/${PNAME}-current | highesttarball xz" |
36 | |
37 | src_prepare() |
38 | { |
39 | munpack ${SRCFILE} || die |
40 | |
41 | if [[ -n ${PATCHLEVEL} ]] |
42 | then |
43 | # -Np1 is required, weird patch |
44 | mpatch -Np1 ${PNAME}-${PVER}-p${PATCHLEVEL}.patch || die |
45 | fi |
46 | } |
47 | |
48 | src_compile() |
49 | { |
50 | cd ${SRCDIR} |
51 | mconfigure --enable-thread-safe || die |
52 | mmake || die |
53 | } |