pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

how to build outside WRKSRC?


I am trying to create a package for ParaView [1].  ParaView uses
CMake, and needs to be built somewhere other than in its source dir.
What is the canonical way of doing this in pkgsrc?

I first tried setting BUILD_DIR, but it had no effect.

For the moment I have the following lines in my Makefile (please do
enlighten me if my attempt should be utterly misguided!):

PVBUILDDIR=                             ${WRKDIR}/ParaView-bin

    mkdir -p ${PVBUILDDIR}
    cd ${PVBUILDDIR} && ${CMAKE} ${WRKSRC}

I could go on and write do-build etc. as well, but that would be
rather inefficient I think.


[1] <>

Home | Main Index | Thread Index | Old Index