# 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
                                                                                
# The version of the software to build and install
VERSION   = 3.3
RELEASE   = 0
                                                                                
                                                                                
   # package name at SOURCE1
PKG1      = qt-x11-free-3.3.3.tar.bz2
MD5SUM1   = 3e0a0c8429b0a974b39b5f535ddff01c
   # Where to get the package
SOURCE1   = ftp://ftp.trolltech.com/qt/source/${PKG1}
   # how to unpack it
UNPACK1   = bunzip2 < ${TARBALL} | tar xf - \
        && ln -s qt-x11-free-* qt
   # where the source will be after unpacking
SOURCEDIR = qt
   # where to build it
BUILDDIR  = qt-build
#
# The following commands are used by the build script when building the
# package.
#
CONFIGURE = export CFLAGS="-march=i386" &&              \
            ../${SOURCEDIR}/configure -prefix ${LTSP_ROOT}/usr/qt/3 -thread
BUILD     = export CFLAGS="-march=i386" &&          \
        export PREFIX=/usr/qt/3 &&          \
        export QTDIR=${LTSP_ROOT}/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=/usr/qt/3 &&          \
        export QTDIR=${LTSP_ROOT}/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 QTDIR=${LTSP_ROOT}/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

