mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-21 23:31:54 +02:00
package libmpc
This commit is contained in:
parent
ea53255c62
commit
bf897ad3bd
55
libmpc/Makefile
Normal file
55
libmpc/Makefile
Normal 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))
|
Loading…
Reference in New Issue
Block a user