aboutsummaryrefslogtreecommitdiff
path: root/misc/stardict/stardict.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'misc/stardict/stardict.SlackBuild')
-rw-r--r--misc/stardict/stardict.SlackBuild20
1 files changed, 15 insertions, 5 deletions
diff --git a/misc/stardict/stardict.SlackBuild b/misc/stardict/stardict.SlackBuild
index a5f01d5ca9e7..4312cab8c443 100644
--- a/misc/stardict/stardict.SlackBuild
+++ b/misc/stardict/stardict.SlackBuild
@@ -27,14 +27,14 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=stardict
-VERSION=${VERSION:-3.0.6}
+VERSION=${VERSION:-3.0.6.2}
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
@@ -54,8 +54,8 @@ OUTPUT=${OUTPUT:-/tmp}
DOCS="AUTHORS COPYING ChangeLog INSTALL README"
-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"
@@ -74,7 +74,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xf $CWD/$PRGNAM-$VERSION-github-2.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -83,6 +83,14 @@ 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 {} \;
+sed -i 's/, enchant/, enchant-2/' dict/configure.ac
+sed -i '/AM_GCONF_SOURCE_2/d' dict/configure.ac
+sed -i '/GNOME_DOC_INIT/d' dict/configure.ac
+sed -i '/gnome-doc-utils.make/d' dict/help/Makefile.am
+
+./autogen.sh
+( cd dict ; ./autogen.sh )
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS -std=c++11" \
./configure \
@@ -94,6 +102,7 @@ CXXFLAGS="$SLKCFLAGS -std=c++11" \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-gucharmap \
--disable-festival \
+ --disable-flite \
--disable-espeak \
--disable-gnome-support \
--disable-schemas-install \
@@ -101,6 +110,7 @@ CXXFLAGS="$SLKCFLAGS -std=c++11" \
--disable-static \
--build=$ARCH-slackware-linux
+sed -e 's/ -shared / -Wl,-O1,--as-needed\0/g' -i {dict,lib,tools}/libtool
make
make install DESTDIR=$PKG