1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-19 09:26:14 +02:00
openwrt-packages/libmpc/Makefile
2011-03-15 13:07:52 +03:00

56 lines
1.1 KiB
Makefile

#
# 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))