summaryrefslogtreecommitdiffstats
path: root/tigervnc/build/tigervnc.SlackBuild
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2012-06-23 13:16:55 +0000
committer Eric Hameleers <alien@slackware.com>2012-06-23 13:16:55 +0000
commitd316e1c29761bfba602c259c09807b395ca077b5 (patch)
treeed39f07640099116eb262a9b9910c104e8766c94 /tigervnc/build/tigervnc.SlackBuild
parent9277e979a6f9f88c9302f16138bb3f69bacbcd4a (diff)
downloadasb-d316e1c29761bfba602c259c09807b395ca077b5.tar.gz
asb-d316e1c29761bfba602c259c09807b395ca077b5.tar.xz
Update to 1.2.0
Diffstat (limited to 'tigervnc/build/tigervnc.SlackBuild')
-rwxr-xr-xtigervnc/build/tigervnc.SlackBuild36
1 files changed, 23 insertions, 13 deletions
diff --git a/tigervnc/build/tigervnc.SlackBuild b/tigervnc/build/tigervnc.SlackBuild
index eef9b86c..fab5f675 100755
--- a/tigervnc/build/tigervnc.SlackBuild
+++ b/tigervnc/build/tigervnc.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
# $Id$
-# Copyright 2010, 2011 Eric Hameleers, Eindhoven. NL
+# Copyright 2010, 2011, 2012 Eric Hameleers, Eindhoven. NL
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@@ -38,17 +38,17 @@
# * Update to 1.1.beta1
# 1.1.0-1: 14/nov/2011 by Eric Hameleers <alien@slackware.com>
# * Update to 1.1.0
+# 1.2.0-1: 23/jun/2012 by Eric Hameleers <alien@slackware.com>
+# * Update.
#
# Run 'sh tigervnc.SlackBuild' to build a Slackware package.
-# The package (.tgz) and .txt file as well as build logs are created in /tmp .
+# The package (.txz) and .txt file as well as build logs are created in /tmp .
# Install it using 'installpkg'.
#
# -----------------------------------------------------------------------------
-# Set initial variables:
-
PRGNAM=tigervnc
-VERSION=${VERSION:-1.1.0}
+VERSION=${VERSION:-1.2.0}
BUILD=${BUILD:-1}
NUMJOBS=${NUMJOBS:" -j4 "}
TAG=${TAG:-alien}
@@ -124,12 +124,14 @@ src_checkout() {
##
# Automatically determine the architecture we're building on:
+MARCH=$( uname -m )
if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) export ARCH=i486 ;;
- arm*) export ARCH=arm ;;
+ case "$MARCH" in
+ i?86) export ARCH=i486 ;;
+ armv7hl) export ARCH=$MARCH ;;
+ arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
- *) export ARCH=$( uname -m ) ;;
+ *) export ARCH=$MARCH ;;
esac
fi
@@ -140,11 +142,19 @@ case "$ARCH" in
x86_64) SLKCFLAGS="-O2 -fPIC"
SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64"
;;
+ armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"
+ SLKLDFLAGS=""; LIBDIRSUFFIX=""
+ ;;
*) SLKCFLAGS="-O2"
SLKLDFLAGS=""; LIBDIRSUFFIX=""
;;
esac
+case "ARCH" in
+ arm*) TARGET=$ARCH-slackware-linux-gnueabi ;;
+ *) TARGET=$ARCH-slackware-linux ;;
+esac
+
# Exit the script on errors:
set -e
trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR
@@ -245,7 +255,7 @@ autoreconf -vif 2>&1 | tee $OUTPUT/configure-${PRGNAM}.log
--disable-static \
--program-prefix= \
--program-suffix= \
- --build=$ARCH-slackware-linux \
+ --build=$TARGET \
2>&1 | tee $OUTPUT/configure-${PRGNAM}.log
make $NUMJOBS 2>&1 | tee $OUTPUT/make-${PRGNAM}.log
@@ -284,7 +294,7 @@ cd unix/xserver
--with-os-name="$OSNAME" \
--with-os-vendor="$OSVENDOR" \
--with-builderstring="$BUILDER" \
- --build=$ARCH-slackware-linux \
+ --build=$TARGET \
2>&1 | tee $OUTPUT/configure-${PRGNAM}.log
make $NUMJOBS 2>&1 | tee -a $OUTPUT/make-${PRGNAM}.log
@@ -384,9 +394,9 @@ fi
# Build the package:
cd $PKG
-makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-tgz} 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log
+makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log
cd $OUTPUT
-md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-tgz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-tgz}.md5
+md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5
cd -
cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
if [ -f $PKG/install/slack-required ]; then