#
# package.def file for building a package in the the LTSP build environment
#
# Constructed from examples which were:
# Copyright (c) 2003 by James A. McQuillan (McQuillan Systems, LLC)
#
# This software is licensed under the Gnu General Public License.
# The full text of which can be found at http://www.LTSP.org/license.txt
#
# NOTE: for some reason "-I /usr/X11R6/include" has to be put into
# kphone/kphone/kphone/Makefile to get trayicons to build.
                                                                                
VERSION   = 4.0.5
#VERSION   = 4.1.1										# kphone 4.1.1
RELEASE   = 0
                                                                                
                                                                                
PKG1      = kphone-4.0.5.tar.gz
#PKG1      = kphone-4.1.1.tar.gz						# kphone 4.1.1
MD5SUM1   = 30939e432fd0039d4dc8228f21e2c54b
#MD5SUM1   = b95252f527e2fbe107f5d3c1159e2e25	# kphone 4.1.1
SOURCE1   = http://www.wirlab.net/kphone/${PKG1}
UNPACK1   = gunzip < ${TARBALL} | tar xf -
#BUILDDIR  = kphone-build
BUILDDIR  = kphone
SOURCEDIR = kphone
                                                                                
CONFIGURE = export CFLAGS="-march=i386" &&                              \
            export PREFIX=/opt/ltsp/i386 &&                     \
            export QTDIR=/usr/qt/3 &&                   \
            export PATH=$QTDIR/bin:$PATH &&                     \
            export MANPATH=$QTDIR/doc/man:$MANPATH &&           \
            export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH &&       \
            ../${SOURCEDIR}/configure --prefix $PREFIX --x-includes=/usr/X11R6/include
                                                                                
                                                                                
BUILD     = export CFLAGS="-march=i386" &&                      \
            export PREFIX=/opt/ltsp/i386 &&                     \
            export QTDIR=/usr/qt/3 &&                   \
            export PATH=$QTDIR/bin:$PATH &&                     \
            export MANPATH=$QTDIR/doc/man:$MANPATH &&           \
            export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH &&       \
            make
INSTALL   = export CFLAGS="-march=i386" &&                      \
            export PREFIX=/opt/ltsp/i386 &&                     \
            export QTDIR=/usr/qt/3 &&                   \
            export PATH=$QTDIR/bin:$PATH &&                     \
            export MANPATH=$QTDIR/doc/man:$MANPATH &&           \
            export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH &&       \
            make install
CLEAN     = export CFLAGS="-march=i386" &&                      \
            export PREFIX=/opt/ltsp/i386 &&                     \
            export QTDIR=/usr/qt/3 &&                   \
            export PATH=$QTDIR/bin:$PATH &&                     \
            export MANPATH=$QTDIR/doc/man:$MANPATH &&           \
            export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH &&       \
            make clean

