summaryrefslogtreecommitdiff
path: root/extra/crypto++/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/crypto++/PKGBUILD')
-rw-r--r--extra/crypto++/PKGBUILD13
1 files changed, 10 insertions, 3 deletions
diff --git a/extra/crypto++/PKGBUILD b/extra/crypto++/PKGBUILD
index cdc6f311d..d838dbbc5 100644
--- a/extra/crypto++/PKGBUILD
+++ b/extra/crypto++/PKGBUILD
@@ -10,17 +10,24 @@ pkgver=5.6.2
_srcver=562
pkgrel=2
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')
+ 'libcrypto++.pc'
+ 'GNUmakefile.parabola')
md5sums=('7ed022585698df48e65ce9218f6c6a67'
- '46de3847c59ad16456fa863eb33e73b2')
+ '46de3847c59ad16456fa863eb33e73b2'
+ 'c95b2134a8c0a35b173ede32001870d2')
build() {
+ cd ${srcdir}
+
+ # 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
sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile
export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC"
make -f GNUmakefile