Makefile 806 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. PKG_NAME:=mpfr
  9. PKG_VERSION:=2.3.2
  10. PKG_SOURCE_URL:=http://www.mpfr.org/mpfr-2.3.2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_MD5SUM:=527147c097874340cb9cee0579dacf3b
  13. include $(INCLUDE_DIR)/host-build.mk
  14. define Build/Configure
  15. (cd $(PKG_BUILD_DIR); \
  16. ./configure \
  17. --prefix=$(STAGING_DIR_HOST) \
  18. --build=$(GNU_HOST_NAME) \
  19. --enable-static \
  20. --disable-shared \
  21. --with-gmp=$(STAGING_DIR_HOST) \
  22. );
  23. endef
  24. define Build/Compile
  25. make -C $(PKG_BUILD_DIR) all
  26. endef
  27. define Build/Install
  28. make -C $(PKG_BUILD_DIR) install
  29. endef
  30. define Build/Clean
  31. rm -rf $(PKG_BUILD_DIR)
  32. endef
  33. $(eval $(call HostBuild))