2 # Copyright (C) 2006-2016 OpenWrt.org
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
:=$(PKG_NAME
)-$(PKG_VERSION
)$(PKG_REVISION
).
tar.xz
15 PKG_SOURCE_URL
:=@GNU
/gmp
/
16 PKG_HASH
:=fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
21 PKG_LICENSE
:=GPL-2.0
-or-later
22 PKG_CPE_ID
:=cpe
:/a
:gmplib
:gmp
24 PKG_BUILD_FLAGS
:=no-mips16
26 include $(INCLUDE_DIR
)/host-build.mk
27 include $(INCLUDE_DIR
)/package.mk
32 TITLE
:=GNU multiprecision arithmetic library
33 URL
:=http
://gmplib.org
/
37 define Package
/libgmp
/description
38 GMP is a free library for arbitrary precision arithmetic
, operating on
39 signed integers
, rational numbers
, and floating point numbers.
42 TARGET_CFLAGS
+= $(FPIC
)
43 CONFIGURE_VARS
+= CC
="$(TARGET_CROSS)gcc"
51 $(call Build
/Compile
/Default
, \
52 DESTDIR
="$(PKG_INSTALL_DIR)" \
58 define Build
/InstallDev
59 $(INSTALL_DIR
) $(1)/usr
/include
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/gmp
* $(1)/usr
/include/
61 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgmp.
{a
,so
*} $(1)/usr
/lib
/
65 define Package
/libgmp
/install
66 $(INSTALL_DIR
) $(1)/usr
/lib
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgmp.so.
* $(1)/usr
/lib
/
70 $(eval
$(call BuildPackage
,libgmp
))
71 $(eval
$(call HostBuild
))