Changeset View
Changeset View
Standalone View
Standalone View
head/devel/cmake/files/InitialCache.cmake
Show All 9 Lines | |||||
# liblzma.so. | # liblzma.so. | ||||
# Note that this is necessary only for `make configure' to work, as liblzma is | # Note that this is necessary only for `make configure' to work, as liblzma is | ||||
# only ever used if CMake's bundled libarchive is being used. | # only ever used if CMake's bundled libarchive is being used. | ||||
set(LIBLZMA_INCLUDE_DIR "/usr/include" CACHE PATH | set(LIBLZMA_INCLUDE_DIR "/usr/include" CACHE PATH | ||||
"Directory where LibLZMA headers are located.") | "Directory where LibLZMA headers are located.") | ||||
set(LIBLZMA_LIBRARY "/usr/lib/liblzma.so" CACHE PATH | set(LIBLZMA_LIBRARY "/usr/lib/liblzma.so" CACHE PATH | ||||
"LibLZMA library to link against.") | "LibLZMA library to link against.") | ||||
# Don't even try | # Set (or not) by the CPACK option by replacing @@CPACK_OPTION_VALUE@@ | ||||
set(CPACK_ENABLE_FREEBSD_PKG OFF CACHE BOOL "Enable pkg(8) generator in CPack") | # with the value of the option itself. | ||||
# | |||||
set(CPACK_ENABLE_FREEBSD_PKG @@CPACK_OPTION_VALUE@@ CACHE BOOL "Enable pkg(8) generator in CPack") | |||||
# Use base libarchive instead of ports, because libpkg uses base | |||||
@@CPACK_OPTION_COMMENT@@set(LibArchive_INCLUDE_DIR "/usr/include" CACHE PATH | |||||
@@CPACK_OPTION_COMMENT@@ "Directory where LibArchive headers are located.") | |||||
# Hack to (a) prevent using either ports libarchive or the bundled version | |||||
# and (b) libpkg links to base libarchive. | |||||
@@CPACK_OPTION_COMMENT@@set(LibArchive_LIBRARY "/usr/lib/libthr.so;/usr/lib/libarchive.so" CACHE PATH | |||||
@@CPACK_OPTION_COMMENT@@ "LibArchive library to link against.") | |||||