[PD-dev] "tracking third-party sources" in cvs

Frank Barknecht fbar at footils.org
Mon Mar 22 12:20:09 CET 2004


Hallo,
Thomas Grill hat gesagt: // Thomas Grill wrote:

> > Actually I was thinking about packaging at home, when doing an
> > extended Debian rules file and I found, that the flext-externals use
> > inconsistent namings.
> 
> Well, someday there will be a unified flext make system with perfect
> consistency for all platforms....
> if there only were the time to do it.... or maybe someone else wants to....

I have localized one of the problems I have when building packages. As
the current Debian build-process tries to built everything in one go,
there is currently no "install" of flext prior to the build of the
other externals. VASP uses the variable FLEXTPATH to specify both the
location of the libraries and the location of the header files. But in
the flext directory both are in different places: flext/source and
flext/pd-linux

In some other externals, both use different names like FLEXTINC for
the header location. For building (Debian) packages this is easier to
handle. 

I tried this with a change to vasp/makefile.pd-linux to use FLEXTINC
where header paths are used:

$(TARGDIR)/%.o : $(SRCDIR)/%.cpp
    $(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES) $(FLEXTINC)) $< -o $@

And in config-pd-linux.txt I added: 

# where do the flext libraries reside?
FLEXTPATH=${PD}/flext

# where do the flext header reside?
FLEXTINC=${PD}/flext

This now can be overridden in the toplevel package Makefile ("rules"
on Debian) by things like: 

(cd grill/vasp; 	$(MAKE) -f makefile.pd-linux FLEXTINC=../../grill/flext/source FLEXTPATH=../../grill/flext/pd-linux)

ciao
-- 
 Frank Barknecht                               _ ______footils.org__




More information about the Pd-dev mailing list