diff options
Diffstat (limited to 'development/codeblocks/codeblocks.SlackBuild')
-rw-r--r-- | development/codeblocks/codeblocks.SlackBuild | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/development/codeblocks/codeblocks.SlackBuild b/development/codeblocks/codeblocks.SlackBuild index de33ff1edd..ff9aeb506b 100644 --- a/development/codeblocks/codeblocks.SlackBuild +++ b/development/codeblocks/codeblocks.SlackBuild @@ -5,7 +5,7 @@ PRGNAM=codeblocks VERSION=${VERSION:-10.05} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -50,8 +50,17 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Add a patch for gcc-4.7.x, (thans Debian) +patch -p1 < $CWD/ftbfs-gcc-4.7.diff + +# This move the codeblocks plugins to /usr/lib$LIBDIRSUFFIX/codeblock/plugins +# Take care to move the additional ones you have installed if upgrading +sed -e "s|usr/lib|usr/lib$LIBDIRSUFFIX|" $CWD/01-codeblocks_plugin_path.patch \ + | patch -p1 + +LDFLAGS="-lX11" \ CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS -fpermissive" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib$LIBDIRSUFFIX \ |