Talk:Compiling
From VDrift Documentation Wiki
Great instructions! From now, on when I complain about sparse, vague, and inaccurate compiling instructions I will direct the authors to this page so they can see how its done.
[edit] Building DEB packages
SCons scripts to build Vdrift Deb packages. Please complete them as needed --Bogdanbiv 07:02, 26 June 2009 (PDT)
- Append this to the end of SConstruct script
- package target build as Debian packages
if 'debian' in COMMAND_LINE_TARGETS:
SConscript("deb/debConstruct.py")
- The file deb/debConstruct.py should contain:
- -*- coding: utf-8 -*-
- This script was taken from http://www.qandr.org/quentin/writings/debscons
import os, shutil, sys Import('env') # exported by parent SConstruct
- I wanted to base the debian version number partly on the
- revision checked out from our SVN repository.
- Skip this if it's not relevant to you.
- svn_version = os.popen('svnversion ..').read()[:-1]
- This may be as simple as '89' or as complex as '4123:4184M'.
- We'll just use the last bit.
- svn_version = svn_version.split(':')[-1]
svn_version = "2009.06.15"
- Here's the core info for the package
DEBNAME = "vdrift" DEBVERSION = "2009.06.15" DEBMAINT = "Bogdan bogdan.bivolaru@gmail.com" DEBARCH = "i386" DEBDEPENDS = "other-package1, other-package2, g++, scons, libsdl-gfx1.2-dev, libsdl-image1.2-dev, libsdl-net1.2-dev, libvorbis-dev, libglew-dev, libasio-dev" # what are we dependent on? DEBDESC = "VDrift is a driving simulation game made with drift racing in mind or buy a paper made"
DEBFILES = [
# Now we specify the files to be included in the .deb
# Where they should go, and where they should be copied from.
# If you have a lot of files, you may wish to generate this
# list in some other way.
# ("usr/bin/myutility", # "#src/myutility/myutility"),
# ("etc/myutility/myutility.conf", # "#misc/myutility.conf"),
("usr", "#docs/"),

