Magellan Linux

Contents of /smage/branches/alx07x-stable/core/mpfr/mpfr-4.0.2-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13529 - (show annotations) (download)
Fri Jul 12 11:57:30 2019 UTC (4 years, 9 months ago) by niro
File size: 1009 byte(s)
-release branches/alx07x-stable
1 # $Id$
2
3 PNAME="mpfr"
4 PVER="4.0.2"
5 PBUILD="r2"
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-dev-6.0"
15
16 SRCFILE="${PNAME}-${PVER}.tar.xz"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 sminclude multilib mbuild
20
21 SRC_URI=(
22 #http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE}
23 http://www.mpfr.org/${PNAME}-current/${SRCFILE}
24 http://www.mpfr.org/${PNAME}-${PVER}/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 )
27
28 if [[ -n ${PATCHLEVEL} ]]
29 then
30 SRC_URI+=( mirror://${PNAME}/${PNAME}-${PVER}-p${PATCHLEVEL}.patch )
31 fi
32
33 UP2DATE="updatecmd ${HOMEPAGE}/${PNAME}-current | lasttarball xz"
34
35 src_prepare()
36 {
37 munpack ${SRCFILE} || die
38
39 if [[ -n ${PATCHLEVEL} ]]
40 then
41 # -Np1 is required, weird patch
42 mpatch -Np1 ${PNAME}-${PVER}-p${PATCHLEVEL}.patch || die
43 fi
44 }
45
46 src_compile()
47 {
48 mconfigure --enable-thread-safe || die
49 mmake || die
50 }