summaryrefslogtreecommitdiff
path: root/graphics/qtpfsgui
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-05-19 21:48:03 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-21 01:31:28 -0500
commit7b2f7a5d57c014228bbbbcce7e8116324d6e6729 (patch)
treecdd37588b780c48f78eefbbd422f478d4c0a25ac /graphics/qtpfsgui
parent35521a2da28d8d9de31ef593ec7f4623f404e964 (diff)
downloadslackbuilds-7b2f7a5d57c014228bbbbcce7e8116324d6e6729.tar.gz
graphics/qtpfsgui: Miscellaneous cleanups
Diffstat (limited to 'graphics/qtpfsgui')
-rw-r--r--graphics/qtpfsgui/README2
-rw-r--r--graphics/qtpfsgui/qtpfsgui.SlackBuild14
-rw-r--r--graphics/qtpfsgui/slack-desc6
3 files changed, 16 insertions, 6 deletions
diff --git a/graphics/qtpfsgui/README b/graphics/qtpfsgui/README
index d3c334d2e7..9f707d60f3 100644
--- a/graphics/qtpfsgui/README
+++ b/graphics/qtpfsgui/README
@@ -2,5 +2,3 @@ Qtpfsgui is an HDR imaging tool. It creates an HDR file from a set
of images (JPEG, TIFF 8 and 16 bit, RAW) of the same scene taken at
different exposure settings. You can save and load HDR images,
rotate and resize them, tonemap your images, and copy your EXIF data.
-
-Qtpfsgui requires fftw, which is also available from SlackBuilds.org.
diff --git a/graphics/qtpfsgui/qtpfsgui.SlackBuild b/graphics/qtpfsgui/qtpfsgui.SlackBuild
index 044d69815d..22a2b6b99d 100644
--- a/graphics/qtpfsgui/qtpfsgui.SlackBuild
+++ b/graphics/qtpfsgui/qtpfsgui.SlackBuild
@@ -6,10 +6,19 @@
PRGNAM=qtpfsgui
VERSION=1.9.2
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) export ARCH=i486 ;;
+ arm*) export ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) export ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -24,6 +33,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e
diff --git a/graphics/qtpfsgui/slack-desc b/graphics/qtpfsgui/slack-desc
index 22677b287d..ff38041d6f 100644
--- a/graphics/qtpfsgui/slack-desc
+++ b/graphics/qtpfsgui/slack-desc
@@ -14,6 +14,6 @@ qtpfsgui: You can save and load HDR images, rotate and resize them, tonemap
qtpfsgui: your images, and copy your EXIF data.
qtpfsgui:
qtpfsgui: Homepage: http://qtpfsgui.sourceforge.net/
-qtpfsgui:
-qtpfsgui:
-qtpfsgui:
+qtpfsgui:
+qtpfsgui:
+qtpfsgui: