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
:=0aa7d3b3f5b5ec5951e7dddd6f65e891
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
28 TITLE
:=GNU multiprecision arithmetic library
29 URL
:=http
://www.swox.com
/gmp
/
32 define Build
/Configure
33 $(call Build
/Configure
/Default
, \
36 CC
="$(TARGET_CROSS)gcc" \
41 $(call Build
/Compile
/Default
, \
42 DESTDIR
="$(PKG_INSTALL_DIR)" \
48 define Build
/InstallDev
49 mkdir
-p
$(STAGING_DIR
)/usr
/include
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/gmp
* $(STAGING_DIR
)/usr
/include/
51 mkdir
-p
$(STAGING_DIR
)/usr
/lib
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgmp.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
55 define Build
/UninstallDev
56 rm -rf
$(STAGING_DIR
)/usr
/include/gmp
* \
57 $(STAGING_DIR
)/usr
/lib
/libgmp.
{a
,so
*}
60 define Package
/libgmp
/install
61 install -m0755
-d
$(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgmp.so.
* $(1)/usr
/lib
/
65 $(eval
$(call BuildPackage
,libgmp
))