From 36f315e25c3a563664086e31108140bfc90625ce Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Wed, 19 Sep 2012 20:53:52 +0200 Subject: misc/merkaartor: Added a patch for gcc-4.7.x. Also a -fpermissive to the CXXFLAGS Signed-off-by: Matteo Bernardini --- misc/merkaartor/gcc47.patch | 11 +++++++++++ misc/merkaartor/merkaartor.SlackBuild | 7 +++++-- misc/merkaartor/merkaartor.info | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 misc/merkaartor/gcc47.patch (limited to 'misc') diff --git a/misc/merkaartor/gcc47.patch b/misc/merkaartor/gcc47.patch new file mode 100644 index 0000000000..a790fab781 --- /dev/null +++ b/misc/merkaartor/gcc47.patch @@ -0,0 +1,11 @@ +diff -Naur merkaartor-0.17.2.orig/3rdparty/qtsingleapplication-2.6_1-opensource/src/qtlocalpeer.cpp merkaartor-0.17.2/3rdparty/qtsingleapplication-2.6_1-opensource/src/qtlocalpeer.cpp +--- merkaartor-0.17.2.orig/3rdparty/qtsingleapplication-2.6_1-opensource/src/qtlocalpeer.cpp 2011-02-10 13:00:35.000000000 +0100 ++++ merkaartor-0.17.2/3rdparty/qtsingleapplication-2.6_1-opensource/src/qtlocalpeer.cpp 2012-09-19 14:26:39.538277883 +0200 +@@ -57,6 +57,7 @@ + #endif + #if defined(Q_OS_UNIX) + #include ++#include + #endif + + namespace QtLP_Private { diff --git a/misc/merkaartor/merkaartor.SlackBuild b/misc/merkaartor/merkaartor.SlackBuild index 98775f537b..a4289ecd62 100644 --- a/misc/merkaartor/merkaartor.SlackBuild +++ b/misc/merkaartor/merkaartor.SlackBuild @@ -6,7 +6,7 @@ PRGNAM=merkaartor VERSION=${VERSION:-0.17.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -51,11 +51,14 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Build fix for gcc-4.7.x +patch -p1 < $CWD/gcc47.patch + make -C translations release qmake \ QMAKE_CFLAGS="$SLKCFLAGS" \ - QMAKE_CXXFLAGS="$SLKCFLAGS" \ + QMAKE_CXXFLAGS="$SLKCFLAGS -fpermissive" \ NODEBUG=1 \ PREFIX=/usr \ DOCDIR=/usr/doc/$PRGNAM-$VERSION \ diff --git a/misc/merkaartor/merkaartor.info b/misc/merkaartor/merkaartor.info index 1d7663cba3..8172adc463 100644 --- a/misc/merkaartor/merkaartor.info +++ b/misc/merkaartor/merkaartor.info @@ -1,6 +1,6 @@ PRGNAM="merkaartor" VERSION="0.17.2" -HOMEPAGE="http://www.merkaartor.org" +HOMEPAGE="http://www.merkaartor.be" DOWNLOAD="http://merkaartor.be/attachments/download/253/merkaartor-0.17.2.tar.bz2" MD5SUM="44c49f73efa589a455bb9d3d0a284d09" DOWNLOAD_x86_64="" -- cgit v1.2.3