summaryrefslogtreecommitdiff
path: root/network/hylafax/hylafax.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/hylafax/hylafax.SlackBuild')
-rw-r--r--network/hylafax/hylafax.SlackBuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/network/hylafax/hylafax.SlackBuild b/network/hylafax/hylafax.SlackBuild
index d7bfcba0db..637fe2c262 100644
--- a/network/hylafax/hylafax.SlackBuild
+++ b/network/hylafax/hylafax.SlackBuild
@@ -27,7 +27,7 @@
# General script clean-up and minor improvements
PRGNAM=hylafax
-VERSION=${VERSION:-6.0.4}
+VERSION=${VERSION:-6.0.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -80,6 +80,10 @@ sed "s|@LIBDIRSUFFIX@|${LIBDIRSUFFIX}|g" \
< $CWD/config.local.in \
> $TMP/$PRGNAM-$VERSION/config.local
+# strip missing header to prevent failure with GCC 4.5.
+sed -i -e 's|libc\.h ||' configure
+sed -i -e "s|-fpic|-fPIC|g" configure
+
CFLAGS="${SLKCFLAGS}" \
CXXFLAGS="${SLKCFLAGS}" \
./configure \
@@ -96,10 +100,8 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" \
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# Compress man pages
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mv $PKG/etc/rc.d/hylafax $PKG/etc/rc.d/rc.hylafax.new
( cd $PKG/var/spool/hylafax/etc