Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] openssl: add host variant
@ 2013-04-09 18:27 Gustavo Zacarias
  2013-04-09 18:27 ` [Buildroot] [PATCH 2/3] swig: new package Gustavo Zacarias
  2013-04-09 18:27 ` [Buildroot] [PATCH 3/3] python-m2crypto: " Gustavo Zacarias
  0 siblings, 2 replies; 7+ messages in thread
From: Gustavo Zacarias @ 2013-04-09 18:27 UTC (permalink / raw)
  To: buildroot

Useful for the upcoming host-python-m2crypto package.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/openssl/openssl.mk | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/package/openssl/openssl.mk b/package/openssl/openssl.mk
index 7701d51..8486c44 100644
--- a/package/openssl/openssl.mk
+++ b/package/openssl/openssl.mk
@@ -46,6 +46,18 @@ ifeq ($(BR2_x86_i386),y)
 	OPENSSL_TARGET_ARCH = generic32 386
 endif
 
+define HOST_OPENSSL_CONFIGURE_CMDS
+	(cd $(@D); \
+		$(HOST_CONFIGURE_OPTS) \
+		./config \
+		--prefix=/usr \
+		--openssldir=/etc/ssl \
+		--libdir=/lib \
+		shared \
+		no-zlib \
+	)
+endef
+
 define OPENSSL_CONFIGURE_CMDS
 	(cd $(@D); \
 		$(TARGET_CONFIGURE_ARGS) \
@@ -69,6 +81,10 @@ define OPENSSL_CONFIGURE_CMDS
 	$(SED) "s:-O[0-9]:$(OPENSSL_CFLAGS):" $(@D)/Makefile
 endef
 
+define HOST_OPENSSL_BUILD_CMDS
+	$(MAKE1) -C $(@D)
+endef
+
 define OPENSSL_BUILD_CMDS
 	$(MAKE1) -C $(@D)
 endef
@@ -77,6 +93,10 @@ define OPENSSL_INSTALL_STAGING_CMDS
 	$(MAKE1) -C $(@D) INSTALL_PREFIX=$(STAGING_DIR) install
 endef
 
+define HOST_OPENSSL_INSTALL_CMDS
+	$(MAKE1) -C $(@D) INSTALL_PREFIX=$(HOST_DIR) install
+endef
+
 define OPENSSL_INSTALL_TARGET_CMDS
 	$(MAKE1) -C $(@D) INSTALL_PREFIX=$(TARGET_DIR) install
 endef
@@ -124,3 +144,4 @@ define OPENSSL_UNINSTALL_CMDS
 endef
 
 $(eval $(generic-package))
+$(eval $(host-generic-package))
-- 
1.8.1.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-04-09 22:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-09 18:27 [Buildroot] [PATCH 1/3] openssl: add host variant Gustavo Zacarias
2013-04-09 18:27 ` [Buildroot] [PATCH 2/3] swig: new package Gustavo Zacarias
2013-04-09 18:35   ` Thomas Petazzoni
2013-04-09 18:39     ` Gustavo Zacarias
2013-04-09 18:27 ` [Buildroot] [PATCH 3/3] python-m2crypto: " Gustavo Zacarias
2013-04-09 21:41   ` Arnout Vandecappelle
2013-04-09 22:21     ` Gustavo Zacarias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox