Alan,
Plplot does something slightly different in that it uses a more
complicated method for globbing file names to install. The Debian
packages do nothing special except calling "make DESTDIR=$(debtmp) install"
(see debian/rules) and this all just works. I suspect the reason is that
the globbing is done at install time and so DESTDIR is correctly prepended
automatically to the CMAKE_INSTALL_* variables. This is just a theory and
I haven't tested it, but I would suggest it would be wise to try before
altering plplot.
Andrew
On Mon, Jan 07, 2013 at 11:57:40AM -0800, Alan Irwin wrote:
> To Andrew and Orion:
>
> One of my testers for ephcom is David Howells who works as a developer
> for RedHat. He found that rpm's for ephcom that he implemented could
> not be built without using DESTDIR for all install(CODE logic in the
> ephcom build system. For example ephcom's doc/CMakeLists.txt file now
> has this code fragment (which was originally copied without DESTDIR
> from doc/CMakeLists.txt in PLplot).
>
> doc/CMakeLists.txt: install(CODE "message(STATUS \"Installing:
> ${DOC_DIR}/doxygen/html tree\")\nexecute_process(COMMAND
> ${CMAKE_COMMAND} -E copy_directory
> ${CMAKE_CURRENT_BINARY_DIR}/doxygen/html
> ${DESTDIR}${CMAKE_INSTALL_DOCDIR}/doxygen/html)")
>
> Do you agree that DESTDIR should also be used in the equivalent PLplot
> file? How have you guys been getting around this potential issue
> for Debian and Fedora packaging of PLplot?
>
> Alan
> __________________________
> Alan W. Irwin
>
> Astronomical research affiliation with Department of Physics and Astronomy,
> University of Victoria (astrowww.phys.uvic.ca).
>
> Programming affiliations with the FreeEOS equation-of-state
> implementation for stellar interiors (freeeos.sf.net); the Time
> Ephemerides project (timeephem.sf.net); PLplot scientific plotting
> software package (plplot.sf.net); the libLASi project
> (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
> and the Linux Brochure Project (lbproject.sf.net).
> __________________________
>
> Linux-powered Science
> __________________________
>
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel