default_pre_build      &&
cd  $SOURCE_DIRECTORY  &&

sedit  "s/-O2/$CFLAGS/"  Makefile                             &&
sedit  's/-g//'  Makefile                                     &&
sedit  "s!^CFLAGS =!& -include ${PWD}/sctpfix.h !"  Makefile  &&
sedit  "s:/usr:${INSTALL_ROOT}/usr:g"  Makefile               &&
sedit  "s:/etc:${INSTALL_ROOT}/etc:g"  Makefile               &&

#
# Fix document install directory
#
if  [  "$BUILD_DOCS"  =  y  ];  then
  sedit "s:PAGESPERPAGE=2:PAGESPERPAGE=2\nDOCDIR=${INSTALL_ROOT}/usr/share/doc/${SPELL}:" doc/Makefile
fi  &&

#
# This fixes a compile error, thanks to Lunar:
# http://lunar-linux.org/pipermail/lunar-bugs/2004-May/002350.html
#
patch  -p1  <  $SCRIPT_DIRECTORY/ip.patch
