File indexing completed on 2025-01-05 05:12:56
0001 first: all 0002 0003 include ../Makefile.include 0004 0005 include ../libssh2/Makefile.include 0006 include ../libgcrypt/Makefile.include 0007 include ../zlib/Makefile.include 0008 include ../pkg-config-lite/Makefile.include 0009 0010 include Makefile.include 0011 0012 PRODUCT_NAME = libgit2 0013 PRODUCT_VERSION = 0.27.4 0014 PRODUCT_DIRNAME = $(PRODUCT_NAME)-$(PRODUCT_VERSION) 0015 PRODUCT_PORT_SUFFIX = $(TARGET_MACHINE) 0016 PRODUCT_ARCHIVE = $(PRODUCT_NAME)-v$(PRODUCT_VERSION).tar.gz 0017 PRODUCT_ARCHIVE_URL = http://sources.buildroot.net/libgit2/$(PRODUCT_ARCHIVE) 0018 PRODUCT_ARCHIVE_DIR = $(ARCHIVE_DIR) 0019 PRODUCT_ARCHIVE_PATH = $(PRODUCT_ARCHIVE_DIR)/$(PRODUCT_ARCHIVE) 0020 0021 PRODUCT_SOURCE_DIR = $(SOURCE_DIR)/$(PRODUCT_DIRNAME) 0022 0023 PRODUCT_PORT_DIR = $(PORT_DIR)/$(PRODUCT_DIRNAME)-$(PRODUCT_PORT_SUFFIX) 0024 0025 PRODUCT_BUILD_DIR = $(BUILD_DIR)/$(PRODUCT_DIRNAME)-$(PRODUCT_PORT_SUFFIX) 0026 0027 PRODUCT_INSTALL_DIR = $(LIBGIT2_INSTALL_DIR) 0028 PRODUCT_INSTALL_INCLUDE_DIR = $(PRODUCT_INSTALL_DIR)/include 0029 PRODUCT_INSTALL_LIB_DIR = $(PRODUCT_INSTALL_DIR)/bin 0030 0031 PRODUCT_DEPLOY_DIR = $(LIBGIT2_DEPLOY_DIR) 0032 PRODUCT_DEPLOY_INCLUDE_DIR = $(PRODUCT_DEPLOY_DIR)/include 0033 PRODUCT_DEPLOY_LIB_DIR = $(PRODUCT_DEPLOY_DIR)/lib 0034 0035 PRODUCT_CONFIGURE_TXT_PATH = $(BUILD_DIR)/$(PRODUCT_NAME)-$(PRODUCT_VERSION)-$(PRODUCT_PORT_SUFFIX).configure.txt 0036 PRODUCT_README_PORT_MD_PATH = $(PRODUCT_PORT_DIR)/README.$(PRODUCT_PORT_SUFFIX).md 0037 PRODUCT_BUILD_TXT_PATH = $(BUILD_DIR)/$(PRODUCT_NAME)-$(PRODUCT_VERSION)-$(PRODUCT_PORT_SUFFIX).build.txt 0038 0039 PRODUCT_INCLUDE_FILES = git2 git2.h 0040 PRODUCT_INCLUDE_FILES_INSTALL := $(addprefix $(PRODUCT_INSTALL_INCLUDE_DIR)/, $(PRODUCT_INCLUDE_FILES)) 0041 PRODUCT_INCLUDE_FILES_DEPLOY := $(addprefix $(PRODUCT_DEPLOY_INCLUDE_DIR)/, $(PRODUCT_INCLUDE_FILES)) 0042 0043 PRODUCT_LIB_FILES = libgit2.dll 0044 PRODUCT_LIB_FILES_INSTALL = $(addprefix $(PRODUCT_INSTALL_LIB_DIR)/, $(PRODUCT_LIB_FILES)) 0045 PRODUCT_LIB_FILES_DEPLOY = $(addprefix $(PRODUCT_DEPLOY_LIB_DIR)/, $(PRODUCT_LIB_FILES)) 0046 0047 PKG_CONFIG_PATH := $(LIBSSH2_INSTALL_DIR)/lib/pkgconfig:$(ZLIB_INSTALL_DIR)/lib/pkgconfig 0048 PATH := $(LIBGCRYPT_INSTALL_DIR)/bin:$(PATH):/c/Windows/System32 0049 0050 export PATH MAKE PKG_CONFIG_PATH 0051 0052 include ../Makefile.phony 0053 0054 all: deploy 0055 0056 include ../Makefile.deploy 0057 0058 buildinstall $(PRODUCT_LIB_FILES_INSTALL) $(PRODUCT_INCLUDE_FILES_INSTALL): $(PRODUCT_BUILD_TXT_PATH) | $(CD) $(MAKE) $(TOUCH) 0059 $(CD) $(PRODUCT_BUILD_DIR) && $(MAKE) -j 1 install 0060 $(TOUCH) $(PRODUCT_LIB_FILES_INSTALL) 0061 $(TOUCH) $(PRODUCT_INCLUDE_FILES_INSTALL) 0062 0063 include ../Makefile.build 0064 0065 buildconfigure $(PRODUCT_BUILD_DIR)/Makefile: \ 0066 $(PKG-CONFIG-LITE_INSTALL_DIR) \ 0067 $(ZLIB_INSTALL_DIR) \ 0068 $(LIBSSH2_INSTALL_DIR) | $(PRODUCT_BUILD_DIR) $(RM) $(CD) $(CMAKE) $(TEE) 0069 $(RM) -f $(PRODUCT_BUILD_DIR)/CMakeCache.txt 0070 $(CD) $(PRODUCT_BUILD_DIR) && $(CMAKE) $(PRODUCT_PORT_DIR) \ 0071 -DPKG_CONFIG_EXECUTABLE=$(PKG-CONFIG-LITE_INSTALL_DIR)/bin/pkg-config.exe \ 0072 -DZLIB_INCLUDE_DIR=$(ZLIB_INSTALL_DIR)/include -DZLIB_LIBRARY=$(ZLIB_INSTALL_DIR)/bin/zlib1.dll \ 0073 -DCMAKE_PREFIX_PATH=$(LIBSSH2_INSTALL_DIR) \ 0074 -DBUILD_CLAR=OFF \ 0075 -DCMAKE_INSTALL_PREFIX=$(LIBGIT2_INSTALL_DIR) \ 0076 -DCMAKE_BUILD_TYPE=Release \ 0077 -DCMAKE_VERBOSE_MAKEFILE=ON \ 0078 -DTHREADSAFE=ON \ 0079 -G "MSYS Makefiles" \ 0080 2>&1 | $(TEE) $(PRODUCT_CONFIGURE_TXT_PATH) 0081 0082 builddir $(PRODUCT_BUILD_DIR): $(PRODUCT_README_PORT_MD_PATH) | $(MKDIR) $(TOUCH) 0083 $(MKDIR) -p $(PRODUCT_BUILD_DIR) 0084 $(TOUCH) $(PRODUCT_BUILD_DIR) 0085 0086 include ../Makefile.port 0087 0088 include ../Makefile.portdir 0089 0090 sourcedir $(PRODUCT_SOURCE_DIR): $(PRODUCT_ARCHIVE_PATH) | $(MKDIR) $(CD) $(TAR) $(TOUCH) 0091 $(MKDIR) -p $(SOURCE_DIR) 0092 $(CD) $(SOURCE_DIR) && $(TAR) xvfz $(PRODUCT_ARCHIVE_PATH) $(PRODUCT_DIRNAME)/tests/resources/testrepo-worktree/new.txt --force-local 0093 $(CD) $(SOURCE_DIR) && $(TAR) xvfz $(PRODUCT_ARCHIVE_PATH) --force-local 0094 $(TOUCH) $(PRODUCT_SOURCE_DIR) 0095 0096 include ../Makefile.archive 0097 0098 include ../Makefile.clean 0099