don't use the bsdsocket library defines since they conflict with structure elements.
[AROS-Contrib.git] / development / scm / git / mmakefile.src
blob3edfa9ace0c140797b0d69b79988ad96ff6e59b1
1 # Copyright © 2016-2017, The AROS Development Team. All rights reserved.
2 # $Id$
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)
10 GIT_CONFIG_ENV := \
11             ac_cv_fread_reads_directories="no" \
12             ac_cv_snprintf_returns_bogus="no" \
13             UNAME="$(TOOLDIR)/uname"
15 GIT_VERSION := 2.12.2
16 GIT_PORTDIR := $(PORTSDIR)/git
18 GIT_ARCHBASE := v$(GIT_VERSION)
19 GIT_ARCHDIR := git-$(GIT_VERSION)
21 # uncomment to get verbose build output..
22 # BUILD_ENV := V=1
24 #MM
25 contrib-development-git-setup :
26         @$(IF) $(TEST) -d $(GIT_PORTDIR)/$(GIT_ARCHDIR) \
27             && ! $(TEST) -f $(GIT_PORTDIR)/$(GIT_ARCHDIR)/configure ; then \
28                cd $(GIT_PORTDIR)/$(GIT_ARCHDIR) && $(MAKE) configure ; \
29         fi
31 %fetch mmake=contrib-development-git-fetch archive=$(GIT_ARCHBASE) suffixes="tar.gz" \
32     location=$(PORTSSOURCEDIR) destination=$(GIT_PORTDIR) \
33     archive_origins=". https://github.com/git/git/archive" \
34     patches_specs="$(GIT_ARCHBASE)-aros.diff:$(GIT_ARCHDIR):-f,-p1" patches_origins="$(SRCDIR)/$(CURDIR)"
36 GIT_PATCHIGNORE := autom4te.cache configure GIT-VERSION-FILE
38 %create_patch mmake=contrib-development-git-create-patch archive=$(GIT_ARCHBASE) \
39     srcdir=$(GIT_ARCHDIR) suffixes="tar.gz" destination=$(GIT_PORTDIR) excludes="$(GIT_PATCHIGNORE)"
41 NOAWRN_FLAGS := $(NOWARN_IMPLICIT_FUNCTION_DECLARATION)
42 USER_CFLAGS := $(NOAWRN_FLAGS) -DBSDSOCKET_NOLIBDEFINES
44 %build_with_configure mmake=contrib-development-git compiler=target             \
45         srcdir=$(GIT_PORTDIR)/$(GIT_ARCHDIR) prefix="$(DESTDIR)" nix=yes                \
46         config_env_extra="$(GIT_CONFIG_ENV)"