summaryrefslogtreecommitdiffstats
path: root/office/abiword/abiword.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/abiword/abiword.SlackBuild')
-rw-r--r--office/abiword/abiword.SlackBuild15
1 files changed, 10 insertions, 5 deletions
diff --git a/office/abiword/abiword.SlackBuild b/office/abiword/abiword.SlackBuild
index 11707f4c3a..0c11e6d5e7 100644
--- a/office/abiword/abiword.SlackBuild
+++ b/office/abiword/abiword.SlackBuild
@@ -36,6 +36,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=abiword
+SRCNAM=AbiWord-release
VERSION=${VERSION:-3.0.5}
DOCSVER=3.0.2 # version of abiword-docs
DOCTAR=3.0.1 # sigh, the tarball contains abiword-docs-3.0.1 still
@@ -80,9 +81,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
rm -rf abiword-docs-$DOCTAR
tar xvf $CWD/abiword-docs-$DOCSVER.tar.gz
chown -R root:root .
@@ -92,6 +93,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+
+# https://www.linuxfromscratch.org/blfs/view/svn/xsoft/AbiWord.html
+sed -e '/libxml/a #include <libxml/xmlmemory.h>' \
+ -i src/af/util/xp/ut_stringbuf.cpp
+
patch -p1 < $CWD/enchant-2.1.patch
# 20200622 bkw: don't let abiword create /root/.config/abiword/profile
@@ -101,9 +106,9 @@ export CCACHE_DIR=${CCACHE_DIR:-$HOME/.ccache}
export HOME=$( pwd )/tmphome
CPPFLAGS="-I$TMP/$PRGNAM-$VERSION" \
-CFLAGS="$SLKCFLAGS" \
+CFLAGS="$SLKCFLAGS -fpermissive" \
CXXFLAGS="$SLKCFLAGS -std=c++11" \
-./configure \
+./autogen.sh \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \