2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=@GNU
/gmp
17 PKG_MD5SUM
:=091c56e0e1cca6b09b17b69d47ef18e3
19 include $(INCLUDE_DIR
)/package.mk
24 TITLE
:=GNU multiprecision arithmetic library
25 URL
:=http
://www.swox.com
/gmp
/
28 CONFIGURE_VARS
+= CC
="$(TARGET_CROSS)gcc"
34 $(call Build
/Compile
/Default
, \
35 DESTDIR
="$(PKG_INSTALL_DIR)" \
41 define Build
/InstallDev
42 mkdir
-p
$(STAGING_DIR
)/usr
/include
43 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/gmp
* $(STAGING_DIR
)/usr
/include/
44 mkdir
-p
$(STAGING_DIR
)/usr
/lib
45 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgmp.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
48 define Build
/UninstallDev
49 rm -rf
$(STAGING_DIR
)/usr
/include/gmp
* \
50 $(STAGING_DIR
)/usr
/lib
/libgmp.
{a
,so
*}
53 define Package
/libgmp
/install
54 $(INSTALL_DIR
) $(1)/usr
/lib
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgmp.so.
* $(1)/usr
/lib
/
58 $(eval
$(call BuildPackage
,libgmp
))