#!/bin/ksh93 # $Id: Build.sh 29 2007-04-04 17:34:53Z elkner $ SRCURL=http://sourceforge.net/projects/tnef/ VERSION=1.4.9 SDIR=${.sh.file%/*} SCRIPTDIR=${SDIR}/../../../etc . ${SCRIPTDIR}/buildfunctions.sh SRC=$SOURCE/email TMPBUILD=$BUILD/tnef-$VERSION function doPrepare { # SUNPKGS="SUNWhea SUNWopenssl-libraries SUNWopenssl-include" REQUIRED="" . ${SCRIPTDIR}/root4build gtar xzf ${SRC}/tnef-${VERSION}.tar.gz cd $TMPBUILD for p in ${SDIR}/*.patch ; do gpatch -p1 -b -z .orig < $p done # aclocal -I ./cmulocal # automake --force --add-missing --include-deps --foreign # autoconf --force } function doMake { cd $TMPBUILD CFLAGS="$L_CFLAGS" LDFLAGS="$L_LDFLAGS" \ ./configure -prefix=/usr echo "make log goes to $MAKELOG" make >$MAKELOG } function doPackage { cd $TMPBUILD clean_dst $PROTO make install DESTDIR=$PROTO $STRIP ${PROTO}/usr/bin/* pkginfo2arch createIPS -p 'mail/tnef' -c 'Applications/Internet' -s ${SRCURL} cat>${TMPBUILD}/prototype.lnf<>${TMPBUILD}/prototype.lnf print "calling ${TMPBUILD}/prototype.lnf" call_pkgmk ${TMPBUILD}/prototype.lnf } doBuild "$@"