CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
openbox: initial import (verified compilation)
[attic/ports/opt-cross.git] / sylpheed / Pkgfile
CommitLineData
3cca951b
JB
1# Description: GTK+ email client and news reader
2# URL: http://sylpheed.sraoss.jp/en/
3# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5# Depends on: gtk openssl
6
7name=sylpheed
8version=3.0.3
9release=1
10source=(http://sylpheed.sraoss.jp/sylpheed/v3.0/$name-$version.tar.bz2 \
11 $name-$version-cross_compile.patch)
12
13build () {
14 cd $name-$version
15
16 patch -p1 -i $SRC/$name-$version-cross_compile.patch
17
18 export OPENSSL_LIBS="-lssl -lcrypto -ldl"
19 export OPENSSL_CFLAGS=""
20
21 export GLIB_LIBS="-pthread -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0"
22 export GLIB_CFLAGS="-pthread -I$CLFS/usr/include/glib-2.0 -I$CLFS/usr/lib/glib-2.0/include"
23
24 export GTK_LIBS="$GLIB_LIBS -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig"
25 export GTK_CFLAGS="-I$CLFS/usr/include -pthread -I$CLFS/usr/include/gtk-2.0 -I$CLFS/usr/lib/gtk-2.0/include -I$CLFS/usr/include/atk-1.0 -I$CLFS/usr/include/cairo -I$CLFS/usr/include/pango-1.0 -I$CLFS/usr/include/pixman-1 -I$CLFS/usr/include/freetype2 -I$CLFS/usr/include/libpng12"
26
27 # here 'includedir' is used in the compilation stage for headers
28 ./configure --build=$CHOST \
29 --host=$CTARGET \
30 --prefix=/usr \
31 --includedir=$CLFS/usr/include \
32 --disable-gtktest \
33 --disable-glibtest
34
2f757022
VM
35 # libtool relink change to avoid hosts libs
36 sed "s|add_dir=\"\-L\$libdir\"|add_dir=\"\-L\$CLFS\$dir\"|g" -i libtool
3cca951b
JB
37 make
38 # and here 'includedir' is used in the installation stage
39 make DESTDIR=$PKG includedir=/usr/include install
40
41 sed -ri '/\[.+\]=/d' sylpheed.desktop
42 install -d $PKG/usr/share/{applications,pixmaps}
43 install -m 0644 sylpheed.desktop $PKG/usr/share/applications
44 install -m 0644 sylpheed.png $PKG/usr/share/pixmaps
45
46 rm -r $PKG/usr/share/{locale,sylpheed}
47}