summaryrefslogtreecommitdiffstats
path: root/rules/host-openssl.make
blob: fbb2e55d7842b5435684190bfa42e3ae6fe7b522 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# -*-makefile-*-
#
# Copyright (C) 2011 by George McCollister <george.mccollister@gmail.com>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#

#
HOST_PACKAGES-$(PTXCONF_HOST_OPENSSL) += host-openssl

#
# Paths and names
#
HOST_OPENSSL		= $(OPENSSL)
HOST_OPENSSL_DIR	= $(HOST_BUILDDIR)/$(HOST_OPENSSL)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

HOST_OPENSSL_CONF_ENV	:= $(HOST_ENV)

#
# autoconf
#
# no ':=' here
HOST_OPENSSL_CONF_OPT = \
	--prefix=/ \
	--install_prefix=$(HOST_OPENSSL_PKGDIR) \
	--libdir=/lib \
	shared

HOST_OPENSSL_INSTALL_OPT := \
	install_sw

#
# Follow the directions in INSTALL section 1a.
# Configure OpenSSL for your operation system automatically
#
# I see no reason to follow the instructions for manual configuration
# on the host, to do that we need to specify an architecture type.
#
$(STATEDIR)/host-openssl.prepare:
	@$(call targetinfo)
	cd $(HOST_OPENSSL_DIR) && \
		$(HOST_OPENSSL_PATH) $(HOST_OPENSSL_CONF_ENV) \
		./config $(HOST_OPENSSL_CONF_OPT)
	@$(call touch)

# vim: syntax=make