summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/openssl/package.py
diff options
context:
space:
mode:
authoralalazo <massimiliano.culpo@googlemail.com>2016-02-11 13:03:47 +0100
committeralalazo <massimiliano.culpo@googlemail.com>2016-02-11 13:03:47 +0100
commite7454132a2d5c8f05f8c4197b4c26e54bf6ebd0b (patch)
tree8a2e60cec83cb803c7cef8ec237ea93fe6c5f909 /var/spack/repos/builtin/packages/openssl/package.py
parent7fc308ed26d7abfcb71af8165523b421a1f315c0 (diff)
parentbcf705b85e82509a5045a52a3420893c5546ee7f (diff)
downloadspack-e7454132a2d5c8f05f8c4197b4c26e54bf6ebd0b.tar.gz
spack-e7454132a2d5c8f05f8c4197b4c26e54bf6ebd0b.tar.bz2
spack-e7454132a2d5c8f05f8c4197b4c26e54bf6ebd0b.tar.xz
spack-e7454132a2d5c8f05f8c4197b4c26e54bf6ebd0b.zip
Merge branch 'develop' of https://github.com/LLNL/spack into packages/espresso
Diffstat (limited to 'var/spack/repos/builtin/packages/openssl/package.py')
-rw-r--r--var/spack/repos/builtin/packages/openssl/package.py42
1 files changed, 42 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openssl/package.py b/var/spack/repos/builtin/packages/openssl/package.py
new file mode 100644
index 0000000000..a225e30f6c
--- /dev/null
+++ b/var/spack/repos/builtin/packages/openssl/package.py
@@ -0,0 +1,42 @@
+from spack import *
+
+class Openssl(Package):
+ """The OpenSSL Project is a collaborative effort to develop a
+ robust, commercial-grade, full-featured, and Open Source
+ toolkit implementing the Secure Sockets Layer (SSL v2/v3) and
+ Transport Layer Security (TLS v1) protocols as well as a
+ full-strength general purpose cryptography library."""
+ homepage = "http://www.openssl.org"
+ url = "http://www.openssl.org/source/openssl-1.0.1h.tar.gz"
+
+ version('1.0.1h', '8d6d684a9430d5cc98a62a5d8fbda8cf')
+ version('1.0.1r', '1abd905e079542ccae948af37e393d28')
+ version('1.0.2d', '38dd619b2e77cbac69b99f52a053d25a')
+ version('1.0.2e', '5262bfa25b60ed9de9f28d5d52d77fc5')
+ version('1.0.2f', 'b3bf73f507172be9292ea2a8c28b659d')
+
+ depends_on("zlib")
+ parallel = False
+
+ def install(self, spec, prefix):
+ # OpenSSL uses a variable APPS in its Makefile. If it happens to be set
+ # in the environment, then this will override what is set in the
+ # Makefile, leading to build errors.
+ env.pop('APPS', None)
+ if spec.satisfies("=darwin-x86_64") or spec.satisfies("=ppc64"):
+ # This needs to be done for all 64-bit architectures (except Linux,
+ # where it happens automatically?)
+ env['KERNEL_BITS'] = '64'
+ config = Executable("./config")
+ config("--prefix=%s" % prefix,
+ "--openssldir=%s" % join_path(prefix, 'etc', 'openssl'),
+ "zlib",
+ "no-krb5",
+ "shared")
+ # Remove non-standard compiler options if present. These options are
+ # present e.g. on Darwin. They are non-standard, i.e. most compilers
+ # (e.g. gcc) will not accept them.
+ filter_file(r'-arch x86_64', '', 'Makefile')
+
+ make()
+ make("install")