| 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 |
| 11 | source=(http://ordiluc.net/$name/$name-$version.tar.bz2) |
| 12 | |
| 13 | build() { |
| 14 | cd $name-$version |
| 15 | |
| 16 | export GTK_LIBS=" -L$CLFS/usr/lib -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 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0" |
| 17 | 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/glib-2.0 -I$CLFS/usr/lib/glib-2.0/include -I$CLFS/usr/include/pixman-1 -I$CLFS/usr/include/freetype2 -I$CLFS/usr/include/libpng12" |
| 18 | |
| 19 | sed -i configure \ |
| 20 | -e "s|GTK_LIBS=.*|GTK_LIBS=\"$GTK_LIBS\"|g" \ |
| 21 | -e "s|GTK_CFLAGS=.*|GTK_CFLAGS=\"$GTK_CFLAGS\"|g" \ |
| 22 | -e 's|no_gtk=yes|no_gtk=|g' |
| 23 | |
| 24 | ./configure --build=$CHOST \ |
| 25 | --host=$CTARGET \ |
| 26 | --prefix=/usr \ |
| 27 | --disable-nls \ |
| 28 | --disable-debug \ |
| 29 | --disable-glibtest \ |
| 30 | --disable-gtktest \ |
| 31 | --without-zlib |
| 32 | |
| 33 | # fix previous declaration of 'getline' |
| 34 | sed -i src/* -e 's|getline|gstring_getline|g' |
| 35 | |
| 36 | make |
| 37 | make DESTDIR=$PKG install |
| 38 | } |