From: Rafael L. <rla...@us...> - 2003-12-29 16:44:58
|
* Koen van der Drift <kvd...@ea...> [2003-12-29 09:04]: > I think I figured out what is going on. For the fink package I moved > all the data and examples from /sw/lib/plplot/ to /sw/share/plplot, > which is where the fink docs recommend to put architecture independent > stuff. Apparently the examples expect the fonts to be in /sw/lib/plplot > which is why I get the error. If I leave everything in /sw/lib/plplot, > the examples work fine. So I will leave the examples, etc in /sw/lib, > unless there is a way I can fix the font path rather easily, maybe by > applying a patch? You can override the path for the data files with the DATA_DIR environment variable. Using bash, you can do this, for instance: DATA_DIR=share/plplot/data ./configure and the data files will land on $prefix/share/plplot/data. The problem with this approach is that the driver modules (which *_are_* architecture-dependent) will be installed in $prefix/share/plplot/driversd. One way to overcome this is by doing (okay, that's tricky, but you asked for it; and, hey, no patches needed!): DATA_DIR=share/plplot/data DRV_DIR=../../../lib/plplot/drivers ./configure Notice the "../../.." needed in the definition of the environment variable DRV_DIR. This is because the core code of the PLplot library composes the drivers directory like this (in src/plcore.c): drvdir = DATA_DIR "/" DRV_DIR; However, this may be a non-issue for Fink right now, because dynamical loading of driver modules does not work on Mac OS X (yet). An unrelated question, just out of curiosity: my knowledge of Fink is almost zero, but I know it is dpkg-based. How much from my Debian packaging work are you using in order to build the Fink PLplot package? -- Rafael |