On Sun, Mar 8, 2009 at 9:36 AM, Daniel Moerner <dmoer...@gmail.com> wrote:

> In general, it's pretty similar to a normal make setup. Instead of
> calling $(MAKE), just define SCONS (e.g., SCONS = scons, at the top of
> the file) and then call $(SCONS). The upstream SConstruct file should
> support DESTDIR setting when you call $(SCONS) install.

Most of the time you'll have to implement DESTDIR support yourself (or
convince upstream to switch to autotools or something that does
DESTDIR out of the box). Check the packages in the scons reverse
build-deps for examples:

sudo apt-get install devscripts ; build-rdeps scons

> Be aware that due to the way scons works, "scons -c" will not work if
> the SConstruct file cannot initialize itself. That is to say, if
> "scons" does not work without patching the makefile, then to allow the
> package to build properly, you will either have to (a) manually
> replicate the purpose of scons clean in the clean: target of
> debian/rules, or (b) force the clean target to depend on the patch
> target, e.g.:

This won't be needed when dpkg-source v3 (quilt) packages are accepted
by the Debian archive (hopefully soon).

-- 
bye,
pabs

http://wiki.debian.org/PaulWise


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to