1 # Copyright © 2016-2017, The AROS Development Team. All rights reserved.
4 include $(SRCDIR)/config/aros.cfg
6 #MM contrib-development-git : contrib-development-git-setup
7 #MM contrib-development-git-setup : contrib-development-git-fetch
9 DESTDIR := $(AROS_DEVELOPER)
11 ac_cv_fread_reads_directories="no" \
12 ac_cv_snprintf_returns_bogus="no" \
13 UNAME="$(TOOLDIR)/uname"
16 GIT_PORTDIR := $(PORTSDIR)/git
18 GIT_ARCHBASE := v$(GIT_VERSION)
19 GIT_ARCHDIR := git-$(GIT_VERSION)
22 contrib-development-git-setup :
23 @$(IF) $(TEST) -d $(GIT_PORTDIR)/$(GIT_ARCHDIR) \
24 && ! $(TEST) -f $(GIT_PORTDIR)/$(GIT_ARCHDIR)/configure ; then \
25 cd $(GIT_PORTDIR)/$(GIT_ARCHDIR) && $(MAKE) configure ; \
28 %fetch mmake=contrib-development-git-fetch archive=$(GIT_ARCHBASE) suffixes="tar.gz" \
29 location=$(PORTSSOURCEDIR) destination=$(GIT_PORTDIR) \
30 archive_origins=". https://github.com/git/git/archive" \
31 patches_specs="$(GIT_ARCHBASE)-aros.diff:$(GIT_ARCHDIR):-f,-p1" patches_origins="$(SRCDIR)/$(CURDIR)"
33 GIT_PATCHIGNORE := autom4te.cache configure GIT-VERSION-FILE
35 %create_patch mmake=contrib-development-git-create-patch archive=$(GIT_ARCHBASE) \
36 srcdir=$(GIT_ARCHDIR) suffixes="tar.gz" destination=$(GIT_PORTDIR) excludes="$(GIT_PATCHIGNORE)"
38 NOAWRN_FLAGS := $(NOWARN_IMPLICIT_FUNCTION_DECLARATION)
39 USER_CFLAGS := $(NOAWRN_FLAGS)
41 %build_with_configure mmake=contrib-development-git compiler=target \
42 srcdir=$(GIT_PORTDIR)/$(GIT_ARCHDIR) prefix="$(DESTDIR)" nix=yes \
43 config_env_extra="$(GIT_CONFIG_ENV)"