summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2013-08-14 20:22:34 +0000
committerFabian Groffen <grobian@gentoo.org>2013-08-14 20:22:34 +0000
commit77c88225c73779ccc316dc6d980afd1b5dd260e0 (patch)
tree02bc33ecaae141d92b9f37c5c01e187794369138 /dev-libs/crypto++/crypto++-5.6.2.ebuild
parentremove the mask for freerdp/libkfbapi, they are keyworded (diff)
downloadhistorical-77c88225c73779ccc316dc6d980afd1b5dd260e0.tar.gz
historical-77c88225c73779ccc316dc6d980afd1b5dd260e0.tar.bz2
historical-77c88225c73779ccc316dc6d980afd1b5dd260e0.zip
Fixed and marked for ~x64-macos, bug #479554
Package-Manager: portage-2.2.01.22288-prefix/cvs/Darwin i386 Manifest-Sign-Key: 0x5F75F607C5C74E89
Diffstat (limited to 'dev-libs/crypto++/crypto++-5.6.2.ebuild')
-rw-r--r--dev-libs/crypto++/crypto++-5.6.2.ebuild17
1 files changed, 13 insertions, 4 deletions
diff --git a/dev-libs/crypto++/crypto++-5.6.2.ebuild b/dev-libs/crypto++/crypto++-5.6.2.ebuild
index 8b929f63f126..2b3a0a4d0c87 100644
--- a/dev-libs/crypto++/crypto++-5.6.2.ebuild
+++ b/dev-libs/crypto++/crypto++-5.6.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/crypto++/crypto++-5.6.2.ebuild,v 1.9 2013/07/13 08:43:16 pinkbyte Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/crypto++/crypto++-5.6.2.ebuild,v 1.10 2013/08/14 20:22:30 grobian Exp $
EAPI=5
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/cryptopp/cryptopp${PV//.}.zip"
LICENSE="Boost-1.0"
SLOT="0"
-KEYWORDS="alpha amd64 ~arm hppa ppc ppc64 sparc x86"
+KEYWORDS="alpha amd64 ~arm hppa ppc ppc64 sparc x86 ~x64-macos"
IUSE="static-libs"
DEPEND="app-arch/unzip
@@ -22,14 +22,23 @@ S=${WORKDIR}
src_prepare() {
epatch "${FILESDIR}"/${P}-make.patch
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ sed -i \
+ -e '/^LIBTOOL =/s/= /= g/' \
+ -e 's/libcrypto++\.so\.0\.0\.0/libcrypto++.0.0.0.dylib/' \
+ -e 's/libcryptopp\.so\([\.0]\+\)\?/libcryptopp\1.dylib/' \
+ GNUmakefile || die # 479554
+ fi
}
src_compile() {
# higher optimizations cause problems
replace-flags -O? -O1
filter-flags -fomit-frame-pointer
+ # ASM isn't Darwin/Mach-O ready, #479554, buildsys doesn't grok CPPFLAGS
+ [[ ${CHOST} == *-darwin* ]] && append-flags -DCRYPTOPP_DISABLE_X86ASM
- emake -f GNUmakefile CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" LIBDIR="$(get_libdir)"
+ emake -f GNUmakefile CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" LIBDIR="$(get_libdir)" PREFIX="${EPREFIX}/usr"
}
src_test() {
@@ -47,6 +56,6 @@ src_test() {
}
src_install() {
- emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install
+ emake DESTDIR="${D}" LIBDIR="$(get_libdir)" PREFIX="${EPREFIX}/usr" install
use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*.{a,la}
}