Commit | Line | Data |
---|---|---|
b22af903 JB |
1 | # Description: GTK based notebook which has similar functionality to the Psion Revo PDA. |
2 | # URL: http://ordiluc.net/gtklepin/ | |
3 | # Packager: Jose V Beneyto, sepen at crux dot nu | |
4 | # Maintainer: Jose V Beneyto, sepen at crux dot nu | |
5 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu | |
6 | # Depends on: gtk | |
7 | ||
8 | name=gtklepin | |
9 | version=0.3 | |
10 | release=1 | |
91010391 JB |
11 | source=(http://ordiluc.net/$name/$name-$version.tar.bz2 \ |
12 | $name-$version-cross_compile.patch) | |
b22af903 JB |
13 | |
14 | build() { | |
15 | cd $name-$version | |
16 | ||
91010391 | 17 | patch -p1 -i $SRC/$name-$version-cross_compile.patch |
b22af903 | 18 | |
91010391 JB |
19 | export GLIB_LIBS="-pthread -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0" |
20 | export GLIB_CFLAGS="-pthread -I$CLFS/usr/include/glib-2.0 -I$CLFS/usr/lib/glib-2.0/include" | |
21 | ||
22 | 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" | |
23 | 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" | |
b22af903 JB |
24 | |
25 | ./configure --build=$CHOST \ | |
26 | --host=$CTARGET \ | |
27 | --prefix=/usr \ | |
28 | --disable-nls \ | |
29 | --disable-debug \ | |
30 | --disable-glibtest \ | |
31 | --disable-gtktest \ | |
32 | --without-zlib | |
33 | ||
34 | # fix previous declaration of 'getline' | |
91010391 JB |
35 | sed -i src/* \ |
36 | -e 's|getline|gstring_getline|g' | |
b22af903 JB |
37 | |
38 | make | |
39 | make DESTDIR=$PKG install | |
40 | } |