# sjeng/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] # 1. Presently, the source tarball that's used for this package is # ancient (it dates back to 2002). However, as of late 2007, it ap- # peared to be the final free/open-source version. #--------------------------------------------------------------------- # 2. "sjeng" is a chess engine. Normally, it shouldn't be used direct- # ly. Ideally, it should be accessed through "eboard" or a similar # program. #--------------------------------------------------------------------- # 3. This version of "sjeng" includes a ".opn" chess-opening file and # a ".bin" chess-book file. The ".opn" file and the data used to cre- # ate the ".bin" file were obtained from the defunct Apple Darwin pro- # ject. For more information, see the files stored in the package's # development resource tree (i.e., the directory tree that contains # this "cfg" file). #--------------------------------------------------------------------- # 4. The standard version of "sjeng" is difficult to set up and use # because it uses the current directory for data storage. This distro # uses a modified version of the program that solves the problem. The # modified version is just the Debian version plus some minor tweaks. # It stores data files in specific locations: # a. ".lrn" incremental-knowledge files are stored in a conven- # tional "dot" directory located under $HOME. # b. ".bin" chess-book file(s) and ".opn" chess-opening file(s) # are stored in a "data" directory located in the package's # "install" tree. #--------------------------------------------------------------------- [buildtimes] 00.00 hours (or 000.18 minutes) - ThinkPad E540 i7 4x2 16GB RAM 00.00 hours (or 000.27 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM 00.01 hours (or 000.77 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB RAM #--------------------------------------------------------------------- [settings] build = default exepack = yes license = GNU General Public License, version 2 (June 1991) patches = required revision = numeric tmpsize = 3M #--------------------------------------------------------------------- [depends] actools gdbm #--------------------------------------------------------------------- [configure] mkdir -p $PKGDIR_PROD/{bin,data,etc} sed -e "s|/usr/share/games/sjeng/|$PKGDIR_PROD/data/|g" -i book.c sed -e "s|/etc/sjeng.rc|$PKGDIR_PROD/etc/sjeng.rc|g" -i rcfile.c bash ./configure \ --prefix=$PKGDIR_PROD \ --build=$LACARCHBUILD \ --host=$LACARCHHOST #--------------------------------------------------------------------- [postbuild] rm -f nbook.bin tar jxf $PKGDIR_SPECIAL/local-sjeng-data-070316.tar.bz2 cd local-sjeng-data-070316 cat <