# asylum/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. We "strip" the "asylum" executable and run "upx --lzma" against it before the "make install" step, as opposed to letting the "build" sys- tem handle both operations. Explanation: a. This package's "make install" step sets some special attri- butes for the "asylum" executable. The "exepack = yes" fea- ture doesn't work for executables that are installed with special attributes. Therefore, if we're going to compress the executable, we need to run "upx --lzma" before the "make install" step. b. If we're going to "strip" the executable, this must be done before the "upx --lzma" step. Therefore we need to do *both* operations before the "make install" step. #--------------------------------------------------------------------- [buildtimes] 00.00 hours (or 000.10 minutes) - ThinkPad E540 i7 4x2 16GB RAM 00.00 hours (or 000.15 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM 00.01 hours (or 000.65 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB RAM #--------------------------------------------------------------------- [settings] configure = none license = GNU General Public License, version 3 (June 2007) setpaths = libmikmod xorg tmpsize = 2M unpack = relaxed #--------------------------------------------------------------------- [depends] alsa libmikmod sdl xorg #--------------------------------------------------------------------- [build] BINDIR=$PKGDIR_PROD/bin MISCDIR=$PKGDIR_PROD/misc mkdir -p $BINDIR $MISCDIR export FORCEPATHMAX=yes sed -e "s| -O3 | -O2 |" -i Makefile mkdir -p $PKGDIR_PROD/{bin,data} make strip asylum (upx --lzma asylum || true) make install #--------------------------------------------------------------------- PROGBASE=asylum cd $BINDIR rm -fr ../xbin/ mkdir -p ../xbin/ mv $PROGBASE ../xbin/ cp $PKGDIR_SPECIAL/wrappers/$PROGBASE.wrapper.in $PROGBASE chmod 755 $PROGBASE #--------------------------------------------------------------------- [setup.boot] VARDIR=/var/asylum mkdir -p $VARDIR cd $VARDIR touch EgoHighScores ExtendedHighScores touch IdHighScores PsycheHighScores chown root.games *HighScores chmod 660 *HighScores #--------------------------------------------------------------------- # 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 = Not checked yet url_home = http://sdl-asylum.sourceforge.net/ url_lfs = n/a url_tarball = http://downloads.sourceforge.net/sdl-asylum/\ asylum-0.3.2.tar.gz