forgotten commit. disabled until egl is adapted.
[AROS-Contrib.git] / development / scm / git / mmakefile.src
blobda5c64a74421c06064b31d73f1a6e99afc9f3d93
1 # Copyright © 2016-2018, The AROS Development Team. All rights reserved.
2 # $Id$
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)
13 GIT_ENV := \
14            UNAME="$(CROSSTOOLSDIR)/$(AROS_TARGET_CPU)-aros-uname"
15 GIT_CONFIG_ENV := \
16             ac_cv_fread_reads_directories="no" \
17             ac_cv_snprintf_returns_bogus="no" \
18             CURL_CONFIG="$(AROS_DEVELOPER)/bin/curl-config" \
19             $(GIT_ENV)
20 GIT_INSTALL_ENV := \
21             DESTDIR_SQ="$(AROSDIR)" \
22             $(GIT_ENV)
24 GIT_OPTIONS := \
25             --without-tcltk \
26             --with-curl \
27             --with-lib='$(AROS_LIB)'
29 GIT_VERSION := 2.17.1
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)
43 #MM
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; \
48         fi
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)"
67 #MM
68 contrib-development-git-gendirs:
69         $(MKDIR) $(GENDIR)/$(CURDIR)
71 %common