@@ -30,7 +30,11 @@ BUILD_NUMBER=custom
30
30
MACOSX_DEPLOYMENT_TARGET =10.8
31
31
32
32
# Version of packages that will be compiled by this meta-package
33
+ # PYTHON_VERSION is the full version number (e.g., 3.10.0b3)
34
+ # PYTHON_MICRO_VERSION is the full version number, without any alpha/beta/rc suffix. (e.g., 3.10.0)
35
+ # PYTHON_VER is the major/minor version (e.g., 3.10)
33
36
PYTHON_VERSION =3.7.11
37
+ PYTHON_MICRO_VERSION =$(shell echo $(PYTHON_VERSION ) | grep -Eo "\d+\.\d+\.\d+")
34
38
PYTHON_VER =$(basename $(PYTHON_VERSION ) )
35
39
36
40
OPENSSL_VERSION_NUMBER =1.1.1
@@ -156,7 +160,7 @@ clean-Python:
156
160
# Download original Python source code archive.
157
161
downloads/Python-$(PYTHON_VERSION ) .tgz :
158
162
mkdir -p downloads
159
- if [ ! -e downloads/Python-$( PYTHON_VERSION) .tgz ]; then curl -L https://www.python.org/ftp/python/$( PYTHON_VERSION ) /Python-$( PYTHON_VERSION) .tgz > downloads/Python-$( PYTHON_VERSION) .tgz; fi
163
+ if [ ! -e downloads/Python-$( PYTHON_VERSION) .tgz ]; then curl -L https://www.python.org/ftp/python/$( PYTHON_MICRO_VERSION ) /Python-$( PYTHON_VERSION) .tgz > downloads/Python-$( PYTHON_VERSION) .tgz; fi
160
164
161
165
# Some Python targets needed to identify the host build
162
166
PYTHON_DIR-macOS =build/macOS/Python-$(PYTHON_VERSION ) -macOS
@@ -213,13 +217,13 @@ endif
213
217
ifeq ($2,macOS)
214
218
cd $$(OPENSSL_DIR-$1) && \
215
219
CC="$$(CC-$1)" MACOSX_DEPLOYMENT_TARGET=$$(MACOSX_DEPLOYMENT_TARGET) \
216
- ./Configure darwin64-$$(ARCH-$1)-cc no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl --openssldir=$(PROJECT_DIR)/build/$2/openssl
220
+ ./Configure darwin64-$$(ARCH-$1)-cc no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl
217
221
else
218
222
cd $$(OPENSSL_DIR-$1) && \
219
223
CC="$$(CC-$1)" \
220
224
CROSS_TOP="$$(dir $$(SDK_ROOT-$1)).." \
221
225
CROSS_SDK="$$(notdir $$(SDK_ROOT-$1))" \
222
- ./Configure iphoneos-cross no-asm no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl --openssldir=$(PROJECT_DIR)/build/$2/openssl
226
+ ./Configure iphoneos-cross no-asm no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl
223
227
endif
224
228
225
229
# Build OpenSSL
0 commit comments