Magellan Linux

Annotation of /smage/trunk/core/mpfr/mpfr-4.0.2-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13905 - (hide annotations) (download)
Sat Jun 27 17:21:20 2020 UTC (3 years, 10 months ago) by niro
File size: 1009 byte(s)
auto added: ver bump to 4.0.2-r4
1 niro 13905 # $Id$
2    
3     PNAME="mpfr"
4     PVER="4.0.2"
5     PBUILD="r4"
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.2"
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     }