summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoralalazo <massimiliano.culpo@googlemail.com>2016-01-02 22:48:14 +0100
committeralalazo <massimiliano.culpo@googlemail.com>2016-01-02 22:48:14 +0100
commitbf4231dd4b906f20d522b9df5f2cae2ba6291174 (patch)
treed745c6d061f5c86caf81af2e0ec3100226095183 /var
parent3c64c18bfc3ff561bce425ef9e40ba1c131f0c97 (diff)
downloadspack-bf4231dd4b906f20d522b9df5f2cae2ba6291174.tar.gz
spack-bf4231dd4b906f20d522b9df5f2cae2ba6291174.tar.bz2
spack-bf4231dd4b906f20d522b9df5f2cae2ba6291174.tar.xz
spack-bf4231dd4b906f20d522b9df5f2cae2ba6291174.zip
depends_on and when multimethod support boolean
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')
+