system/shake: Fix use of SLKCFLAGS.

Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
V'yacheslav Stetskevych 2011-01-06 15:45:52 -02:00 committed by Robby Workman
parent 0a3a0199f4
commit b4e6e6e31f
2 changed files with 23 additions and 8 deletions

View file

@ -2,19 +2,35 @@
# Slackware build script for shake # Slackware build script for shake
# Written by V'yacheslav Stetskevych # Copyright 2010 V'yacheslav Stetskevych <slava18@gmail.com>
# 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=shake PRGNAM=shake
VERSION=${VERSION:-0.99} VERSION=${VERSION:-0.99}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i486 ;; i?86) ARCH=i486 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac
fi fi
@ -54,14 +70,13 @@ find . \
-exec chmod 644 {} \; -exec chmod 644 {} \;
cd build cd build
CFLAGS="$SLKCFLAGS" \
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
.. ..
make make VERBOSE=1
make install DESTDIR=$PKG make install DESTDIR=$PKG
cd - cd -

View file

@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
MAINTAINER="V'yacheslav Stetskevych" MAINTAINER="V'yacheslav Stetskevych"
EMAIL="slava18@gmail.com" EMAIL="slava18@gmail.com"
APPROVED="dsomero" APPROVED="dsomero,Niels Horn"