From: Jose V Beneyto Date: Fri, 29 Oct 2010 15:48:52 +0000 (+0200) Subject: gtklepin: initial import (verified compilation) X-Git-Url: http://gitweb/?a=commitdiff_plain;h=b22af9033ed98065b48c20e0a3608f5e8da794d7;p=attic%2Fports%2Fopt-cross.git gtklepin: initial import (verified compilation) --- diff --git a/gtklepin/.footprint b/gtklepin/.footprint new file mode 100644 index 0000000..6b5b723 --- /dev/null +++ b/gtklepin/.footprint @@ -0,0 +1,6 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/gtklepin +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/gtklepin.1.gz diff --git a/gtklepin/.md5sum b/gtklepin/.md5sum new file mode 100644 index 0000000..8c25970 --- /dev/null +++ b/gtklepin/.md5sum @@ -0,0 +1 @@ +15eeae2d287dee6df6f6505aa2f4a2a8 gtklepin-0.3.tar.bz2 diff --git a/gtklepin/Pkgfile b/gtklepin/Pkgfile new file mode 100644 index 0000000..5ff88eb --- /dev/null +++ b/gtklepin/Pkgfile @@ -0,0 +1,38 @@ +# Description: GTK based notebook which has similar functionality to the Psion Revo PDA. +# URL: http://ordiluc.net/gtklepin/ +# Packager: Jose V Beneyto, sepen at crux dot nu +# Maintainer: Jose V Beneyto, sepen at crux dot nu +# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu +# Depends on: gtk + +name=gtklepin +version=0.3 +release=1 +source=(http://ordiluc.net/$name/$name-$version.tar.bz2) + +build() { + cd $name-$version + + 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" + 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" + + sed -i configure \ + -e "s|GTK_LIBS=.*|GTK_LIBS=\"$GTK_LIBS\"|g" \ + -e "s|GTK_CFLAGS=.*|GTK_CFLAGS=\"$GTK_CFLAGS\"|g" \ + -e 's|no_gtk=yes|no_gtk=|g' + + ./configure --build=$CHOST \ + --host=$CTARGET \ + --prefix=/usr \ + --disable-nls \ + --disable-debug \ + --disable-glibtest \ + --disable-gtktest \ + --without-zlib + + # fix previous declaration of 'getline' + sed -i src/* -e 's|getline|gstring_getline|g' + + make + make DESTDIR=$PKG install +}