Mercurial > vanilla
comparison crypto/libressl/libressl.sh @ 608:2929b2af4c15
crypto/libressl: initial import, closes #1687
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 19 Jul 2019 20:45:00 +0200 |
parents | |
children | af3c84369341 |
comparison
equal
deleted
inserted
replaced
607:0be721db8410 | 608:2929b2af4c15 |
---|---|
1 #!/bin/sh | |
2 # | |
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr> | |
4 # | |
5 # Permission to use, copy, modify, and/or distribute this software for any | |
6 # purpose with or without fee is hereby granted, provided that the above | |
7 # copyright notice and this permission notice appear in all copies. | |
8 # | |
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
16 # | |
17 | |
18 PKGNAME=libressl | |
19 PKGVERSION=2.9.2 | |
20 PKGREVISION=1 | |
21 PKGLICENSE="CUSTOM" | |
22 PKGSUMMARY="OpenSSL fork from OpenBSD" | |
23 PKGDOWNLOAD="https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.9.2.tar.gz" | |
24 PKGDEPENDS="dev/cmake:build" | |
25 | |
26 : ${CC:=clang} | |
27 : ${CFLAGS:=-O2} | |
28 | |
29 build() | |
30 { | |
31 rm -rf $PKGNAME-$PKGVERSION | |
32 tar xvf $PKGNAME-$PKGVERSION.tar.gz | |
33 cd $PKGNAME-$PKGVERSION | |
34 | |
35 mkdir build && cd build | |
36 cmake .. \ | |
37 -DBUILD_SHARED_LIBS=On \ | |
38 -DCMAKE_BUILD_TYPE=Release \ | |
39 -DCMAKE_C_COMPILER="$CC" \ | |
40 -DCMAKE_C_FLAGS="$CFLAGS" \ | |
41 -DCMAKE_INSTALL_PREFIX= | |
42 make | |
43 make install DESTDIR=$DESTDIR | |
44 cd .. | |
45 | |
46 cd .. | |
47 rm -rf $PKGNAME-$PKGVERSION | |
48 } |