2 # Copyright (C) 2023 Jeffery To
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE_URL
:=@GNU
/mpfr http
://www.mpfr.org
/mpfr-
$(PKG_VERSION
)
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
16 PKG_HASH
:=06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
18 PKG_LICENSE
:=LGPL-3.0
-or-later
19 PKG_LICENSE_FILES
:=COPYING.LESSER
20 PKG_MAINTAINER
:=Jeffery To
<jeffery.to@gmail.com
>
21 PKG_CPE_ID
:=cpe
:/a
:mpfr
:gnu_mpfr
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/libmpfr
32 TITLE
:=GNU MPFR library
33 URL
:=https
://www.mpfr.org
/
38 define Package
/libmpfr
/description
39 MPFR is a portable library written in C for arbitrary precision
40 arithmetic on floating-point numbers. It is based on the GNU MP library.
41 It aims to provide a class of floating-point numbers with precise
48 define Build
/InstallDev
49 $(INSTALL_DIR
) $(1)/usr
/include
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/mpf
* $(1)/usr
/include/
52 $(INSTALL_DIR
) $(1)/usr
/lib
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libmpfr.
{a
,so
*} $(1)/usr
/lib
/
55 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/mpfr.
pc $(1)/usr
/lib
/pkgconfig
/
59 define Package
/libmpfr
/install
60 $(INSTALL_DIR
) $(1)/usr
/lib
61 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libmpfr.so.
* $(1)/usr
/lib
/
64 $(eval
$(call BuildPackage
,libmpfr
))