File indexing completed on 2025-01-05 05:12:56
0001 first: all 0002 0003 include ../Makefile.include 0004 include Makefile.include 0005 0006 PRODUCT_NAME = libiconv 0007 PRODUCT_VERSION = 1.15 0008 PRODUCT_DIRNAME = $(PRODUCT_NAME)-$(PRODUCT_VERSION) 0009 PRODUCT_PORT_SUFFIX = $(TARGET_MACHINE) 0010 0011 PRODUCT_ARCHIVE = $(PRODUCT_NAME)-$(PRODUCT_VERSION).tar.gz 0012 PRODUCT_ARCHIVE_URL = ftp://ftp.gnu.org/pub/gnu/libiconv/$(PRODUCT_ARCHIVE) 0013 PRODUCT_ARCHIVE_DIR = $(ARCHIVE_DIR) 0014 PRODUCT_ARCHIVE_PATH = $(PRODUCT_ARCHIVE_DIR)/$(PRODUCT_ARCHIVE) 0015 0016 PRODUCT_SOURCE_DIR = $(SOURCE_DIR)/$(PRODUCT_DIRNAME) 0017 0018 PRODUCT_PORT_DIR = $(PORT_DIR)/$(PRODUCT_DIRNAME)-$(PRODUCT_PORT_SUFFIX) 0019 0020 PRODUCT_BUILD_DIR = $(BUILD_DIR)/$(PRODUCT_DIRNAME)-$(PRODUCT_PORT_SUFFIX) 0021 0022 PRODUCT_INSTALL_DIR = $(LIBICONV_INSTALL_DIR) 0023 PRODUCT_INSTALL_INCLUDE_DIR = $(PRODUCT_INSTALL_DIR)/include 0024 PRODUCT_INSTALL_LIB_DIR = $(PRODUCT_INSTALL_DIR)/bin 0025 0026 PRODUCT_DEPLOY_DIR = $(LIBICONV_DEPLOY_DIR) 0027 PRODUCT_DEPLOY_INCLUDE_DIR = $(PRODUCT_DEPLOY_DIR)/include 0028 PRODUCT_DEPLOY_LIB_DIR = $(PRODUCT_DEPLOY_DIR)/lib 0029 0030 PRODUCT_CONFIGURE_TXT_PATH = $(BUILD_DIR)/$(PRODUCT_NAME)-$(PRODUCT_VERSION)-$(PRODUCT_PORT_SUFFIX).configure.txt 0031 PRODUCT_README_PORT_MD_PATH = $(PRODUCT_PORT_DIR)/README.$(PRODUCT_PORT_SUFFIX).md 0032 PRODUCT_BUILD_TXT_PATH = $(BUILD_DIR)/$(PRODUCT_NAME)-$(PRODUCT_VERSION)-$(PRODUCT_PORT_SUFFIX).build.txt 0033 0034 PRODUCT_INCLUDE_FILES = iconv.h 0035 PRODUCT_INCLUDE_FILES_INSTALL = $(addprefix $(PRODUCT_INSTALL_INCLUDE_DIR)/, $(PRODUCT_INCLUDE_FILES)) 0036 PRODUCT_INCLUDE_FILES_DEPLOY = $(addprefix $(PRODUCT_DEPLOY_INCLUDE_DIR)/, $(PRODUCT_INCLUDE_FILES)) 0037 0038 PRODUCT_LIB_FILES = libiconv-2.dll 0039 PRODUCT_LIB_FILES_INSTALL = $(addprefix $(PRODUCT_INSTALL_LIB_DIR)/, $(PRODUCT_LIB_FILES)) 0040 PRODUCT_LIB_FILES_DEPLOY = $(addprefix $(PRODUCT_DEPLOY_LIB_DIR)/, $(PRODUCT_LIB_FILES)) 0041 0042 export PATH MAKE 0043 0044 include ../Makefile.phony 0045 0046 all: deploy 0047 0048 include ../Makefile.deploy 0049 0050 include ../Makefile.buildinstall 0051 0052 build $(PRODUCT_BUILD_TXT_PATH): $(PRODUCT_BUILD_DIR)/Makefile | $(CD) $(MAKE) $(TEE) $(CMD) 0053 $(CD) $(PRODUCT_BUILD_DIR) && $(MAKE) -j $(MAKE_BUILD_JOBS) CFLAGS+='-g0' 2>&1 | $(TEE) $(PRODUCT_BUILD_TXT_PATH) 0054 0055 buildconfigure $(PRODUCT_BUILD_DIR)/Makefile: $(PRODUCT_BUILD_DIR)/configure | $(CD) $(SH) $(TEE) $(AWK) $(SED) $(CMD) 0056 $(CD) $(PRODUCT_BUILD_DIR) && $(SH) configure --host=$(HOST_MACHINE) --build=$(BUILD_MACHINE) \ 0057 --enable-relocatable \ 0058 --prefix=$(PRODUCT_INSTALL_DIR) \ 0059 --without-libiconv-prefix \ 0060 --without-libintl-prefix \ 0061 --disable-nls --disable-rpath \ 0062 2>&1 | $(TEE) $(PRODUCT_CONFIGURE_TXT_PATH) 0063 0064 include ../Makefile.builddir 0065 0066 port $(PRODUCT_README_PORT_MD_PATH): README.md $(PRODUCT_PORT_DIR) | $(PATCH) $(CP) $(TOUCH) 0067 $(PATCH) -d $(PRODUCT_PORT_DIR) -p1 < 0001-Update-from-gnulib.patch 0068 $(PATCH) -d $(PRODUCT_PORT_DIR) -p1 < 0002-Get-rid-of-autom4te.cache-directories-as-far-as-poss.patch 0069 $(PATCH) -d $(PRODUCT_PORT_DIR) -p1 < 0003-Don-t-attempt-to-build-preloadable_libiconv.so-when-.patch 0070 $(PATCH) -d $(PRODUCT_PORT_DIR) -p1 < 0004-Allow-building-statically-linked-binaries-through-LD.patch 0071 $(PATCH) -d $(PRODUCT_PORT_DIR) -p1 < 0005-Avoid-end-of-lines-problem-in-generated-shell-script.patch 0072 $(PATCH) -d $(PRODUCT_PORT_DIR) -p1 < 0006-Fix-installation-in-64-bit-mode-on-AIX.patch 0073 $(PATCH) -d $(PRODUCT_PORT_DIR) -p1 < 0007-Don-t-use-an-undocumented-Autoconf-macro.patch 0074 $(PATCH) -d $(PRODUCT_PORT_DIR) -p1 < 0008-Rename-some-files.patch 0075 $(CP) README.md $(PRODUCT_README_PORT_MD_PATH) 0076 $(TOUCH) $(PRODUCT_README_PORT_MD_PATH) 0077 0078 include ../Makefile.portdir 0079 0080 include ../Makefile.sourcedir 0081 0082 include ../Makefile.archive 0083 0084 include ../Makefile.clean 0085