aboutsummaryrefslogtreecommitdiff
path: root/graphics/screengrab/screengrab.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2013-11-05 12:40:40 +0100
committerRobby Workman <rworkman@slackbuilds.org>2013-11-06 00:56:08 -0600
commitf4d1eaaea808220d06ca257a9ba129db62bd79cb (patch)
tree8b262d6e3b162b1a6f98c69fdb30619a961f0c37 /graphics/screengrab/screengrab.SlackBuild
parent009c3b1af3501c4ef05cce8891e13142ae01687e (diff)
graphics/screengrab: Updated for version 1.0, added license.
Changed homepage Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'graphics/screengrab/screengrab.SlackBuild')
-rw-r--r--graphics/screengrab/screengrab.SlackBuild29
1 files changed, 26 insertions, 3 deletions
diff --git a/graphics/screengrab/screengrab.SlackBuild b/graphics/screengrab/screengrab.SlackBuild
index 4d758a7dcf606..2863016694a60 100644
--- a/graphics/screengrab/screengrab.SlackBuild
+++ b/graphics/screengrab/screengrab.SlackBuild
@@ -1,10 +1,28 @@
#!/bin/sh
# Slackware build script for screengrab
-# Written by Matteo Bernardini <ponce@slackbuilds.org>
+# Copyright 2013 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=screengrab
-VERSION=${VERSION:-0.9.85}
+VERSION=${VERSION:-1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -21,6 +39,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+IS64BITS=0
+RESPECTLIB64=0
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@@ -29,7 +49,8 @@ elif [ "$ARCH" = "i686" ]; then
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
+ IS64BITS=1
+ RESPECTLIB64=1
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
@@ -56,6 +77,8 @@ cd build
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
+ -DIS64BITS=$IS64BITS \
+ -DRESPECTLIB64=$RESPECTLIB64 \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG