1 # Description: Generic Spell Checking Library.
2 # URL: http://www.abisource.com/enchant/
3 # Packager: James Mills, prologic at shortcircuit dot net dot au
4 # Maintainer: Danny Rawlins, monster dot romster at gmail dot com
5 # Arch Maintainer System Team devel at crux-arm dot nu
6 # Depends on: aspell glib
11 source=(http://www.abisource.com/downloads/enchant/$version/enchant-$version.tar.gz)
15 export DEFAULT_LIBS="-L$CLFS/usr/lib"
16 export DEFAULT_CFLAGS="-I$CLFS/usr/include"
17 export GLIB_LIBS="-pthread -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0"
18 export GLIB_CFLAGS="-pthread -I$CLFS/usr/include/glib-2.0 -I$CLFS/usr/lib/glib-2.0/include -I$CLFS/usr/include/gio-unix-2.0"
19 export ENCHANT_LIBS="$DEFAULT_LIBS $GLIB_LIBS"
20 export ENCHANT_CFLAGS="$DEFAULT_CFLAGS $GLIB_CFLAGS"
22 ./configure --build=$CHOST \
27 --disable-dependency-tracking \
32 --with-aspell-prefix=$CLFS/usr
34 # libtool relink change to avoid hosts libs
35 sed "s|add_dir=\"\-L\$libdir\"|add_dir=\"\-L\$CLFS\$dir\"|g" -i libtool
37 make DESTDIR=$PKG install
38 chmod a-x $PKG/usr/lib/*.so