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