aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2014-04-12 05:45:55 +0800
committerbrooks <brooks@FreeBSD.org>2014-04-12 05:45:55 +0800
commit15a31ef26abcc63f9465718c9434c88f437fc55e (patch)
tree6a185c56c2c1fb997c9fb09d2e6814067dcb33eb /Mk
parente13e475237d43c18ba54a0891d4a82d827b2d9aa (diff)
downloadfreebsd-ports-gnome-15a31ef26abcc63f9465718c9434c88f437fc55e.tar.gz
freebsd-ports-gnome-15a31ef26abcc63f9465718c9434c88f437fc55e.tar.zst
freebsd-ports-gnome-15a31ef26abcc63f9465718c9434c88f437fc55e.zip
Allow an alternative install prefix to be specified with
CMAKE_INSTALL_PREFIX. This is similar to GNU_CONFIGURE_PREFIX and is useful for ports that would conflict if installed directly in PREFIX.
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/cmake.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mk/Uses/cmake.mk b/Mk/Uses/cmake.mk
index 3440a3178493..0d2dd761c101 100644
--- a/Mk/Uses/cmake.mk
+++ b/Mk/Uses/cmake.mk
@@ -83,11 +83,13 @@ CMAKE_ARGS+= -DCMAKE_C_COMPILER:STRING="${CC}" \
-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_INSTALL_PREFIX}" \
-DCMAKE_BUILD_TYPE:STRING="${CMAKE_BUILD_TYPE}" \
-DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES \
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=YES
+CMAKE_INSTALL_PREFIX?= ${PREFIX}
+
.if defined(BATCH) || defined(PACKAGE_BUILDING)
CMAKE_VERBOSE= yes
CMAKE_NOCOLOR= yes