aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@gmail.com>2012-09-19 07:44:10 +0700
committerRobby Workman <rworkman@slackbuilds.org>2012-09-18 23:06:36 -0500
commita9249246ec7fff0266c6608e19551d9117f467b6 (patch)
tree5c87f55ed17691c32005240fdda4db8c3feba8b4
parentf38d8f9bf12983ed4cbfbf4d3be6347515b0bd86 (diff)
development/nsis: Include unistd.h to fix compile.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--development/nsis/nsis-fix-compile.patch10
-rw-r--r--development/nsis/nsis.SlackBuild4
2 files changed, 13 insertions, 1 deletions
diff --git a/development/nsis/nsis-fix-compile.patch b/development/nsis/nsis-fix-compile.patch
new file mode 100644
index 0000000000000..62e9e43c5d6f8
--- /dev/null
+++ b/development/nsis/nsis-fix-compile.patch
@@ -0,0 +1,10 @@
+--- nsis-2.46-src/Source/script.cpp.orig 2012-09-19 07:37:04.579646966 +0700
++++ nsis-2.46-src/Source/script.cpp 2012-09-19 07:37:34.676226671 +0700
+@@ -16,6 +16,7 @@
+
+ #include "Platform.h"
+ #include <stdio.h>
++#include <unistd.h>
+ #include <ctype.h>
+ #include "tokens.h"
+ #include "build.h"
diff --git a/development/nsis/nsis.SlackBuild b/development/nsis/nsis.SlackBuild
index 5b5a9d6e665ab..12ea856ec6221 100644
--- a/development/nsis/nsis.SlackBuild
+++ b/development/nsis/nsis.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=nsis
VERSION=2.46
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@@ -72,6 +72,8 @@ unzip $CWD/$PRGNAM-$VERSION.zip -d $PKG/usr/lib${LIBDIRSUFFIX}
chown -R root:root $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION
chmod -R u+w,go+r-w,a-s $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION
+patch -p1 < $CWD/nsis-fix-compile.patch
+
# PREFIX=$PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION search located zip extracted dir.
# *makensis* will be placed in $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION
scons \