default_pre_build                                                      &&
cd   ${SOURCE_DIRECTORY}                                               &&

cp   src/all-arch.mak  src/all-arch.mak.original
sed  "s/\/local//g"    src/all-arch.mak.original  >  src/all-arch.mak  &&

cp   src/unix-gcc.mak  src/unix-gcc.mak.original
cat                    src/unix-gcc.mak.original  |
sed  "s/SHARE_LIBPNG=0/SHARE_LIBPNG=1/"           |
sed  "s/SHARE_LIBJPG=0/SHARE_LIBJPG=1/"           |
sed  "s/SHARE_ZLIB=0/SHARE_ZLIB=1/"               >  src/unix-gcc.mak  &&

cp   src/devs.mak src/devs.mak.original                                &&

sedit  "s:CFLAGS_STANDARD=@OPT_CFLAGS@:CFLAGS_STANDARD=$CFLAGS:g"        Makefile.in  &&
sedit  "s:CFLAGS_PROFILE=-pg @OPT_CFLAGS@:CFLAGS_PROFILE=-pg $CFLAGS:g"  Makefile.in

