upgrade the ixp4xx ethernet driver to v0.3.1, split the Gateway 7001 support to two...
[openwrt.git] / package / gmp / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=gmp
12 PKG_VERSION:=4.1.4
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@GNU/gmp
17 PKG_MD5SUM:=0aa7d3b3f5b5ec5951e7dddd6f65e891
18 PKG_CAT:=bzcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libgmp
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=GNU multiprecision arithmetic library
29 URL:=http://www.swox.com/gmp/
30 endef
31
32 CONFIGURE_VARS += CC="$(TARGET_CROSS)gcc"
33 CONFIGURE_ARGS += \
34 --enable-shared \
35 --enable-static \
36
37 define Build/Compile
38 $(call Build/Compile/Default, \
39 DESTDIR="$(PKG_INSTALL_DIR)" \
40 CC="$(TARGET_CC)" \
41 all install \
42 )
43 endef
44
45 define Build/InstallDev
46 mkdir -p $(STAGING_DIR)/usr/include
47 $(CP) $(PKG_INSTALL_DIR)/usr/include/gmp* $(STAGING_DIR)/usr/include/
48 mkdir -p $(STAGING_DIR)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.{a,so*} $(STAGING_DIR)/usr/lib/
50 endef
51
52 define Build/UninstallDev
53 rm -rf $(STAGING_DIR)/usr/include/gmp* \
54 $(STAGING_DIR)/usr/lib/libgmp.{a,so*}
55 endef
56
57 define Package/libgmp/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.so.* $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,libgmp))
This page took 0.043975 seconds and 5 git commands to generate.