OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
1 | # |
2 | # Copyright (C) 2009 OpenWrt.org |
3 | # |
4 | # This is free software, licensed under the GNU General Public License v2. |
5 | # See /LICENSE for more information. |
6 | # |
7 | include $(TOPDIR)/rules.mk |
8 | |
9 | PKG_NAME:=mpfr |
10 | PKG_VERSION:=2.4.1 |
11 | |
12 | PKG_SOURCE_URL:=http://www.mpfr.org/mpfr-$(PKG_VERSION) |
13 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
14 | PKG_MD5SUM:=c5ee0a8ce82ad55fe29ac57edd35d09e |
15 | PKG_FIXUP:=libtool |
16 | |
17 | include $(INCLUDE_DIR)/package.mk |
18 | PKG_INSTALL=1 |
19 | define Package/mpfr |
20 | TITLE:=mpfr |
21 | SECTION:=libs |
22 | CATEGORY:=Libraries |
23 | URL:=http://www.mpfr.org |
24 | DEPENDS:=+libgmp |
25 | endef |
26 | |
27 | CONFIGURE_ARGS += \ |
28 | --enable-static \ |
29 | --enable-shared |
30 | |
31 | define Build/InstallDev |
32 | $(INSTALL_DIR) \ |
33 | $(1)/usr/include \ |
34 | $(1)/usr/lib |
35 | $(CP) \ |
36 | $(PKG_INSTALL_DIR)/usr/lib/* \ |
37 | $(1)/usr/lib/ |
38 | $(CP) \ |
39 | $(PKG_INSTALL_DIR)/usr/include/* \ |
40 | $(1)/usr/include/ |
41 | endef |
42 | |
43 | define Package/mpfr/install |
44 | $(INSTALL_DIR) \ |
45 | $(1)/usr/lib |
46 | $(CP) \ |
47 | $(PKG_INSTALL_DIR)/usr/lib/libmpfr.so* \ |
48 | $(1)/usr/lib/ |
49 | endef |
50 | |
51 | $(eval $(call BuildPackage,mpfr)) |
52 |