On Mon, August 17, 2009 18:33, frantisek holop wrote: > hi there, > > i am working on a port that uses scons for building. > the port-modules(5) says that > > devel/scons Adds devel/scons to BUILD_DEPENDS. Sets MODSCONS_BIN and > MODSCONS_ENV. Also defines an overridable MODSCONS_FLAGS. > It provides a do-build and do-install target that can be > overridden in the port Makefile. > > how do i fake installation with scons? > if i make fake, it starts installing into /usr/local > i had a look at some other ports using scons > and i see > > MODSCONS_FLAGS= \ > install_prefix=${PREFIX} > > is this enough for make fake to work?
Hi. Look at your SConstruct file. For example SConstruct from globulation2: ... opts.Add("INSTALLDIR", "Installation Directory", "/usr/local/share") opts.Add("BINDIR", "Binary Installation Directory", "/usr/local/bin") opts.Add("DATADIR", "Directory where data will be put, set to the same as INSTALLDIR", "/usr/local/share") ... So I've added in Makefile next lines: MODSCONS_ENV += BINDIR="${PREFIX}/bin" \ DATADIR="${PREFIX}/share" \ INSTALLDIR="${PREFIX}/share" And make fake works fine, but I have problems after make install, because path to fake-dir are compiled in a binary. So if I run make clean=fake - the game couldn't find its data. If someone can help to solve this - I'll be very happy! > > -f > -- > greetings from hell... wish you were here. > >