CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
libsoup: removed verbose output.
[attic/ports/opt-cross.git] / enchant / Pkgfile
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
7
8 name=enchant
9 version=1.4.2
10 release=1
11 source=(http://www.abisource.com/downloads/enchant/$version/enchant-$version.tar.gz)
12
13 build() {
14 cd enchant-$version
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"
21
22 ./configure --build=$CHOST \
23 --host=$CTARGET \
24 --prefix=/usr \
25 --mandir=/usr/man \
26 --disable-static \
27 --disable-dependency-tracking \
28 --disable-zemberek \
29 --disable-hspell \
30 --disable-uspell \
31 --disable-voikko \
32 --with-aspell-prefix=$CLFS/usr
33
34 # libtool relink change to avoid hosts libs
35 sed "s|add_dir=\"\-L\$libdir\"|add_dir=\"\-L\$CLFS\$dir\"|g" -i libtool
36 make
37 make DESTDIR=$PKG install
38 chmod a-x $PKG/usr/lib/*.so
39 }
40