package libmpc

This commit is contained in:
kyak 2011-03-15 13:07:52 +03:00
parent ea53255c62
commit bf897ad3bd
1 changed files with 55 additions and 0 deletions

55
libmpc/Makefile Normal file
View File

@ -0,0 +1,55 @@
#
# Copyright (C) 2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=mpc
PKG_VERSION:=0.8.2
PKG_SOURCE_URL:=http://www.multiprecision.org/mpc/download/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=e98267ebd5648a39f881d66797122fb6
include $(INCLUDE_DIR)/package.mk
PKG_INSTALL:=1
define Package/libmpc
TITLE:=libmpc
SECTION:=libs
CATEGORY:=Libraries
URL:=http://www.multiprecision.org
DEPENDS:=+libgmp +mpfr
endef
CONFIGURE_ARGS += \
--enable-static \
--enable-shared \
--with-mpfr=$(STAGING_DIR)/usr \
--with-gmp=$(STAGING_DIR)/usr
define Build/InstallDev
$(INSTALL_DIR) \
$(1)/usr/include \
$(1)/usr/lib
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/* \
$(1)/usr/lib/
$(CP) \
$(PKG_INSTALL_DIR)/usr/include/* \
$(1)/usr/include/
endef
define Package/libmpc/install
$(INSTALL_DIR) \
$(1)/usr/lib
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libmpc.so* \
$(1)/usr/lib/
endef
$(eval $(call BuildPackage,libmpc))