summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/packages/openssl/package.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/var/spack/packages/openssl/package.py b/var/spack/packages/openssl/package.py
index 40648fca49..1fa288a36d 100644
--- a/var/spack/packages/openssl/package.py
+++ b/var/spack/packages/openssl/package.py
@@ -1,5 +1,7 @@
from spack import *
+import spack.util.architecture as arch
+
class Openssl(Package):
"""The OpenSSL Project is a collaborative effort to develop a
robust, commercial-grade, full-featured, and Open Source
@@ -26,3 +28,16 @@ class Openssl(Package):
make()
make("install")
+
+ @when(arch.os_is_in('darwin'))
+ def install(self, spec, prefix):
+ perl = which('perl')
+ perl("./Configure",
+ "--prefix=%s" % prefix,
+ "--openssldir=%s/etc/openssl" % prefix,
+ "zlib",
+ "no-krb5",
+ "shared",
+ "darwin64-x86_64-cc")
+ filter_file(r'-arch x86_64', '', 'Makefile')
+