Fix i2c module dependencies (#1525)
[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
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libgmp
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=GNU multiprecision arithmetic library
25 URL:=http://www.swox.com/gmp/
26 endef
27
28 CONFIGURE_VARS += CC="$(TARGET_CROSS)gcc"
29 CONFIGURE_ARGS += \
30 --enable-shared \
31 --enable-static \
32
33 define Build/Compile
34 $(call Build/Compile/Default, \
35 DESTDIR="$(PKG_INSTALL_DIR)" \
36 CC="$(TARGET_CC)" \
37 all install \
38 )
39 endef
40
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/
46 endef
47
48 define Build/UninstallDev
49 rm -rf $(STAGING_DIR)/usr/include/gmp* \
50 $(STAGING_DIR)/usr/lib/libgmp.{a,so*}
51 endef
52
53 define Package/libgmp/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.so.* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,libgmp))
This page took 0.042436 seconds and 5 git commands to generate.