summaryrefslogtreecommitdiffstats
path: root/network/efax-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'network/efax-gtk')
-rw-r--r--network/efax-gtk/README19
-rw-r--r--network/efax-gtk/efax-gtk.SlackBuild24
2 files changed, 27 insertions, 16 deletions
diff --git a/network/efax-gtk/README b/network/efax-gtk/README
index 5425e12a1c..b077155754 100644
--- a/network/efax-gtk/README
+++ b/network/efax-gtk/README
@@ -1,10 +1,11 @@
-It is a GTK+ front end for the efax program who can be used to send and
-receive faxes with a fax modem, and to view, print and manage faxes received.
-It also has a socket interface to provide a "virtual printer" for sending
-faxes from word processors and similar programs, and can automatically
-e-mail a received fax to a designated user, and automatically print a
-received fax. It is specially nice for a single user's use, as probably he/she
-doesn't usually need a fax server (i.e. hylafax).
+It is a GTK+ front end for the efax program who can be used to send
+and receive faxes with a fax modem, and to view, print and manage
+faxes received. It also has a socket interface to provide a "virtual
+printer" for sending faxes from word processors and similar programs,
+and can automatically e-mail a received fax to a designated user, and
+automatically print a received fax. It is specially nice for a single
+user's use, as probably he/she doesn't usually need a fax server
+(i.e. hylafax).
-See README.SLACKWARE file in efax-gtk's docs directory for configuration
-notes.
+See README.SLACKWARE file in efax-gtk's docs directory for
+configuration notes.
diff --git a/network/efax-gtk/efax-gtk.SlackBuild b/network/efax-gtk/efax-gtk.SlackBuild
index 22557857e6..3460336c75 100644
--- a/network/efax-gtk/efax-gtk.SlackBuild
+++ b/network/efax-gtk/efax-gtk.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for efax-gtk
@@ -22,20 +22,30 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=efax-gtk
VERSION=${VERSION:-3.2.13}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -47,8 +57,8 @@ DOCFILES="ABOUT-NLS AUTHORS BUGS ChangeLog COPYING INSTALL README"
EFAX_DOCS="efax/COPYING efax/PATCHES efax/README efax/fax"
OTHER_CMDS="mail_fax print_fax"
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -76,7 +86,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
+CFLAGS="$SLKCFLAGS -w -Wl,--allow-multiple-definition" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
@@ -135,4 +145,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE