#add /apps/conky/lib to the beginning of /etc/ld.so.conf and run ldconfig before starting. build_conky() { . ./glib2-sc.inc || exit 1 . ./curl-sc.inc || exit 1 . ./libxml2-sc.inc || exit 1 . ./wireless_tools-sc.inc || exit 1 . ./ncurses-sc.inc || exit 1 . ./alsa-lib-sc.inc || exit 1 HERE=`pwd` BUILDDEPS="compiletc.tcz fontconfig-dev.tcz freetype_base-dev.tcz gettext.tcz intltool.tcz Xorg-7.6-lib.tcz Xorg-7.6-dev.tcz" for I in `echo "$BUILDDEPS"`; do su tc -c "tce-load -i "$I"" || su tc -c "tce-load -iw "$I"" done PKGPATH=$1 export LDFLAGS="-L$PKGPATH/lib" export CPPFLAGS="-I$PKGPATH/include -I/usr/include/freetype2" export PATH="$PKGPATH/localbin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" export LD_LIBRARY_PATH="$PKGPATH/lib" if [ ! -f "$TMPDIR"/glib2 ]; then build_glib2 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/curl ]; then build_curl "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libxml2 ]; then build_libxml2 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/wireless_tools ]; then build_wireless_tools "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/ncurses ]; then build_ncurses "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/alsa-lib ]; then build_alsa-lib "$PKGPATH" || exit 1 fi tar xvf conky-1.9.0.tar.bz2 || exit 1 cd conky-1.9.0 || exit 1 ldconfig ./configure \ --prefix="$PKGPATH" \ --bindir="$PKGPATH"/localbin \ --enable-ibm \ --enable-curl \ --enable-rss \ --enable-weather-xoap \ --enable-imlib2 \ --disable-lua \ --enable-wlan \ make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/conky }