aboutsummaryrefslogtreecommitdiff
path: root/libraries/agg/agg.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2018-09-07 19:19:51 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-09-08 08:37:49 +0700
commitcaebb2ada57d6228c0f07ee6979e1b03d2cfaa3a (patch)
treee30d12feb991f31a2431a5bf13f47f8818bf11b6 /libraries/agg/agg.SlackBuild
parentea33859fffa663424b0295da4a222d8b8f79d663 (diff)
libraries/agg: Switch back to version 2.5.
The debian one doesn't work with stuff on SBo Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/agg/agg.SlackBuild')
-rw-r--r--libraries/agg/agg.SlackBuild19
1 files changed, 9 insertions, 10 deletions
diff --git a/libraries/agg/agg.SlackBuild b/libraries/agg/agg.SlackBuild
index 02d346327756b..02a9477479b5c 100644
--- a/libraries/agg/agg.SlackBuild
+++ b/libraries/agg/agg.SlackBuild
@@ -9,13 +9,13 @@
# For details see http://sam.zoy.org/wtfpl/COPYING
PRGNAM=agg
-VERSION=${VERSION:-r127}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-2.5}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i586 ;;
+ i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -26,8 +26,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -46,7 +46,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -55,8 +55,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# apply patches from debian (thanks!)
-for i in $CWD/patches/* ; do patch --verbose -p1 < $i ; done
+# apply patches from fedora (thanks!)
+for i in $CWD/patches/* ; do patch -p1 < $i ; done
aclocal
autoheader
autoconf
@@ -72,7 +72,6 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--disable-static \
- --disable-examples \
--build=$ARCH-slackware-linux
make
@@ -85,7 +84,7 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
# Note: there is around 2.5 MB worth of stuff in the examples subdir
# If you need it, it's in the source :)
cp -a \
- AUTHORS README NEWS copying ChangeLog \
+ install ChangeLog authors readme news copying \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild