# foxtoolkit/cfg - "Build" settings for package

#---------------------------------------------------------------------

[technotes]

#---------------------------------------------------------------------

[buildtimes]

00.07 hours (or 004.10 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo
                                  7200 2GB RAM
00.09 hours (or 005.48 minutes) - ThinkPad E540 i7 4x2 16GB RAM
00.10 hours (or 005.77 minutes) - ThinkPad W530 i7 4x2 32GB RAM
00.48 hours (or 028.92 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB
                                  RAM

#---------------------------------------------------------------------

[settings]
exepack  = yes
fortran  = disabled
license  = See "license*.txt" under installed tree
unpack   = relaxed
setpaths = xorg
tmpsize  = 60M

#---------------------------------------------------------------------

[depends]
actools
bzip2
fontconfig
freetype2
grep
jpeg
libpng
sed
tiff
xorg
zlib

#---------------------------------------------------------------------

[configure]
MANBASE=$PKGDIR_PROD/man
mkdir -p $MANBASE

bash ./configure \
    --prefix=$PKGDIR_PROD  \
    --build=$LACARCHBUILD  \
    --host=$LACARCHHOST    \
    --disable-debug        \
    --disable-static       \
    --enable-release       \
    --enable-shared        \
    --enable-threadsafe    \
    --mandir=$MANBASE      \
    --with-opengl          \
    --with-shape           \
    --with-xft             \
    --with-xshm

sed -e "s|if test -z \".tagname\"; then|& tagname=\"CXX\"; \
fi; if false; then|" \
       -i libtool
chmod 755 libtool

#---------------------------------------------------------------------

[build]
export LACINCDIRS=$PRODTREE/freetype2/include/freetype2
smpmake
make install

#---------------------------------------------------------------------

[postbuild]
BINDIR=$PKGDIR_PROD/bin
DOCDIR=$PKGDIR_PROD/doc
MANDIR=$PKGDIR_PROD/man/man1
mkdir -p $BINDIR $DOCDIR $MANDIR

rm -fr $PKGDIR_PROD/share/doc
rmdir  $PKGDIR_PROD/share

chmod 644 LICENSE*
mv LICENSE          $DOCDIR/license-main.txt
mv LICENSE_ADDENDUM $DOCDIR/license-addendum.txt

cd $BINDIR
mv calculator   foxcalc
cd $MANDIR
mv calculator.1 foxcalc.1

#---------------------------------------------------------------------

cd $BINDIR
PROGBASE=foxcalc
rm -fr       ../xbin/
mkdir -p     ../xbin/
mv $PROGBASE ../xbin/

cp -p $PKGDIR_SPECIAL/$PROGBASE.wrapper.in $PROGBASE
chmod 755 $PROGBASE

#---------------------------------------------------------------------

# Original URLs. These URLs were valid at one point, but may have died
# since then. If you download newer versions of tarballs [etc.], don't
# delete  the  original versions,  as you may not  be able  to replace
# them.

[urls]
url_debian  = http://packages.debian.org/unstable/source/fox1.6
url_home    = http://www.fox-toolkit.com/
url_lfs     = n/a
url_tarball = http://fox-toolkit.org/ftp/fox-1.7.85.tar.gz

#---------------------------------------------------------------------

[history]
170726 Updated from 1.6.50 to 1.6.55
180303 Updated to 1.6.56
180407 Updated to 1.6.57
211102 Updated to 1.7.77
220221 Updated to 1.7.78
240816 Updated to 1.7.85