diff options
author | adam <adam> | 2010-10-19 09:45:16 +0000 |
---|---|---|
committer | adam <adam> | 2010-10-19 09:45:16 +0000 |
commit | dc3cf415913f4213d104b72e53636e0108f59dfb (patch) | |
tree | fda251499c4c111b90b5ecc66fefafff6218bda1 /mk | |
parent | fe1e85657e61f80717e67f8bb035447e4b4d4a30 (diff) | |
download | pkgsrc-dc3cf415913f4213d104b72e53636e0108f59dfb.tar.gz |
On Darwin, libraries need correct install_name
Diffstat (limited to 'mk')
-rw-r--r-- | mk/configure/cmake.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/configure/cmake.mk b/mk/configure/cmake.mk index 5fc41977aa0..4bd033fa415 100644 --- a/mk/configure/cmake.mk +++ b/mk/configure/cmake.mk @@ -1,4 +1,4 @@ -# $NetBSD: cmake.mk,v 1.6 2008/09/13 11:09:58 markd Exp $ +# $NetBSD: cmake.mk,v 1.7 2010/10/19 09:45:16 adam Exp $ # # This file handles packages that use CMake as their primary build # system. For more information about CMake, see http://www.cmake.org/. @@ -20,7 +20,12 @@ _CMAKE_DIR= ${BUILDLINK_DIR}/cmake-Modules CMAKE_ARGS+= -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} CMAKE_ARGS+= -DCMAKE_MODULE_PATH:PATH=${_CMAKE_DIR} +.if ${OPSYS} != "Darwin" CMAKE_ARGS+= -DCMAKE_SKIP_RPATH:BOOL=TRUE +.else +CMAKE_ARGS+= -DCMAKE_SKIP_RPATH:BOOL=FALSE +CMAKE_ARGS+= -DCMAKE_INSTALL_NAME_DIR:PATH=${PREFIX}/lib +.endif CMAKE_MODULE_PATH_OVERRIDE+= CMakeLists.txt |