Created
February 3, 2015 16:19
-
-
Save ant32/61eb08499d2a1d52d3b1 to your computer and use it in GitHub Desktop.
cmake 3.1.1-1 with fixed openssl detect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From c5d9a8283cfac15b4a5a07f18d5eb10c1f388505 Mon Sep 17 00:00:00 2001 | |
From: Guillaume Belz <guillaume.belz@gmail.com> | |
Date: Tue, 27 Jan 2015 22:53:54 +0100 | |
Subject: [PATCH] FindOpenSSL: fix detection of OpenSSL 1.0.2 | |
--- | |
Modules/FindOpenSSL.cmake | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/Modules/FindOpenSSL.cmake b/Modules/FindOpenSSL.cmake | |
index 340b417..6b4f985 100644 | |
--- a/Modules/FindOpenSSL.cmake | |
+++ b/Modules/FindOpenSSL.cmake | |
@@ -279,7 +279,7 @@ if (OPENSSL_INCLUDE_DIR) | |
set(OPENSSL_VERSION "${_OPENSSL_VERSION}") | |
elseif(OPENSSL_INCLUDE_DIR AND EXISTS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h") | |
file(STRINGS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h" openssl_version_str | |
- REGEX "^#define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x([0-9a-fA-F])+.*") | |
+ REGEX "^# *define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x([0-9a-fA-F])+.*") | |
# The version number is encoded as 0xMNNFFPPS: major minor fix patch status | |
# The status gives if this is a developer or prerelease and is ignored here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: PKGBUILD 229676 2015-01-23 08:04:19Z andrea $ | |
# Maintainer: Andrea Scarpino <andrea@archlinux.org> | |
# Contributor: Pierre Schmitz <pierre@archlinux.de> | |
pkgname=cmake | |
pkgver=3.1.1 | |
pkgrel=1 | |
pkgdesc='A cross-platform open-source make system' | |
arch=('i686' 'x86_64') | |
url="http://www.cmake.org/" | |
license=('custom') | |
depends=('curl' 'libarchive' 'shared-mime-info') | |
makedepends=('qt5-base' 'python-sphinx' 'emacs') | |
optdepends=('qt5-base: cmake-gui' | |
'libxkbcommon-x11: cmake-gui') | |
install="${pkgname}.install" | |
source=("http://www.cmake.org/files/v${pkgver%.*}/${pkgname}-${pkgver}.tar.gz" | |
'fix_openssl_detection.patch') | |
md5sums=('0ae4f25dbec66697c0c3cec1b9e885ae' | |
'a8ee193ea49313660d009c01e0889aac') | |
prepare() { | |
cd ${pkgname}-${pkgver} | |
patch -p1 -i ../fix_openssl_detection.patch | |
} | |
build() { | |
cd ${pkgname}-${pkgver} | |
./bootstrap --prefix=/usr \ | |
--mandir=/share/man \ | |
--docdir=/share/doc/cmake \ | |
--sphinx-man \ | |
--system-libs \ | |
--qt-gui \ | |
--parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN) | |
make | |
} | |
package() { | |
cd ${pkgname}-${pkgver} | |
make DESTDIR="${pkgdir}" install | |
vimpath="${pkgdir}/usr/share/vim/vimfiles" | |
install -d "${vimpath}"/{help,indent,syntax} | |
ln -s /usr/share/cmake-${pkgver%.*}/editors/vim/cmake-help.vim \ | |
"${vimpath}"/help/ | |
ln -s /usr/share/cmake-${pkgver%.*}/editors/vim/cmake-indent.vim \ | |
"${vimpath}"/indent/ | |
ln -s /usr/share/cmake-${pkgver%.*}/editors/vim/cmake-syntax.vim \ | |
"${vimpath}"/syntax/ | |
install -d "${pkgdir}"/usr/share/emacs/site-lisp/ | |
emacs -batch -f batch-byte-compile \ | |
"${pkgdir}"/usr/share/cmake-${pkgver%.*}/editors/emacs/cmake-mode.el | |
ln -s /usr/share/cmake-${pkgver%.*}/editors/emacs/cmake-mode.el \ | |
"${pkgdir}"/usr/share/emacs/site-lisp/ | |
install -Dm644 Copyright.txt \ | |
"${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment