File indexing completed on 2025-01-05 05:12:55
0001 first: all 0002 0003 include ../Makefile.include 0004 0005 include ../libiconv/Makefile.include 0006 0007 include Makefile.include 0008 0009 PRODUCT_NAME = gettext 0010 PRODUCT_VERSION = 0.19.8.1 0011 PRODUCT_DIRNAME = $(PRODUCT_NAME)-$(PRODUCT_VERSION) 0012 PRODUCT_PORT_SUFFIX = $(TARGET_MACHINE) 0013 0014 PRODUCT_ARCHIVE = $(PRODUCT_NAME)-$(PRODUCT_VERSION).tar.gz 0015 PRODUCT_ARCHIVE_URL = ftp://ftp.gnu.org/pub/gnu/gettext/$(PRODUCT_ARCHIVE) 0016 PRODUCT_ARCHIVE_DIR = $(ARCHIVE_DIR) 0017 PRODUCT_ARCHIVE_PATH = $(PRODUCT_ARCHIVE_DIR)/$(PRODUCT_ARCHIVE) 0018 0019 PRODUCT_SOURCE_DIR = $(SOURCE_DIR)/$(PRODUCT_DIRNAME) 0020 0021 PRODUCT_PORT_DIR = $(PORT_DIR)/$(PRODUCT_DIRNAME)-$(PRODUCT_PORT_SUFFIX) 0022 0023 PRODUCT_BUILD_DIR = $(BUILD_DIR)/$(PRODUCT_DIRNAME)-$(PRODUCT_PORT_SUFFIX) 0024 0025 PRODUCT_INSTALL_DIR = $(GETTEXT_INSTALL_DIR) 0026 PRODUCT_INSTALL_INCLUDE_DIR = $(PRODUCT_INSTALL_DIR)/include 0027 PRODUCT_INSTALL_LIB_DIR = $(PRODUCT_INSTALL_DIR)/bin 0028 0029 PRODUCT_DEPLOY_DIR = $(GETTEXT_DEPLOY_DIR) 0030 PRODUCT_DEPLOY_INCLUDE_DIR = $(PRODUCT_DEPLOY_DIR)/include 0031 PRODUCT_DEPLOY_LIB_DIR = $(PRODUCT_DEPLOY_DIR)/lib 0032 0033 PRODUCT_CONFIGURE_TXT_PATH = $(BUILD_DIR)/$(PRODUCT_NAME)-$(PRODUCT_VERSION)-$(PRODUCT_PORT_SUFFIX).configure.txt 0034 PRODUCT_README_PORT_MD_PATH = $(PRODUCT_PORT_DIR)/README.$(PRODUCT_PORT_SUFFIX).md 0035 PRODUCT_BUILD_TXT_PATH = $(BUILD_DIR)/$(PRODUCT_NAME)-$(PRODUCT_VERSION)-$(PRODUCT_PORT_SUFFIX).build.txt 0036 0037 PRODUCT_INCLUDE_FILES = autosprintf.h gettext-po.h libintl.h 0038 PRODUCT_INCLUDE_FILES_INSTALL = $(addprefix $(PRODUCT_INSTALL_INCLUDE_DIR)/, $(PRODUCT_INCLUDE_FILES)) 0039 PRODUCT_INCLUDE_FILES_DEPLOY = $(addprefix $(PRODUCT_DEPLOY_INCLUDE_DIR)/, $(PRODUCT_INCLUDE_FILES)) 0040 0041 PRODUCT_LIB_FILES = libintl-8.dll 0042 PRODUCT_LIB_FILES_INSTALL = $(addprefix $(PRODUCT_INSTALL_LIB_DIR)/, $(PRODUCT_LIB_FILES)) 0043 PRODUCT_LIB_FILES_DEPLOY = $(addprefix $(PRODUCT_DEPLOY_LIB_DIR)/, $(PRODUCT_LIB_FILES)) 0044 0045 PATH := $(LIBICONV_INSTALL_DIR)/bin:$(PATH) 0046 0047 export PATH MAKE 0048 0049 include ../Makefile.phony 0050 0051 all: deploy 0052 0053 include ../Makefile.deploy 0054 0055 # Parallel install of gettext seems to cause conflicting access to some files, so force a single job. 0056 buildinstall $(PRODUCT_LIB_FILES_INSTALL) $(PRODUCT_INCLUDE_FILES_INSTALL): $(PRODUCT_BUILD_TXT_PATH) | $(CD) $(MAKE) 0057 $(CD) $(PRODUCT_BUILD_DIR) && $(MAKE) -j 1 install 0058 0059 build $(PRODUCT_BUILD_TXT_PATH): $(PRODUCT_BUILD_DIR)/Makefile | $(CD) $(MAKE) $(TEE) $(CMD) 0060 $(CD) $(PRODUCT_BUILD_DIR) && $(MAKE) -j $(MAKE_BUILD_JOBS) CFLAGS+='-g0' 2>&1 | $(TEE) $(PRODUCT_BUILD_TXT_PATH) 0061 0062 buildconfigure $(PRODUCT_BUILD_DIR)/Makefile: $(PRODUCT_BUILD_DIR)/configure \ 0063 $(LIBICONV_INSTALL_DIR) | $(CD) $(SH) $(TEE) $(AWK) $(SED) $(CMD) 0064 $(CD) $(PRODUCT_BUILD_DIR) && $(SH) configure --host=$(HOST_MACHINE) --build=$(BUILD_MACHINE) \ 0065 --enable-relocatable \ 0066 --prefix=$(PRODUCT_INSTALL_DIR) \ 0067 --with-libiconv-prefix=$(LIBICONV_INSTALL_DIR) \ 0068 --disable-rpath \ 0069 2>&1 | $(TEE) $(PRODUCT_CONFIGURE_TXT_PATH) 0070 0071 include ../Makefile.builddir 0072 0073 port $(PRODUCT_README_PORT_MD_PATH): README.md $(PRODUCT_PORT_DIR) | $(PATCH) $(CP) $(TOUCH) 0074 $(PATCH) -d $(PRODUCT_PORT_DIR) -p1 < 0001-fix-msginit.patch 0075 $(PATCH) -d $(PRODUCT_PORT_DIR) -p1 < 0002-add-GETTEXTIOENCODING-support.patch 0076 $(PATCH) -d $(PRODUCT_PORT_DIR) -p1 < 0003-move-cldr-plurals.patch 0077 $(PATCH) -d $(PRODUCT_PORT_DIR) -p1 -Z < 0004-fix-gl_cv_prog_as_underscore-test.patch 0078 $(PATCH) -d $(PRODUCT_PORT_DIR) -p1 < 0005-improve-plural-rules-detection.patch 0079 $(CP) README.md $(PRODUCT_README_PORT_MD_PATH) 0080 $(TOUCH) $(PRODUCT_README_PORT_MD_PATH) 0081 0082 include ../Makefile.portdir 0083 0084 include ../Makefile.sourcedir 0085 0086 include ../Makefile.archive 0087 0088 include ../Makefile.clean 0089