[kde-freebsd] [PATCH] Uses/cmake.mk: add CMAKE_PREFIX

Brooks Davis brooks at freebsd.org
Mon Apr 7 15:34:01 UTC 2014


On Sat, Apr 05, 2014 at 10:44:59AM +0000, Max Brazhnikov wrote:
> On Thu, 03 Apr 2014 13:05:40 -0500 Brooks Davis wrote:
> > I'm working on some more clang ports that will build using cmake and I
> > need to install them in a subdirectory of ${PREFIX}.  I've got them
> > working using the following patch which add CMAKE_PREFIX as an analog to
> > GNU_CONFIGURE_PREFIX.
> 
> I'm ok with idea, but lets call it CMAKE_INSTALL_PREFIX.

That's fine by me.  Should we do an exp run for this one or just commit
since it's trivial?

Thanks,
Brooks

> > Thanks,
> > Brooks
> > 
> > Index: Mk/Uses/cmake.mk
> > ===================================================================
> > --- Mk/Uses/cmake.mk	(revision 349864)
> > +++ Mk/Uses/cmake.mk	(working copy)
> > @@ -83,11 +83,13 @@
> >  			-DCMAKE_EXE_LINKER_FLAGS:STRING="${LDFLAGS}" \
> >  			-DCMAKE_MODULE_LINKER_FLAGS:STRING="${LDFLAGS}" \
> >  			-DCMAKE_SHARED_LINKER_FLAGS:STRING="${LDFLAGS}" \
> > -			-DCMAKE_INSTALL_PREFIX:PATH="${PREFIX}" \
> > +			-DCMAKE_INSTALL_PREFIX:PATH="${CMAKE_PREFIX}" \
> >  			-DCMAKE_BUILD_TYPE:STRING="${CMAKE_BUILD_TYPE}" \
> >  			-DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES \
> >  			-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=YES
> >  
> > +CMAKE_PREFIX?=		${PREFIX}
> > +
> >  .if defined(BATCH) || defined(PACKAGE_BUILDING)
> >  CMAKE_VERBOSE=		yes
> >  CMAKE_NOCOLOR=		yes
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 326 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-freebsd/attachments/20140407/e29a3c20/attachment.sig>


More information about the kde-freebsd mailing list