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

Max Brazhnikov makc at freebsd.org
Sat Apr 5 10:44:59 UTC 2014


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.

> 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



More information about the kde-freebsd mailing list