# allegro-kart/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. The source tarball used by this package was created based on "git" upstream sources. The sources were obtained as follows: ocgitfetch --run \ https://github.com/gustavosbarreto/mario-kart.git #--------------------------------------------------------------------- 2. This is a simple demo with music but no actual game-play yet. The player simply drives a go-kart around a track. If he or she drives off of the track, the demo ends. #--------------------------------------------------------------------- 3. The ".xm" music file used is believed to be in the public domain. #--------------------------------------------------------------------- [buildtimes] #--------------------------------------------------------------------- [settings] addopt = -O3 compiler = gcc configure = none license = tbd unpack = relaxed setpaths = allegro-legacy alsa jackone xorg #--------------------------------------------------------------------- [depends] allegro5 allegro-legacy #--------------------------------------------------------------------- [build] PROGBASE=allegro-kart BINDIR=$PKGDIR_PROD/bin PROGDIR=$PKGDIR_PROD/program DOCDIR=$PKGDIR_PROD/doc mkdir -p $BINDIR $DOCDIR $PROGDIR LACINCDIRS=$LACINCDIRS:$PRODTREE/allegro5/include LACLDDIRS=$LACLDDIRS:$PRODTREE/allegro5/lib #--------------------------------------------------------------------- rm -fr .git* rm -fr TrackEditor rm -fr Vector.cpp HERE=`pwd` for x in `find . -type d | sort` do x=`echo $x | sed 's@^\./@@'` LACINCDIRS=$HERE/$x:$LACINCDIRS done echo LACINCDIRS=$LACINCDIRS sed -e 's@_FULLSCREEN@_WINDOWED@' \ -i Common/AllegroScreen.cpp #--------------------------------------------------------------------- g++ -O3 -o allegro-kart `find . -name \*.cpp` \ -laldmb -ldumb -lalleg \ -lallegro -lallegro_primitives -lallegro_main \ -lallegro_audio -lallegro_acodec -lallegro_font \ -lallegro_ttf \ -lm -lc #--------------------------------------------------------------------- mv Game/* . rmdir Game rm -fr Common rm -fr `find . -name \*.c` rm -fr `find . -name \*.h` cp -a * $PROGDIR/ #--------------------------------------------------------------------- cd $BINDIR sed -e "s|__META_LACUTIL__|$SYSDIR_LACUTIL|g" \ -e "s|__META_PREFIX__|$PKGDIR_PROD|g" \ -e "s|__META_PRODTREE__|$PRODTREE|g" \ < $PKGDIR_SPECIAL/$PROGBASE.wrapper.in \ > $PROGBASE chmod 755 $PROGBASE #--------------------------------------------------------------------- cd $PROGDIR cp -p $PRODTREE/allegro-legacy/cfg/*.cfg . cp -p $PKGDIR_SPECIAL/*.xm . #--------------------------------------------------------------------- # 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 = tbd url_home = tbd url_lfs = tbd url_tarball = git # See "technotes" in "cfg" file #--------------------------------------------------------------------- [history] 250615 Added package 250615 Started with bb3a46c7b ("git" hash) 250616 Added open-license music 250616 Removed unused opponents 250616 If player drives off the map, game now ends