# bricktcl/cfg - "Build" settings for package

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

[technotes]

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

[buildtimes]

00.00 hours (or 000.27 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo
                                  7200 2GB RAM
00.01 hours (or 000.30 minutes) - ThinkPad E540 i7 4x2 16GB RAM
00.03 hours (or 001.62 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB
                                  RAM

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

[settings]
archive   = same as brickengine
configure = none
dontfind  = brick52, brick53
exepack   = yes
license   = See "license*.txt" under installed tree
patchdir  = same as brickengine
patches   = required
proddir   = $PRODTREE/brickengine
purge     = no
revision  = numeric
setpaths  = brickengine, libmikmod, sdl
shareddir = yes
tmpsize   = 3M
unpack    = relaxed

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

[depends]
alsa
brickengine:strict
cmake
jpeg
libmikmod
libpng
sdl
tcltk:strict

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

[build]
cd bindings/tcl

cmake \
    -DCMAKE_BUILD_TYPE:STRING=RELEASE    \
    -DCMAKE_INSTALL_PREFIX=$PKGDIR_PROD  \
    .

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

smpmake
make install

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

BINDIR=$PKGDIR_PROD/bin
DOCDIR=$PKGDIR_PROD/doc
TCLMDIR=$PRODTREE/tcltk/lib/br5

mkdir -p $BINDIR $DOCDIR $TCLMDIR

cmake \
    -DCMAKE_BUILD_TYPE:STRING=RELEASE    \
    -DCMAKE_INSTALL_PREFIX=$PKGDIR_PROD  \
    -DTCL_MOD=ON                         \
    .

(cd src && ln -s ../src-out . && cd ..)
smpmake
cd src-out
strip -g br.so
cp -p    br.so pkgIndex.tcl $TCLMDIR/
cd ..

cp -p LICENSE $DOCDIR/license-brick-tcl.txt
cd $BINDIR
ln -nsf brick-tcl bricktcl

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

# 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  = Same as brickengine
url_home    = Ditto
url_lfs     = Ditto
url_tarball = Ditto