summaryrefslogtreecommitdiff
path: root/extra/crypto++/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/crypto++/PKGBUILD')
-rw-r--r--extra/crypto++/PKGBUILD11
1 files changed, 7 insertions, 4 deletions
diff --git a/extra/crypto++/PKGBUILD b/extra/crypto++/PKGBUILD
index 8cebe45ec..aefbae61b 100644
--- a/extra/crypto++/PKGBUILD
+++ b/extra/crypto++/PKGBUILD
@@ -10,16 +10,18 @@ pkgver=5.6.1
_srcver=561
pkgrel=4
pkgdesc="A free C++ class library of cryptographic schemes"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.cryptopp.com/"
license=('custom')
depends=('gcc-libs')
makedepends=('unzip')
source=("http://www.cryptopp.com/cryptopp${_srcver}.zip"
'libcrypto++.pc'
+ 'GNUmakefile.parabola'
'gcc4.7.patch')
md5sums=('96cbeba0907562b077e26bcffb483828'
'2337c6edbc552d9142cae8e0854715e7'
+ 'c95b2134a8c0a35b173ede32001870d2'
'cf26a783d9432e7f9ab7f14d3db3f196')
build() {
@@ -28,9 +30,10 @@ build() {
# Fix gcc 4.7 build
patch -Np1 -i "${srcdir}/gcc4.7.patch"
- sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile
- export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC"
- make -f GNUmakefile
+ # The upstream build system expects this file to be modified
+ # to e.g. use system CFLAGS or use features of modern linkers.
+ cp "${srcdir}/GNUmakefile.parabola" GNUmakefile
+ make -f GNUmakefile
make libcryptopp.so
}