Makefile 792 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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:=gmp
  9. PKG_VERSION:=4.3.1
  10. PKG_SOURCE_URL:=@GNU/gmp/
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_MD5SUM:=26cec15a90885042dd4a15c4003b08ae
  13. include $(INCLUDE_DIR)/host-build.mk
  14. unexport CFLAGS
  15. ifeq ($(HOST_OS),Darwin)
  16. GNU_HOST_NAME:=
  17. HOST_CONFIGURE_ARGS:=$(filter-out --target= --build= --host=,$(HOST_CONFIGURE_ARGS))
  18. endif
  19. HOST_CONFIGURE_ARGS += \
  20. --enable-static \
  21. --disable-shared \
  22. --enable-cxx \
  23. --enable-mpbsd
  24. define Host/Configure
  25. (cd $(HOST_BUILD_DIR)/$(3); \
  26. $(HOST_CONFIGURE_CMD) \
  27. $(HOST_CONFIGURE_VARS) \
  28. $(HOST_CONFIGURE_ARGS); \
  29. )
  30. endef
  31. $(eval $(call HostBuild))