mxe/src/gc.mk

31 lines
1019 B
Makefile
Raw Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2010-04-15 01:23:55 +01:00
PKG := gc
$(PKG)_WEBSITE := http://www.hpl.hp.com/personal/Hans_Boehm/gc/
2010-04-15 01:23:55 +01:00
$(PKG)_IGNORE :=
$(PKG)_VERSION := 7.6.0
$(PKG)_CHECKSUM := a14a28b1129be90e55cd6f71127ffc5594e1091d5d54131528c24cd0c03b7d90
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
2010-04-15 01:23:55 +01:00
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
2017-03-05 03:41:39 +00:00
$(PKG)_URL := https://hboehm.info/$(PKG)/$(PKG)_source/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libatomic_ops
2010-04-15 01:23:55 +01:00
define $(PKG)_UPDATE
2017-03-05 03:41:39 +00:00
$(WGET) -q -O- 'https://hboehm.info/gc/gc_source/' | \
2010-04-15 01:23:55 +01:00
grep '<a href="gc-' | \
$(SED) -n 's,.*<a href="gc-\([0-9][^"]*\)\.tar.*,\1,p' | \
grep -v 'alpha' | \
$(SORT) -Vr | \
2010-04-15 01:23:55 +01:00
head -1
endef
define $(PKG)_BUILD
# build and install the library
cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \
$(MXE_CONFIGURE_OPTS) \
2010-04-15 01:23:55 +01:00
--enable-threads=win32 \
--enable-cplusplus
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
2010-04-15 01:23:55 +01:00
endef