Root/libmpc/Makefile

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#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=mpc
10PKG_VERSION:=0.8.2
11
12PKG_SOURCE_URL:=http://www.multiprecision.org/mpc/download/
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14PKG_MD5SUM:=e98267ebd5648a39f881d66797122fb6
15
16include $(INCLUDE_DIR)/package.mk
17
18PKG_INSTALL:=1
19
20define Package/libmpc
21    TITLE:=libmpc
22    SECTION:=libs
23    CATEGORY:=Libraries
24    URL:=http://www.multiprecision.org
25    DEPENDS:=+libgmp +mpfr
26endef
27
28
29CONFIGURE_ARGS += \
30    --enable-static \
31    --enable-shared \
32    --with-mpfr=$(STAGING_DIR)/usr \
33    --with-gmp=$(STAGING_DIR)/usr
34
35define Build/InstallDev
36    $(INSTALL_DIR) \
37        $(1)/usr/include \
38        $(1)/usr/lib
39    $(CP) \
40        $(PKG_INSTALL_DIR)/usr/lib/* \
41        $(1)/usr/lib/
42    $(CP) \
43        $(PKG_INSTALL_DIR)/usr/include/* \
44        $(1)/usr/include/
45endef
46
47define Package/libmpc/install
48    $(INSTALL_DIR) \
49        $(1)/usr/lib
50    $(CP) \
51        $(PKG_INSTALL_DIR)/usr/lib/libmpc.so* \
52        $(1)/usr/lib/
53endef
54
55$(eval $(call BuildPackage,libmpc))
56

Archive Download this file



interactive