summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorobache <obache>2013-10-08 12:03:53 +0000
committerobache <obache>2013-10-08 12:03:53 +0000
commit482ab66de746e8781dcbf6f64764b507e39441f7 (patch)
tree8e8cf34ecc68388ac47b2322ce404f82c411773a /mk
parentd7fd45d48391823d71ffac61f0a60f5435bbf06d (diff)
downloadpkgsrc-482ab66de746e8781dcbf6f64764b507e39441f7.tar.gz
tell PKGMANDIR, PKGINFODIR and PKGLOCALEDIR to cmake.
Diffstat (limited to 'mk')
-rw-r--r--mk/configure/cmake.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/configure/cmake.mk b/mk/configure/cmake.mk
index 43fddf3ae36..2ab68251df7 100644
--- a/mk/configure/cmake.mk
+++ b/mk/configure/cmake.mk
@@ -1,4 +1,4 @@
-# $NetBSD: cmake.mk,v 1.9 2013/02/22 22:45:12 markd Exp $
+# $NetBSD: cmake.mk,v 1.10 2013/10/08 12:03:53 obache Exp $
#
# This file handles packages that use CMake as their primary build
# system. For more information about CMake, see http://www.cmake.org/.
@@ -29,6 +29,13 @@ CMAKE_ARGS+= -DCMAKE_INSTALL_NAME_DIR:PATH=${PREFIX}/lib
CMAKE_ARGS+= -DOPENAL_INCLUDE_DIR:PATH=/System/Library/Frameworks/OpenAL.framework/Headers
CMAKE_ARGS+= -DOPENGL_INCLUDE_DIR:PATH=/System/Library/Frameworks/OpenGL.framework/Headers
.endif
+CMAKE_ARGS+= -DCMAKE_INSTALL_MANDIR:PATH=${PKGMANDIR}
+.if defined(INFO_FILES)
+CMAKE_ARGS+= -DCMAKE_INSTALL_INFODIR:PATH=${PKGINFODIR}
+.endif
+.if defined(USE_PKGLOCALEDIR) && empty(USE_PKGLOCALEDIR:M[nN][oO])
+CMAKE_ARGS+= -DCMAKE_INSTALL_LOCALEDIR:PATH=${PKGLOCALEDIR}/locale
+.endif
CMAKE_MODULE_PATH_OVERRIDE+= CMakeLists.txt