@@ -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.6.14
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.0.2
@@ -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
@@ -212,13 +216,13 @@ endif
212
216
ifeq ($2,macOS)
213
217
cd $$(OPENSSL_DIR-$1) && \
214
218
CC="$$(CC-$1)" MACOSX_DEPLOYMENT_TARGET=$$(MACOSX_DEPLOYMENT_TARGET) \
215
- ./Configure darwin64-$$(ARCH-$1)-cc no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl --openssldir=$(PROJECT_DIR)/build/$2/openssl
219
+ ./Configure darwin64-$$(ARCH-$1)-cc no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl
216
220
else
217
221
cd $$(OPENSSL_DIR-$1) && \
218
222
CC="$$(CC-$1)" \
219
223
CROSS_TOP="$$(dir $$(SDK_ROOT-$1)).." \
220
224
CROSS_SDK="$$(notdir $$(SDK_ROOT-$1))" \
221
- ./Configure iphoneos-cross no-asm no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl --openssldir=$(PROJECT_DIR)/build/$2/openssl
225
+ ./Configure iphoneos-cross no-asm no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl
222
226
endif
223
227
224
228
# Build OpenSSL
0 commit comments