summaryrefslogtreecommitdiff
path: root/development/icoutils
diff options
context:
space:
mode:
Diffstat (limited to 'development/icoutils')
-rw-r--r--development/icoutils/README3
-rw-r--r--development/icoutils/icoutils.SlackBuild19
2 files changed, 12 insertions, 10 deletions
diff --git a/development/icoutils/README b/development/icoutils/README
index 77416b72ba..cdf8e0752f 100644
--- a/development/icoutils/README
+++ b/development/icoutils/README
@@ -2,6 +2,3 @@ icoutils (Windows Icon and Cursor Utilities)
The icoutils are a set of program for extracting and converting
images in Microsoft Windows(R) icon and cursor files.
-
-Homepage: http://www.nongnu.org/icoutils/
-
diff --git a/development/icoutils/icoutils.SlackBuild b/development/icoutils/icoutils.SlackBuild
index 1834671d55..1d262d130b 100644
--- a/development/icoutils/icoutils.SlackBuild
+++ b/development/icoutils/icoutils.SlackBuild
@@ -1,8 +1,8 @@
#!/bin/sh
# Slackware build script for icoutils
-# Copyright (c) 2008, Written by Mark Walling <mark@markwalling.com>
+# Copyright (c) 2008, Mark Walling <mark@markwalling.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -35,12 +35,12 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCFILES="AUTHORS COPYING ChangeLog NEWS README TODO"
-
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
@@ -59,14 +59,17 @@ CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
- --localstatedir=/var
+ --localstatedir=/var \
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
( 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 . | 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
)
( cd $PKG/usr/man
@@ -75,7 +78,9 @@ make install DESTDIR=$PKG
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING ChangeLog NEWS README TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install