#!/bin/bash ####################################################################### # Program: trackbuild.espgs # Purpose: Launch the build script via slacktrack/altertrack # Author : Stuart Winter ####################################################################### # Record toolchain & other info for the build log: slackbuildinfo # Ensure slacktrack/altertrack is installed: which slacktrack >/dev/null 2>&1 || { echo "Cannot build without slacktrack" ; exit 1 ;} TRACKTYPE=slacktrack # Paths to skeleton port's source & real Slackware source tree: export CWD=$SLACKSOURCE/$PKGSERIES/$PACKAGE export PORTCWD=$PWD # Temporary build locations: export TMPBUILD=$TMP/build-$PACKAGE export PKG=$TMP/package-$PACKAGE mkpkgdirs # Delete & re-create temporary directories then cd into $TMPBUILD rm -rf $TMPBUILD # Determine the CFLAGS for the known architectures: case $PORTARCH in arm) export SLKCFLAGS="-O2 -march=armv3 -mtune=xscale" ;; powerpc) export SLKCFLAGS="-O2" ;; sparc) export SLKCFLAGS="-O2" ;; esac # If specified in slackdev.config, we'll delete the old copy of the # package from our package store. if [ "${DELETEOLDPKGS}" = "Yes" ]; then rm -f $PKGSTORE/$PKGSERIES/$PACKAGE-*.{tgz,txt} fi # Stop daemons/processes which tend to modify the contents of the filesystem: altertrackprep # Launch the compile/install script: cd $PORTCWD $TRACKTYPE $ALTERTRACKOPTS \ --notidy \ -T$TMPBUILD \ -l$PORTCWD/build.$ARCH.log \ -b$PKGSTORE/$PKGSERIES \ -OcQp $SLACKPACKAGE ./$PACKAGE.build $VERSION # If this is the first time we've ever built espgs then it also means we've # only just built ap/gimp-print. # Therefore we now need to rebuild gimp-print with espgs support. echo echo "Do you now need to rebuild gimp-print with espgs support?" echo "Probably not, unless this is your first time building espgs." echo "For more info see ap/gimp-print/arm/build"