pkgsrc-Users archive

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

Re: CMAKE_INSTALL_PREFIX is not configurable [WAS: Re: how to create a package installing into a separate directory?]

On 2011/10/29 08:06, norc1212 wrote:
On 2011/10/28 09:02, norc1212 wrote:

To follow up, I see there is no way to configure
CMAKE_INSTALL_PREFIX. This comes from mk/configure/


On the other hand mk/configure/ works this


What about the following change:

--- mk/configure/ 2011-01-13 02:01:04.000000000 +0100
+++ mk/configure/ 2011-10-28 22:51:04.000000000 +0200
@@ -18,7 +18,8 @@

_CMAKE_DIR= ${BUILDLINK_DIR}/cmake-Modules

.if ${OPSYS} != "Darwin"

This fixed my cmake-based packages. While CMAKE_INSTALL_PREFIX
seems to me to be a "natural" way to configure the install
destination there may be better ways to resolve the issue.
Any comment from the initiated?

Excuse me reviving this thread. In summary, there is
a disparity in the configuration phase:
- packages which use GNU configure can define their
  install directory using GNU_CONFIGURE_PREFIX
- packages which use cmake have no way

I suggested the patch above. Sure, I can handle it for
my needs locally but IMHO it is an systematic issue
and there should be some cmake's equivalent of

I would like to get any response or comment - "non-issue,
take care locally" at least, "on a right track, just
fix this and that and we can get it committed" at best.
Still a beginner with pkgsrc but willing to learn.

Thanks in advance

Home | Main Index | Thread Index | Old Index