summaryrefslogtreecommitdiff
path: root/graphics/pinta/pinta.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-03 21:54:13 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-05 07:02:20 +0700
commit45120bf01fe604fbaef688f176bcec3b6e0b2952 (patch)
tree1fec53dff0fb4af42cb6591e2d52b369d05b21da /graphics/pinta/pinta.SlackBuild
parent94ef16aa2a733a7acc8bb6328eb7c63a01063690 (diff)
downloadslackbuilds-45120bf01fe604fbaef688f176bcec3b6e0b2952.tar.gz
graphics/pinta: Fix build against mono 4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/pinta/pinta.SlackBuild')
-rw-r--r--graphics/pinta/pinta.SlackBuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/graphics/pinta/pinta.SlackBuild b/graphics/pinta/pinta.SlackBuild
index b765fdb13a..e9d5c28f6f 100644
--- a/graphics/pinta/pinta.SlackBuild
+++ b/graphics/pinta/pinta.SlackBuild
@@ -70,6 +70,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# update the project and solution files for mono4
+# Thanks to Fedora Project
+find . -name "*.sln" -print -exec sed -i 's/Format Version 10.00/Format Version 11.00/g' {} \;
+find . \( -name "*.csproj" -o -name "*.proj" \) -print -exec sed -i 's#ToolsVersion="3.5"#ToolsVersion="4.0"#g; s#<TargetFrameworkVersion>.*</TargetFrameworkVersion>##g; s#<PropertyGroup>#<PropertyGroup><TargetFrameworkVersion>v4.5</TargetFrameworkVersion>#g; s#Mono.Posix, Version.*"#Mono.Posix"#g' {} \;
+
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \