diff options
author | rakuco <rakuco@FreeBSD.org> | 2015-08-20 20:51:50 +0800 |
---|---|---|
committer | rakuco <rakuco@FreeBSD.org> | 2015-08-20 20:51:50 +0800 |
commit | 9087bc4fae635a47e4381097611d15d42f537c52 (patch) | |
tree | 68f0aa975a91cd3f6e06635a1339f7a7b76c3b16 /Mk/Uses | |
parent | ae0f23d5019aba113d0b30776a67690602cd7183 (diff) | |
download | freebsd-ports-gnome-9087bc4fae635a47e4381097611d15d42f537c52.tar.gz freebsd-ports-gnome-9087bc4fae635a47e4381097611d15d42f537c52.tar.zst freebsd-ports-gnome-9087bc4fae635a47e4381097611d15d42f537c52.zip |
Uses/localbase.mk: Set CMAKE_PREFIX_PATH.
When USE'ing localbase.mk, make sure CMake is also aware that it is supposed
to give preference to ${LOCALBASE} when looking for files and libraries.
This is going to be a requirement once CMake is updated to 3.3.x, as
starting with this version it will by default use the PATH environment
variable (stripping the "/bin" or "/sbin" parts of each entry) to determine
where to find files and libraries. Since in most cases /usr will come before
/usr/local, it will find base's libarchive and fail at the configuration
stage on older FreeBSD releases.
Approved by: portmgr (antoine)
Differential Revision: https://reviews.freebsd.org/D3361
Diffstat (limited to 'Mk/Uses')
-rw-r--r-- | Mk/Uses/localbase.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/Uses/localbase.mk b/Mk/Uses/localbase.mk index 71f8a29368ae..5e2873656a94 100644 --- a/Mk/Uses/localbase.mk +++ b/Mk/Uses/localbase.mk @@ -15,4 +15,8 @@ CPPFLAGS+= -I${LOCALBASE}/include CFLAGS+= -I${LOCALBASE}/include CXXFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib + +# Use CONFIGURE_ENV instead of CMAKE_ARGS because devel/cmake itself also needs +# this, and CMAKE_ARGS is not used when bootstrapping CMake. +CONFIGURE_ENV+= CMAKE_PREFIX_PATH="${LOCALBASE}" .endif |