1 # Copyright © 2016-2018, The AROS Development Team. All rights reserved.
4 include $(SRCDIR)/config/aros.cfg
6 #MM- contrib-development : contrib-development-git
7 #MM contrib-development-git : contrib-development-git-setup contrib-libiconv contrib-curl
8 #MM contrib-development-git-setup : contrib-development-git-fetch contrib-development-git-gendirs
10 GIT_DESTDIR := $(AROS_DEVELOPER)
11 GIT_NATIVEDIR := /$(AROS_DIR_DEVELOPER)
14 UNAME="$(CROSSTOOLSDIR)/$(AROS_TARGET_CPU)-aros-uname"
16 ac_cv_fread_reads_directories="no" \
17 ac_cv_snprintf_returns_bogus="no" \
18 CURL_CONFIG="$(AROS_DEVELOPER)/bin/curl-config" \
21 DESTDIR_SQ="$(AROSDIR)" \
27 --with-lib='$(AROS_LIB)'
30 GIT_PORTDIR := $(PORTSDIR)/git
32 GIT_ARCHBASE := v$(GIT_VERSION)
33 GIT_ARCHDIR := git-$(GIT_VERSION)
35 BUILD_ENV := $(GIT_ENV)
37 # uncomment to get verbose build output..
38 # BUILD_ENV := V=1 $(BUILD_ENV)
40 USER_INCLUDES := -I$(AROS_CONTRIB_INCLUDES)
41 USER_LDFLAGS := -L$(AROS_CONTRIB_LIB)
44 contrib-development-git-setup :
45 @$(IF) $(TEST) -d $(GIT_PORTDIR)/$(GIT_ARCHDIR) \
46 && ! $(TEST) -f $(GIT_PORTDIR)/$(GIT_ARCHDIR)/configure ; then \
47 cd $(GIT_PORTDIR)/$(GIT_ARCHDIR) && $(MAKE) configure; \
50 %fetch mmake=contrib-development-git-fetch archive=$(GIT_ARCHBASE) suffixes="tar.gz" \
51 location=$(PORTSSOURCEDIR) destination=$(GIT_PORTDIR) \
52 archive_origins=". https://github.com/git/git/archive" \
53 patches_specs="$(GIT_ARCHBASE)-aros.diff:$(GIT_ARCHDIR):-f,-p1" patches_origins="$(SRCDIR)/$(CURDIR)"
55 GIT_PATCHIGNORE := autom4te.cache configure GIT-VERSION-FILE
57 %create_patch mmake=contrib-development-git-create-patch archive=$(GIT_ARCHBASE) \
58 srcdir=$(GIT_ARCHDIR) suffixes="tar.gz" destination=$(GIT_PORTDIR) excludes="$(GIT_PATCHIGNORE)"
60 NOWARN_FLAGS := $(NOWARN_IMPLICIT_FUNCTION_DECLARATION)
61 USER_CFLAGS := $(NOWARN_FLAGS)
63 %build_with_configure mmake=contrib-development-git compiler=target \
64 srcdir=$(GIT_PORTDIR)/$(GIT_ARCHDIR) prefix="$(GIT_NATIVEDIR)" gnuflags=no nix=yes \
65 config_env_extra="$(GIT_CONFIG_ENV)" install_env="$(GIT_INSTALL_ENV)" extraoptions="$(GIT_OPTIONS)"
68 contrib-development-git-gendirs:
69 $(MKDIR) $(GENDIR)/$(CURDIR)