genode/repos/ports/ports/gcc.port
Christian Prochaska 48cc52be07 tool chain: tool check cleanup
- look for autoconf 2.69 on Ubuntu 22.04
- remove obsolete checks
- add new checks

Fixes #4622
2022-10-12 12:09:35 +02:00

50 lines
1.4 KiB
Plaintext

LICENSE := GPLv3
VERSION := 10.3.0
DOWNLOADS := gcc.archive
URL(gcc) := ftp://ftp.fu-berlin.de/gnu/gcc/gcc-$(VERSION)/gcc-$(VERSION).tar.xz
SHA(gcc) := 64f404c1a650f27fc33da242e1f2df54952e3963a49e06e73f6940f3223ac344
SIG(gcc) := ${URL(gcc)}.sig
KEY(gcc) := GNU
DIR(gcc) := src/noux-pkg/gcc
PATCHES := $(addprefix ${DIR(gcc)}/patches/, \
$(shell cat $(REP_DIR)/${DIR(gcc)}/patches/series))
PATCH_OPT := -p1 -d ${DIR(gcc)}
HASH_INPUT += $(REP_DIR)/${DIR(gcc)}/patches/series
AUTOCONF_VERSION = 2.69
AUTOCONF_VERSION_STRING = "autoconf (GNU Autoconf) $(AUTOCONF_VERSION)"
ifneq ($(shell autoconf -V | grep $(AUTOCONF_VERSION_STRING)),)
AUTOCONF = autoconf
else
ifneq ($(shell which autoconf$(AUTOCONF_VERSION)),)
AUTOCONF = autoconf$(AUTOCONF_VERSION)
else
ifneq ($(shell which autoconf-$(AUTOCONF_VERSION)),)
AUTOCONF = autoconf-$(AUTOCONF_VERSION)
else
$(error Need to have 'autoconf' version $(AUTOCONF_VERSION) installed)
endif
endif
endif
$(call check_tool,autogen)
default: _patch
@#
@# Download prerequisites
@#
$(VERBOSE)cd ${DIR(gcc)}; contrib/download_prerequisites
@#
@# Re-generate configure scripts
@#
$(VERBOSE)cd ${DIR(gcc)}; autogen Makefile.def
$(VERBOSE)cd ${DIR(gcc)}/libgcc; $(AUTOCONF)
$(VERBOSE)cd ${DIR(gcc)}/libstdc++-v3; $(AUTOCONF)
$(VERBOSE)cd ${DIR(gcc)}/gcc; $(AUTOCONF)
$(VERBOSE)cd ${DIR(gcc)}; $(AUTOCONF)
$(VERBOSE)touch $@