53 lines · 1.8 KB · Text
RawDownload
# This file is part of MXE. See LICENSE.md for licensing information. PKG             := gmp$(PKG)_WEBSITE  := https://gmplib.org/$(PKG)_DESCR    := GMP$(PKG)_IGNORE   :=$(PKG)_VERSION  := 6.3.0$(PKG)_CHECKSUM := a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898$(PKG)_SUBDIR   := $(PKG)-$($(PKG)_VERSION)$(PKG)_FILE     := $(PKG)-$($(PKG)_VERSION).tar.xz$(PKG)_URL      := https://gmplib.org/download/$(PKG)/$($(PKG)_FILE)$(PKG)_TARGETS  := $(BUILD) $(MXE_TARGETS)$(PKG)_DEPS     := cc $(PKG)_DEPS_$(BUILD) := define $(PKG)_UPDATE    $(WGET) -q -O- 'https://gmplib.org/' | \    grep '<a href="' | \    $(SED) -n 's,.*gmp-\([0-9][^>]*\)\.tar.*,\1,p' | \    $(SORT) -V | \    tail -1endef define $(PKG)_BUILD    cd '$(1)' && CC_FOR_BUILD=$(BUILD_CC) ./configure \        $(MXE_CONFIGURE_OPTS) \        CFLAGS='-std=gnu99' \        --enable-cxx \        --without-readline    $(MAKE) -C '$(1)' -j '$(JOBS)'    $(MAKE) -C '$(1)' -j 1 install     # build runtime tests to verify toolchain components    -$(MAKE) -C '$(1)' -j '$(JOBS)' check -k    rm -rf '$(PREFIX)/$(TARGET)/bin/$(PKG)-tests'    cp -R '$(1)/tests' '$(PREFIX)/$(TARGET)/bin/$(PKG)-tests'    (printf 'date /t >  all-tests-$(PKG)-$($(PKG)_VERSION).txt\r\n'; \     printf 'time /t >> all-tests-$(PKG)-$($(PKG)_VERSION).txt\r\n'; \     printf 'set PATH=..\\;%%PATH%%\r\n'; \     printf 'for /R %%%%f in (*.exe) do %%%%f || echo %%%%f fail >> all-tests-$(PKG)-$($(PKG)_VERSION).txt\r\n';) \     > '$(PREFIX)/$(TARGET)/bin/$(PKG)-tests/all-tests-$(PKG)-$($(PKG)_VERSION).bat'endef define $(PKG)_BUILD_$(BUILD)    mkdir '$(1).build'    cd    '$(1).build' && '$(1)/configure' \        $(MXE_CONFIGURE_OPTS) \        CC='$(BUILD_CC)' \        CFLAGS='-std=gnu99'    $(MAKE) -C '$(1).build' -j '$(JOBS)' man1_MANS=    $(MAKE) -C '$(1).build' -j 1 install man1_MANS=endef

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t