2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2009-11-09 02:08:25 +00:00
|
|
|
|
|
|
|
PKG := openssl
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_WEBSITE := https://www.openssl.org/
|
2009-11-09 02:08:25 +00:00
|
|
|
$(PKG)_IGNORE :=
|
2020-04-22 10:44:27 +01:00
|
|
|
$(PKG)_VERSION := 1.1.1g
|
|
|
|
$(PKG)_CHECKSUM := ddb04774f1e32f0c49751e21b67216ac87852ceb056b75209af2443400636d46
|
2009-11-09 02:08:25 +00:00
|
|
|
$(PKG)_SUBDIR := openssl-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := openssl-$($(PKG)_VERSION).tar.gz
|
2017-03-04 10:33:47 +00:00
|
|
|
$(PKG)_URL := https://www.openssl.org/source/$($(PKG)_FILE)
|
|
|
|
$(PKG)_URL_2 := https://www.openssl.org/source/old/$(call tr,$([a-z]),,$($(PKG)_VERSION))/$($(PKG)_FILE)
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc zlib
|
2009-11-09 02:08:25 +00:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2017-03-04 10:33:47 +00:00
|
|
|
$(WGET) -q -O- 'https://www.openssl.org/source/' | \
|
2009-11-09 02:08:25 +00:00
|
|
|
$(SED) -n 's,.*openssl-\([0-9][0-9a-z.]*\)\.tar.*,\1,p' | \
|
2013-05-22 10:33:04 +01:00
|
|
|
$(SORT) -V | \
|
|
|
|
tail -1
|
2009-11-09 02:08:25 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
2018-03-03 06:08:26 +00:00
|
|
|
# remove previous install
|
|
|
|
rm -rfv '$(PREFIX)/$(TARGET)/include/openssl'
|
|
|
|
rm -rfv '$(PREFIX)/$(TARGET)/bin/engines'
|
|
|
|
rm -fv '$(PREFIX)/$(TARGET)/'*/{libcrypto*,libssl*}
|
|
|
|
rm -fv '$(PREFIX)/$(TARGET)/lib/pkgconfig/'{libcrypto*,libssl*,openssl*}
|
|
|
|
|
2016-09-26 14:54:14 +01:00
|
|
|
cd '$(1)' && CC='$(TARGET)-gcc' RC='$(TARGET)-windres' ./Configure \
|
2014-02-18 03:04:23 +00:00
|
|
|
@openssl-target@ \
|
2009-11-09 02:08:25 +00:00
|
|
|
zlib \
|
2014-02-09 12:29:51 +00:00
|
|
|
$(if $(BUILD_STATIC),no-,)shared \
|
2010-04-11 16:33:31 +01:00
|
|
|
no-capieng \
|
2009-11-09 02:08:25 +00:00
|
|
|
--prefix='$(PREFIX)/$(TARGET)'
|
2014-08-18 13:05:39 +01:00
|
|
|
$(MAKE) -C '$(1)' all install_sw -j 1 \
|
2009-11-09 02:08:25 +00:00
|
|
|
CC='$(TARGET)-gcc' \
|
|
|
|
RANLIB='$(TARGET)-ranlib' \
|
2018-09-12 22:56:33 +01:00
|
|
|
AR='$(TARGET)-ar' \
|
2016-08-26 07:41:59 +01:00
|
|
|
RC='$(TARGET)-windres' \
|
|
|
|
CROSS_COMPILE='$(TARGET)-' \
|
|
|
|
$(if $(BUILD_SHARED), ENGINESDIR='$(PREFIX)/$(TARGET)/bin/engines')
|
2009-11-09 02:08:25 +00:00
|
|
|
endef
|
2013-05-23 15:38:06 +01:00
|
|
|
|
2014-02-18 03:04:23 +00:00
|
|
|
$(PKG)_BUILD_i686-w64-mingw32 = $(subst @openssl-target@,mingw,$($(PKG)_BUILD))
|
|
|
|
$(PKG)_BUILD_x86_64-w64-mingw32 = $(subst @openssl-target@,mingw64,$($(PKG)_BUILD))
|