Makefile 778 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # Copyright (C) 2009-2016 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:=6.2.1
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  11. PKG_SOURCE_URL:=@GNU/gmp/
  12. PKG_HASH:=fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
  13. PKG_CPE_ID:=cpe:/a:gmplib:gmp
  14. HOST_FIXUP:=autoreconf
  15. HOST_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/host-build.mk
  17. unexport CFLAGS
  18. HOST_CONFIGURE_ARGS += \
  19. --enable-static \
  20. --disable-shared \
  21. --disable-assembly \
  22. --enable-cxx
  23. ifeq ($(GNU_HOST_NAME),x86_64-linux-gnux32)
  24. HOST_CONFIGURE_ARGS += ABI=x32
  25. endif
  26. define Host/Uninstall
  27. -$(call Host/Compile/Default,uninstall)
  28. endef
  29. $(eval $(call HostBuild))