amule: fixed compilation with cryptopp 5.6.0

This commit is contained in:
Antti Nykanen 2009-04-02 22:53:07 +03:00
parent 80e9862909
commit 7d8942d605
3 changed files with 15 additions and 1 deletions

View File

@ -1 +1,2 @@
64a0d41edbdd7cf36fa892e45a652bfd aMule-2.2.3.tar.bz2
9eeb21301dfb9f046d3d2956cf818629 amule-2.2.3-configure.patch

View File

@ -7,10 +7,12 @@
name=amule
version=2.2.3
release=1
source=(http://download.berlios.de/amule/aMule-$version.tar.bz2)
source=(http://download.berlios.de/amule/aMule-$version.tar.bz2
$name-$version-configure.patch)
build() {
cd aMule-$version
patch -p0 -i $SRC/$name-$version-configure.patch
export CFLAGS="${CFLAGS//-fstack-protector/}"
export CXXFLAGS="${CXXFLAGS//-fstack-protector/}"
./configure --prefix=/usr \

View File

@ -0,0 +1,11 @@
--- configure~ 2009-04-02 22:09:33.000000000 +0300
+++ configure 2009-04-02 22:09:44.000000000 +0300
@@ -8451,7 +8451,7 @@
# Find out the crypto++ version and check against the minimum required
cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
- CRYPTOPP_VERSION_STRING=`grep "Reference Manual" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
+ CRYPTOPP_VERSION_STRING=`grep "API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`