summaryrefslogtreecommitdiff
path: root/development/acpica/acpica.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-11 22:22:17 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:22:17 +0200
commite0de3fc6bfba3fd606cdf5c04198ccfa37ee7d94 (patch)
tree9d92e0a559ab9040ed4716c824f3031567f56169 /development/acpica/acpica.SlackBuild
parentac8c74ab403e370e63657cd70860b44933e4aefa (diff)
downloadslackbuilds-e0de3fc6bfba3fd606cdf5c04198ccfa37ee7d94.tar.gz
development/acpica: Updated for version 20080829
Diffstat (limited to 'development/acpica/acpica.SlackBuild')
-rw-r--r--development/acpica/acpica.SlackBuild39
1 files changed, 22 insertions, 17 deletions
diff --git a/development/acpica/acpica.SlackBuild b/development/acpica/acpica.SlackBuild
index a123b35370..d34021d802 100644
--- a/development/acpica/acpica.SlackBuild
+++ b/development/acpica/acpica.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for acpica
-# Copyright 2008 Heinz Wiesinger <hmwiesinger@gmx.at>
+# Copyright 2008 Heinz Wiesinger <pprkut@liwjatan.at>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=acpica
-VERSION=20080213
+VERSION=20080829
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -37,6 +37,8 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
set -e
@@ -50,23 +52,26 @@ cd $PRGNAM-unix-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-# This is a patch from gentoo, which doesn't change the source
-# but eases the way to build it.
-patch -p1 -i $CWD/acpica-unix-20060512-buildfixup.patch
+cd compiler
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ make MAKEFLAGS="-j1"
+ install -D -m 0755 iasl $PKG/usr/bin/iasl
+ make clean
+cd -
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-make
+for i in acpiexec acpisrc acpixtract; do
+ cd tools/$i
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ make
+ install -D -m 0755 $i $PKG/usr/bin/$i
+ make clean
+ cd -
+done
-install -D -m 0755 ./compiler/iasl $PKG/usr/bin/iasl
-install -D -m 0755 ./tools/acpixtract/acpixtract $PKG/usr/bin/acpixtract
-install -D -m 0755 ./tools/acpiexec/acpiexec $PKG/usr/bin/acpiexec
-install -D -m 0755 ./tools/acpisrc/acpisrc $PKG/usr/bin/acpisrc
-
-( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-)
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a changes.txt README $PKG/usr/doc/$PRGNAM-$VERSION