Magellan Linux

Contents of /smage/branches/alx07x-unstable/core/mpfr/mpfr-3.1.5-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10783 - (show annotations) (download)
Thu Aug 31 08:17:46 2017 UTC (6 years, 7 months ago) by niro
File size: 1010 byte(s)
-release branches/alx07x-unstable
1 # $Id$
2
3 PNAME="mpfr"
4 PVER="3.1.5"
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 mbuild multilib
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 }