diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2012-09-16 14:32:53 +0200 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2012-09-16 19:44:43 -0400 |
commit | 34e8580ab9c964ccdf4ef91b0daf970c55ad27bf (patch) | |
tree | 8e80fac5351ff81b78c0e1247d55d034dd71aefa /development/codeblocks/codeblocks.SlackBuild | |
parent | e9e13e288db26e827b73635a57a4500f36d30c88 (diff) |
development/codeblocks: Added a patch for gcc-4.7.x.
Fixed underlinking.
Moved plugins path to /usr/lib{,64}, noted in README
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
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 de33ff1edd9a0..ff9aeb506b0d1 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 \ |