summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2018-03-01 04:49:28 (GMT)
committerTony Theodore <tonyt@logyst.com>2018-03-01 04:49:41 (GMT)
commit56ca9cf8f55358ab239ee2c0dbc0a2d6df653bba (patch)
treeb34dd94cd6b7517b59b5eea0c2ade430bcd566e8 /Makefile
parent0591e69537a6e7f5bc17b8b94a17e273a840f40d (diff)
downloadmxe-56ca9cf8f55358ab239ee2c0dbc0a2d6df653bba.zip
mxe-56ca9cf8f55358ab239ee2c0dbc0a2d6df653bba.tar.gz
mxe-56ca9cf8f55358ab239ee2c0dbc0a2d6df653bba.tar.bz2
Makefile: define OPENSSL as a variable
used to test if preinstalled version works i.e: make download OPENSSL=/usr/bin/openssl
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 141b6fd..3350024 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,7 @@ DATE := $(shell gdate --help >/dev/null 2>&1 && echo g)date
INSTALL := $(shell ginstall --help >/dev/null 2>&1 && echo g)install
LIBTOOL := $(shell glibtool --help >/dev/null 2>&1 && echo g)libtool
LIBTOOLIZE := $(shell glibtoolize --help >/dev/null 2>&1 && echo g)libtoolize
+OPENSSL := openssl
PATCH := $(shell gpatch --help >/dev/null 2>&1 && echo g)patch
SED := $(shell gsed --help >/dev/null 2>&1 && echo g)sed
SORT := $(shell gsort --help >/dev/null 2>&1 && echo g)sort
@@ -44,7 +45,7 @@ WGET = $(WGET_TOOL) --user-agent='$(or $($(1)_UA),$(DEFAULT_UA))'
REQUIREMENTS := autoconf automake autopoint bash bison bzip2 flex \
$(BUILD_CC) $(BUILD_CXX) gperf intltoolize $(LIBTOOL) \
- $(LIBTOOLIZE) $(MAKE) openssl $(PATCH) $(PERL) python \
+ $(LIBTOOLIZE) $(MAKE) $(OPENSSL) $(PATCH) $(PERL) python \
ruby scons $(SED) $(SORT) unzip wget xz 7za gdk-pixbuf-csource
PREFIX := $(PWD)/usr
@@ -255,7 +256,7 @@ define PREPARE_PKG_SOURCE
endef
PKG_CHECKSUM = \
- openssl dgst -sha256 '$(or $(2),$(PKG_DIR)/$($(1)_FILE))' 2>/dev/null | $(SED) -n 's,^.*\([0-9a-f]\{64\}\)$$,\1,p'
+ $(OPENSSL) dgst -sha256 '$(or $(2),$(PKG_DIR)/$($(1)_FILE))' 2>/dev/null | $(SED) -n 's,^.*\([0-9a-f]\{64\}\)$$,\1,p'
CHECK_PKG_ARCHIVE = \
$(if $($(1)_SOURCE_TREE),\